Hi ALl,
Can someone tell me why this happen:
2020-05-13 18:04:37 ERROR (MainThread) [homeassistant.util.logging] Exception in state_received when handling msg on 'milight/states/0xAAAF/rgb_cct/0': '{"brightness":3,"level":1,"color":{"r":255,"g":255,"b":255},"device_id":43695,"group_id":0,"device_type":"rgb_cct"}'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/mqtt/debug_info.py", line 35, in wrapper
msg_callback(msg)
File "/usr/src/homeassistant/homeassistant/components/mqtt/light/schema_json.py", line 243, in state_received
if values["state"] == "ON":
KeyError: 'state'
2020-05-13 18:04:37 ERROR (MainThread) [homeassistant.util.logging] Exception in state_received when handling msg on 'milight/states/0xAAAF/rgb_cct/1': '{"brightness":3,"level":1,"color":{"r":255,"g":255,"b":255},"device_id":43695,"group_id":0,"device_type":"rgb_cct"}'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/mqtt/debug_info.py", line 35, in wrapper
msg_callback(msg)
File "/usr/src/homeassistant/homeassistant/components/mqtt/light/schema_json.py", line 243, in state_received
if values["state"] == "ON":
KeyError: 'state'
2020-05-13 18:04:37 ERROR (MainThread) [homeassistant.util.logging] Exception in state_received when handling msg on 'milight/states/0xAAAF/rgb_cct/2': '{"brightness":3,"level":1,"color":{"r":255,"g":255,"b":255},"device_id":43695,"group_id":0,"device_type":"rgb_cct"}'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/mqtt/debug_info.py", line 35, in wrapper
msg_callback(msg)
File "/usr/src/homeassistant/homeassistant/components/mqtt/light/schema_json.py", line 243, in state_received
if values["state"] == "ON":
KeyError: 'state'
2020-05-13 18:04:37 ERROR (MainThread) [homeassistant.util.logging] Exception in state_received when handling msg on 'milight/states/0xAAAF/rgb_cct/3': '{"brightness":3,"level":1,"color":{"r":255,"g":255,"b":255},"device_id":43695,"group_id":0,"device_type":"rgb_cct"}'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/mqtt/debug_info.py", line 35, in wrapper
msg_callback(msg)
File "/usr/src/homeassistant/homeassistant/components/mqtt/light/schema_json.py", line 243, in state_received
if values["state"] == "ON":
KeyError: 'state'
2020-05-13 18:04:38 ERROR (MainThread) [homeassistant.util.logging] Exception in state_received when handling msg on 'milight/states/0xAAAF/rgb_cct/0': '{"brightness":0,"level":0,"color":{"r":255,"g":255,"b":255},"device_id":43695,"group_id":0,"device_type":"rgb_cct"}'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/mqtt/debug_info.py", line 35, in wrapper
msg_callback(msg)
File "/usr/src/homeassistant/homeassistant/components/mqtt/light/schema_json.py", line 243, in state_received
if values["state"] == "ON":
KeyError: 'state'
2020-05-13 18:04:38 ERROR (MainThread) [homeassistant.util.logging] Exception in state_received when handling msg on 'milight/states/0xAAAF/rgb_cct/1': '{"brightness":0,"level":0,"color":{"r":255,"g":255,"b":255},"device_id":43695,"group_id":0,"device_type":"rgb_cct"}'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/mqtt/debug_info.py", line 35, in wrapper
msg_callback(msg)
File "/usr/src/homeassistant/homeassistant/components/mqtt/light/schema_json.py", line 243, in state_received
if values["state"] == "ON":
KeyError: 'state'
2020-05-13 18:04:39 ERROR (MainThread) [homeassistant.util.logging] Exception in state_received when handling msg on 'milight/states/0xAAAF/rgb_cct/2': '{"brightness":0,"level":0,"color":{"r":255,"g":255,"b":255},"device_id":43695,"group_id":0,"device_type":"rgb_cct"}'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/mqtt/debug_info.py", line 35, in wrapper
msg_callback(msg)
File "/usr/src/homeassistant/homeassistant/components/mqtt/light/schema_json.py", line 243, in state_received
if values["state"] == "ON":
KeyError: 'state'
2020-05-13 18:04:39 ERROR (MainThread) [homeassistant.util.logging] Exception in state_received when handling msg on 'milight/states/0xAAAF/rgb_cct/3': '{"brightness":0,"level":0,"color":{"r":255,"g":255,"b":255},"device_id":43695,"group_id":0,"device_type":"rgb_cct"}'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/mqtt/debug_info.py", line 35, in wrapper
msg_callback(msg)
File "/usr/src/homeassistant/homeassistant/components/mqtt/light/schema_json.py", line 243, in state_received
if values["state"] == "ON":
KeyError: 'state'
I tried to restart MQTT Add-On, also the Milight Hub, HA itself. But see this error many times now.