Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added 2N IP Verso, no entities #6

Open
JohnMcGJr opened this issue Aug 16, 2023 · 4 comments · May be fixed by #7
Open

Added 2N IP Verso, no entities #6

JohnMcGJr opened this issue Aug 16, 2023 · 4 comments · May be fixed by #7

Comments

@JohnMcGJr
Copy link

Describe the bug
Added my door intercom after setting up the API, and no entities are discovered.

To Reproduce
Setup 2N IP verso API settings per documentation
Add 2N IP verso to Homeassistant with IP/user/pass
No entities are added

Expected behavior
Entities are added and functional

Intercom details
Device type:2N IP Verso
Firmware version: 2.40.0.53.4
Hardware version: 570v8

Homeassistant details
Installation type: Docker
Version: 2023.8.2

Logs
2023-08-16 11:47:54.346 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration helios2n which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-08-16 11:47:54.354 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-08-16 11:47:57.155 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://alexa-api.nabucasa.com/access_token (400)
2023-08-16 11:48:33.704 ERROR (MainThread) [homeassistant.components.switch] Error adding entities for domain switch with platform helios2n
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 510, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 619, in _async_add_entity
device = dev_reg.async_get(self.hass).async_get_or_create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: DeviceRegistry.async_get_or_create() got an unexpected keyword argument 'id'
2023-08-16 11:48:33.708 ERROR (MainThread) [homeassistant.components.switch] Error while setting up helios2n platform for switch
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 370, in _async_setup_platform
await asyncio.gather(*pending)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 510, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 619, in _async_add_entity
device = dev_reg.async_get(self.hass).async_get_or_create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: DeviceRegistry.async_get_or_create() got an unexpected keyword argument 'id'
2023-08-16 11:48:33.718 ERROR (MainThread) [homeassistant.components.binary_sensor] Error adding entities for domain binary_sensor with platform helios2n
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 510, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 619, in _async_add_entity
device = dev_reg.async_get(self.hass).async_get_or_create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: DeviceRegistry.async_get_or_create() got an unexpected keyword argument 'id'
2023-08-16 11:48:33.721 ERROR (MainThread) [homeassistant.components.button] Error adding entities for domain button with platform helios2n
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 510, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 619, in _async_add_entity
device = dev_reg.async_get(self.hass).async_get_or_create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: DeviceRegistry.async_get_or_create() got an unexpected keyword argument 'id'
2023-08-16 11:48:33.723 ERROR (MainThread) [homeassistant.components.binary_sensor] Error while setting up helios2n platform for binary_sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 370, in _async_setup_platform
await asyncio.gather(*pending)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 510, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 619, in _async_add_entity
device = dev_reg.async_get(self.hass).async_get_or_create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: DeviceRegistry.async_get_or_create() got an unexpected keyword argument 'id'
2023-08-16 11:48:33.726 ERROR (MainThread) [homeassistant.components.button] Error while setting up helios2n platform for button
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 370, in _async_setup_platform
await asyncio.gather(*pending)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 510, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 619, in _async_add_entity
device = dev_reg.async_get(self.hass).async_get_or_create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: DeviceRegistry.async_get_or_create() got an unexpected keyword argument 'id'

@Neffez Neffez linked a pull request Sep 15, 2023 that will close this issue
@Neffez
Copy link

Neffez commented Sep 15, 2023

I've created a PR to fix this error: #7

Seems like "id" is not a supported property anymore (see https://developers.home-assistant.io/docs/device_registry_index/)

@JohnMcGJr
Copy link
Author

Seems to work for me when I edit the files to match.

@Lux-WorldPC
Copy link

works fine for me too. but is there no camera integration ?

@Neffez
Copy link

Neffez commented Apr 15, 2024

Just use the existing camera integrations from home assistant. MJPEG, onvif or whatever, they all work. This integration is mainly for the extra features.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants