I followed the same directions but I unfortunately donāt seem to see any zha_events
firing in the logs, despite setting default level to debug.
The button Iām using is the WXXG11LM and it seems to have paired OK with ZHA.
This is me jamming on the button a few times. The events here just seem to be signal strength updates. I have the log viewer filtering for āzha
ā in the log text:
2019-01-25 22:52:50 DEBUG (MainThread) [homeassistant.components.zha.sensor] Attribute updated: <Entity None: 1> 0 Bool.false
2019-01-25 22:52:50 DEBUG (MainThread) [homeassistant.components.zha.sensor] Attribute updated: <Entity None: 0> 0 Bool.true
2019-01-25 22:52:52 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=zha.zha_01b86f7c, old_state=<state zha.zha_01b86f7c=online; nwk=0x90d0, ieee=00:15:8d:00:01:b8:6f:7c, lqi=255, rssi=-48 @ 2019-01-25T22:19:47.004677-05:00>, new_state=<state zha.zha_01b86f7c=online; nwk=0x90d0, ieee=00:15:8d:00:01:b8:6f:7c, lqi=254, rssi=-46 @ 2019-01-25T22:19:47.004677-05:00>>
2019-01-25 22:52:52 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.140511315281400] Sending {'id': 2, 'type': 'event', 'event': {'event_type': 'state_changed', 'data': {'entity_id': 'zha.zha_01b86f7c', 'old_state': <state zha.zha_01b86f7c=online; nwk=0x90d0, ieee=00:15:8d:00:01:b8:6f:7c, lqi=255, rssi=-48 @ 2019-01-25T22:19:47.004677-05:00>, 'new_state': <state zha.zha_01b86f7c=online; nwk=0x90d0, ieee=00:15:8d:00:01:b8:6f:7c, lqi=254, rssi=-46 @ 2019-01-25T22:19:47.004677-05:00>}, 'origin': 'LOCAL', 'time_fired': datetime.datetime(2019, 1, 26, 3, 52, 52, 5971, tzinfo=<UTC>), 'context': {'id': '104505d7f58442f8a7381ed3a655862c', 'user_id': None}}}
2019-01-25 22:52:52 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.140511195247840] Sending {'id': 2, 'type': 'event', 'event': {'event_type': 'state_changed', 'data': {'entity_id': 'zha.zha_01b86f7c', 'old_state': <state zha.zha_01b86f7c=online; nwk=0x90d0, ieee=00:15:8d:00:01:b8:6f:7c, lqi=255, rssi=-48 @ 2019-01-25T22:19:47.004677-05:00>, 'new_state': <state zha.zha_01b86f7c=online; nwk=0x90d0, ieee=00:15:8d:00:01:b8:6f:7c, lqi=254, rssi=-46 @ 2019-01-25T22:19:47.004677-05:00>}, 'origin': 'LOCAL', 'time_fired': datetime.datetime(2019, 1, 26, 3, 52, 52, 5971, tzinfo=<UTC>), 'context': {'id': '104505d7f58442f8a7381ed3a655862c', 'user_id': None}}}
2019-01-25 22:52:52 DEBUG (MainThread) [homeassistant.components.zha.sensor] Attribute updated: <Entity None: 1> 32768 2
2019-01-25 22:52:54 DEBUG (MainThread) [homeassistant.components.zha.sensor] Attribute updated: <Entity None: 1> 0 Bool.false
2019-01-25 22:52:54 DEBUG (MainThread) [homeassistant.components.zha.sensor] Attribute updated: <Entity None: 0> 0 Bool.true
2019-01-25 22:52:54 DEBUG (MainThread) [homeassistant.components.zha.sensor] Attribute updated: <Entity None: 1> 0 Bool.false
2019-01-25 22:52:54 DEBUG (MainThread) [homeassistant.components.zha.sensor] Attribute updated: <Entity None: 0> 0 Bool.true
I tried constructing an automation like the one @Quatuor suggested (btw, THANKS !) but the action I had (simple light toggle) didnāt happen when I pressed the button (but worked when I manually tripped the automation)
Thanks for all the hard work on ZHA ! Hopefully soon I can reduce the number of boxes on the shelf by 1 and decommission my deconz box for the other Zigbee stuff I have.