Od paru dni mam problem, gdyż nie widzę aktualnych statusów encji włączników
Włączanie i wyłączanie działa, ale wszystkie statusy są na OFF.
Kliknę włącz, na chwilę pojawia się status włączony i lampka się zaświeca, ale status wraca na wyłączony a lampka dalej świeci. Aby ją wyłączyć muszę ją ponownie włączyć i szybko wyłączyć.
W logach natomiast pojawia się coś takiego w tym momencie:
5|zigbee | Zigbee2MQTT:info 2021-12-05 10:19:13: MQTT publish: topic 'zigbee2mqtt/ZBP01_0xbc33acfffe3645a4', payload '{"linkquality":255,"state":"ON"}'
2|ais | 2021-12-05 10:19:13 ERROR (MainThread) [homeassistant.util.logging] Exception in state_received when handling msg on 'supla/63c0eea69d7a855a4c406893d243eef3/devices/203/channels/731/state/on': 'true'
2|ais | Traceback (most recent call last):
2|ais | File "/data/data/pl.sviete.dom/files/usr/lib/python3.9/site-packages/homeassistant/components/mqtt/debug_info.py", line 33, in wrapper
2|ais | _log_message(msg)
2|ais | File "/data/data/pl.sviete.dom/files/usr/lib/python3.9/site-packages/homeassistant/components/mqtt/debug_info.py", line 23, in _log_message
2|ais | messages = debug_info["entities"][entity_id]["subscriptions"][
2|ais | KeyError: 'light.lampka_komputer'
5|zigbee | Zigbee2MQTT:info 2021-12-05 10:19:18: MQTT publish: topic 'zigbee2mqtt/ZBP01_0xbc33acfffe3645a4', payload '{"linkquality":255,"state":"ON"}'
5|zigbee | Zigbee2MQTT:info 2021-12-05 10:19:20: MQTT publish: topic 'zigbee2mqtt/ZBP01_0xbc33acfffe3645a4', payload '{"linkquality":255,"state":"OFF"}'
2|ais | 2021-12-05 10:19:20 ERROR (MainThread) [homeassistant.util.logging] Exception in state_received when handling msg on 'supla/63c0eea69d7a855a4c406893d243eef3/devices/203/channels/731/state/on': 'false'
2|ais | Traceback (most recent call last):
2|ais | File "/data/data/pl.sviete.dom/files/usr/lib/python3.9/site-packages/homeassistant/components/mqtt/debug_info.py", line 33, in wrapper
2|ais | _log_message(msg)
2|ais | File "/data/data/pl.sviete.dom/files/usr/lib/python3.9/site-packages/homeassistant/components/mqtt/debug_info.py", line 23, in _log_message
2|ais | messages = debug_info["entities"][entity_id]["subscriptions"][
2|ais | KeyError: 'light.lampka_komputer'
To urządzenie jest zigbee poprzez zigbee2mqtt, ale mam to samo z urządzeniami z integracji z Suplą po MQTT. Tylko w logach nic nie widać. Ale jak status przychodzi z Supli to też pojawia się błąd w logach:
2|ais | 2021-12-05 10:08:33 ERROR (MainThread) [homeassistant.util.logging] Exception in state_message_received when handling msg on 'supla/63c0eea69d7a855a4c406893d243eef3/devices/276/channels/943/state/on': ''
2|ais | Traceback (most recent call last):
2|ais | File "/data/data/pl.sviete.dom/files/usr/lib/python3.9/site-packages/homeassistant/components/mqtt/debug_info.py", line 33, in wrapper
2|ais | _log_message(msg)
2|ais | File "/data/data/pl.sviete.dom/files/usr/lib/python3.9/site-packages/homeassistant/components/mqtt/debug_info.py", line 23, in _log_message
2|ais | messages = debug_info["entities"][entity_id]["subscriptions"][
2|ais | KeyError: 'switch.on_off_switch_56'
albo
2|ais | 2021-12-05 10:16:18 ERROR (MainThread) [homeassistant.util.logging] Exception in message_received when handling msg on 'supla/63c0eea69d7a855a4c406893d243eef3/devices/266/channels/928/state/phases/1/power_factor': ''
2|ais | Traceback (most recent call last):
2|ais | File "/data/data/pl.sviete.dom/files/usr/lib/python3.9/site-packages/homeassistant/components/mqtt/debug_info.py", line 34, in wrapper
2|ais | msg_callback(msg)
2|ais | File "/data/data/pl.sviete.dom/files/usr/lib/python3.9/site-packages/homeassistant/components/mqtt/sensor.py", line 218, in message_received
2|ais | _update_state(msg)
2|ais | File "/data/data/pl.sviete.dom/files/usr/lib/python3.9/site-packages/homeassistant/components/mqtt/sensor.py", line 183, in _update_state
2|ais | payload = template.async_render_with_possible_json_value(
2|ais | File "/data/data/pl.sviete.dom/files/usr/lib/python3.9/site-packages/homeassistant/helpers/template.py", line 557, in async_render_with_possible_json_value
2|ais | return _render_with_context(
2|ais | File "/data/data/pl.sviete.dom/files/usr/lib/python3.9/site-packages/homeassistant/helpers/template.py", line 1477, in _render_with_context
2|ais | return template.render(**kwargs)
2|ais | File "/data/data/pl.sviete.dom/files/usr/lib/python3.9/site-packages/jinja2/environment.py", line 1304, in render
2|ais | self.environment.handle_exception()
2|ais | File "/data/data/pl.sviete.dom/files/usr/lib/python3.9/site-packages/jinja2/environment.py", line 925, in handle_exception
2|ais | raise rewrite_traceback_stack(source=source)
2|ais | File "<template>", line 1, in top-level template code
2|ais | TypeError: can't multiply sequence by non-int of type 'float'
Ma ktoś pomysł co mogło się schrzanić, biorąc pod uwagę że na bramce nie instalowałem niczego nowego.
A może to wynik “komunikacyjnego zakłócania się” połączonych bramek DEV3 i DEV1?