I’m pretty sure the only device I really noticed the issue with was the Hue Dimmer. I’ve had debug logging on for a while now but I have to actually parse through it to see what the behaviour is. Tomorrow I plan to remove the remote from deconz and readd it and see what happens on HASS startup.
Another issue, I’m not sure if you’ve noticed it or if I’ve configured something in either HA or deconz incorrectly: For testing purposes I’ve limited my test system to a Hue Dimmer and two Hue white ambiance lights connected to deconz and configured in a deconz group. When I start HASS, the lights are picked up along with the group - perfect. And the remote sends events which are picked up in HASS - perfect.
But, if I restart Deconz, though the lights are available immediately when Pydeconz reconnects to the websocket, no deconz_event is picked up in HASS on button presses of the remote. If I check the deconz web app, the remote is greyed out as if it’s not yet detected. Shortly after, the icon in deconz is no longer greyed out, which I think means it’s now available, but there are still no deconz events in HASS on button presses. This happened last night when I updated deconz to 2.04.96, I couldn’t figure out why the remote stopped working and so went to bed to leave t for the morning. When I got up, the remote worked again to send deconz_events in Hass.
So I’m not really sure yet if the problem is on deconz side (is it sending button events on the websocket API?) or on the pydeconz side (not reconnecting properly after a disconnect?).
EDIT: Update
After a system restart (so both deconz and HASS restarted), here’s what’s in the logs:
2017-12-10 22:38:34 DEBUG (MainThread) [pydeconz.deconzdevice] Master Bedroom Dimmer created as {'_swversion': '5.45.1.16265', '_on': True, '_ep': 2, '_modelid': 'RWL020', '_sensor_icon': None, '_reachable': False, '_type': 'ZHASwitch', '_name': 'Master Bedroom Dimmer', '_buttonevent': 2002, '_battery': 100, '_manufacturername': 'Philips', '_sensor_unit': None, '_etag': '6402e68da38024e56a1564c84ecb96bc', '_async_callback': [], '_uniqueid': '00:17:88:01:10:3f:62:35-02-fc00', '_sensor_class': None}
And then shortly thereafter:
2017-12-10 22:41:44 DEBUG (MainThread) [pydeconz.websocket] Websocket data: b'\x81v{"config":{"battery":100,"group":"11721","on":true,"reachable":true},"e":"changed","id":"2","r":"sensors","t":"event"}'
2017-12-10 22:41:44 DEBUG (MainThread) [pydeconz.deconzdevice] Update {}
2017-12-10 22:41:44 DEBUG (MainThread) [pydeconz.deconzdevice] Update {'group': '11721', 'battery': 100, 'on': True, 'reachable': True}
So its looks like the dimmer is at first unreachable, then a few minutes later is reachable. But pressing buttons yields no deconz_event in HASS. Any advice on how I can debug further?