-
Notifications
You must be signed in to change notification settings - Fork 69
2.13 Log errors when motion sensor triggered. #228
Comments
With last changes, a detected new device in any bridge was not added (only those available in platform setup were included), and errors could raise. * Now we register 'model types' in setup platform, and add to HA the entities that match, for each platform. * If an unregistered device (of a registered model) appears at anytime, it is also added to HA. * If some registered entity is caught in a data update before being added to HA, a warning is logged, avoiding the KeyError stated in robmarkcole#224 and robmarkcole#228
Hi @azogue, Have only got one bridge in my setup to test with but am pleased to say no more log errors in response to motion sensor events. Tested my two remotes as well and all looks good! Thank you very much for such a prompt fix. |
Will give it a spin tonight. Just a naive question, how do I deploy a non released version to my system. Typically I’m using HACS to deploy CC to my setup... |
Hi @Kugelfang666,
If you have access to your ha host (with SAMBA or any other), you should see the CC files in the Maybe @robmarkcole releases it quickly :) |
so I just updated to the 2.14 an with that all sensors from both bridges seem to be working. Was your proposed PR part of 2.14? |
so I just updated the CC to 2.14 . while I still encounter the errors in the log something has changed:
Error fetching light data: 83x before they always had the same (similar) count... |
HA 106.6
Native hue integration setup, only using custom component for remotes.
Only entry referencing 'huesensor' in configuration.yaml .
Get this pair of errors each time a motion sensor is activated, the sensors are paired to the hue hub and are working as I would expect. The log time stamps exactly match the 'detect' and 'clear' event times reported in HA.
2020-03-11 11:32:16 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/config/custom_components/huesensor/data_manager.py", line 137, in async_update_from_bridges
self.sensors[dev_id].async_write_ha_state()
KeyError: 'SML_00:17:88:01:03:2b:f8:78-02'
2020-03-11 11:32:31 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/config/custom_components/huesensor/data_manager.py", line 137, in async_update_from_bridges
self.sensors[dev_id].async_write_ha_state()
KeyError: 'SML_00:17:88:01:03:2b:f8:78-02'
Thanks for looking.
The text was updated successfully, but these errors were encountered: