I’m running on a Raspberry Pi3 with a Sonoff Zigbee 3.0 USB Dongle Plus plugged in.
I have two generations of Phillips Hue wall switches - 2016 and 2021.
If I create an automation the 2021 switch works exactly as expected, but the 2016 one doesn’t.
However, both switches fire events I can see in the logbook.
The 2021 switch shows this when I press the “on” button:
Philips 2021 Remote Button Short Press - Turn On event was fired
The 2016 shows this:
Philips 2016 On event was fired
I understand these events are labelled differently, which I presume is why the automation isn’t working with the older switch - it’s looking for different labels.
Within ZHA I see there’s an attribute called “quirk” which I presume is something that HomeAssistant somewhere along the line can use to determine the expected labels.
The 2021 switch has a quirk of “zhaquirks.philips.rwl022.PhilipsRWL022” whereas the 2016 one has a quirk of “zhaquirks.philips.rwlfirstgen.PhilipsRWLFirstGen”.
My question is:
How do I modify this device accordingly so that the 2016 switch triggers automations? The “device” being seen by HomeAssistant is evidently unaware of the difference between the switches…
… is the issue with HomeAssistant itself, the ZHA Integration, or my understanding of how to target it?
I’m pretty technically capable; just not sure where I’m meant to be looking…
Please post the automation in a code block and what logs you see. It’s very difficult to determine what’s wrong with automations in some cases in best circumstances. It’s impossible without logs and the code. (seeing the automation and its trigger will help id what’s different)
Device 24d408b1b330890b9ff9423869faea6c is working as a trigger, device 680df717b56eabc55985b83c72246f42 isn’t…
In the logbook I’m seeing this:
Philips PhilipsRWLFirstGen Bedroom On event was fired
12:44:28 - Now
Zigbee on triggered by event 'zha_event'
12:44:28 - Now
Philips RWL022 Hallway Remote Button Short Press - Turn On event was fired
12:44:28 - Now
So, one of the remotes is triggering the automation, the other isn’t…
Very happy to share other logs if you can guide me to what I need to post?
Answered my own question, I see now I can trigger it with the event_data by specifying the device_ieee, endpoint_id and command Don’t really understand why the previous device based trigger doesn’t work, but glad I now see how to go from the device listening data to a trigger