You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was able to run the plugin well for a couple of days. Then communication was lost (that is I did not get notifications on alarms).
Restarting HA seems to solve the issue.
Looking at the log I can see the following exception.
Is this a known thing? Anything I can do to help debugging the issue.
^[[33m2024-02-10 17:25:59.939 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration sonoff 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^[[0m
^[[33m2024-02-10 17:25:59.941 WARNING (SyncWorker_3) [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^[[0m
^[[31m2024-02-10 17:26:19.067 ERROR (MainThread) [homeassistant.components.binary_sensor] Error adding entities for domain binary_sensor with platform sonoff
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 752, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1281, in add_to_platform_finish
await self.async_added_to_hass()
File "/config/custom_components/sonoff/binary_sensor.py", line 118, in async_added_to_hass
ts = restore.attributes[ATTR_LAST_TRIGGERED]
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
KeyError: 'last_triggered'^[[0m
^[[31m2024-02-10 17:26:19.087 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 752, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1281, in add_to_platform_finish
await self.async_added_to_hass()
File "/config/custom_components/sonoff/binary_sensor.py", line 118, in async_added_to_hass
ts = restore.attributes[ATTR_LAST_TRIGGERED]
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
KeyError: 'last_triggered'^[[0m
^[[33m2024-02-10 17:26:23.361 WARNING (MainThread) [zigpy.application] Zigbee channel 15 utilization is 87.06%!^[[0m
^[[33m2024-02-10 17:26:23.361 WARNING (MainThread) [zigpy.application] If you are having problems joining new devices, are missing sensor updates, or have issues keeping devices joined, ensure your coordinator is away from interference sources such as USB 3.0 devices, SSDs, WiFi routers, etc.^[[0m
^[[33m2024-02-10 20:45:05.144 WARNING (Thread-7) [pychromecast.socket_client] [yes(192.168.4.105):8009] Heartbeat timeout, resetting connection^[[0m
^[[3
AlexxIT
changed the title
Getting exceptions in log when running the plugin - ATTR_LAST_TRIGGERED
Fix KeyError: 'last_triggered' for binary_sensor
Feb 12, 2024
Thanks for writing this plugin!
I was able to run the plugin well for a couple of days. Then communication was lost (that is I did not get notifications on alarms).
Restarting HA seems to solve the issue.
Looking at the log I can see the following exception.
Is this a known thing? Anything I can do to help debugging the issue.
The text was updated successfully, but these errors were encountered: