Closed uowis closed 10 months ago
Re-logins are on purpose, the keep alive function in the library doesn't work well, particularly while watching alarms. The integration actually logs in a new connection before login out the old one to avoid missing alarms
It seems like you have an issue with unique ids. Try removing and reading the camera, maybe something went wrong with the migration from the older version
Please try v4.0.0. I'm sorry but you'll need to re-add all cameras yet again (I haven't fully wrapped my mind about migrations yet), but this is hopefully the last time this is necessary.
Unfortunately version 4.0.0 doesn't work either. There is no motion object. I have a camera and a HA server on different networks. Communication between them by Wireguard (level 3 OSI, IP only)
Logger: homeassistant.components.select Source: helpers/device_registry.py:297 Integration: Выбор (documentation, issues) First occurred: 21:18:24 (2 occurrences) Last logged: 21:18:24
Error adding entities for domain select with platform icsee_ptz
Error while setting up icsee_ptz platform for select
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(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 519, in async_get_or_create
connections = _normalize_connections(connections)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 1075, in _normalize_connections
return {
^
File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 1076, in
Logger: homeassistant.components.switch Source: helpers/device_registry.py:297 Integration: Выключатель (documentation, issues) First occurred: 21:18:24 (2 occurrences) Last logged: 21:18:24
Error adding entities for domain switch with platform icsee_ptz
Error while setting up icsee_ptz platform for switch
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(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 519, in async_get_or_create
connections = _normalize_connections(connections)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 1075, in _normalize_connections
return {
^
File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 1076, in
Logger: homeassistant.components.binary_sensor Source: helpers/device_registry.py:297 Integration: Бинарный сенсор (documentation, issues) First occurred: 21:18:24 (2 occurrences) Last logged: 21:18:24
Error adding entities for domain binary_sensor with platform icsee_ptz
Error while setting up icsee_ptz platform for binary_sensor
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(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 519, in async_get_or_create
connections = _normalize_connections(connections)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 1075, in _normalize_connections
return {
^
File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 1076, in
Oh I see. I'm still using the mac address to identify the device, so HA can add other entities that may come from the router (like internet access). In your case, the system fails to grab the mac address and that results in an undefined value used.
I'll add an extra check to not do that if the mac address is None.
By the way, isn't this also breaking other integrations? I took the pattern from integrations in the HA core.
Please give v4.0.1 a try and let me know
Please give v4.0.1 a try and let me know
Thank you! Everything seems to be working well now! There are no errors in HA-Corе. And I don't see any problems with other integrations either.
Yes! Success!
it's good for me too ! Congratulation
the connexion is good, but :