Hi, I added a Tradfri remote and found below in the UI. I added a Lutron Zigbee remote before but have NO clue how I found the button codes I can use in automations… Any help appreciated.
PS when I subscribe to zha_event, I see events like this, but no button codes:
{ "event_type": "zha_event", "data": { "device_ieee": "b4:e3:f9:ff:fe:07:06:a2", "unique_id": "b8:e3:f9:ff:fe:07:05:a2:1:0x0006", "device_id": "ecf8cfff574200d379111a101e27e", "endpoint_id": 1, "cluster_id": 6, "command": "toggle", "args": [] }, "origin": "LOCAL", "time_fired": "2022-02-10T04:29:40.841526+00:00", "context": { "id": "d72ab3c11dda3c78ee7fa2b1c12eced0", "parent_id": null, "user_id": null } }
These events are defined for each supported device like this: https://github.com/Koenkk/zigbee-herdsman-converters/blob/7eedb32cc412dc8f82c29b9ce5e563bb3ba541c2/devices/ikea.js#L543
ZHA definitions: https://github.com/zigpy/zha-device-handlers/blob/e4b8eda75a526c0a1eb3b4fb4bbe8cd158991fb4/zhaquirks/ikea/fourbtnremote.py#L33
PS: this is the link from z2mqtt, not sure about zha explicitly
Thanks! Seems a good set of starting point.