I’m using a Hue tap dial switch via zigbee home automation to create a simple automation. It listens to zha_event to start. In the conditions part I use the code below to catch which button is being pressed
What I can’t figure out is how to do double presses; i’m using the tap to control my Sonos system so I want to use a single press to start a playlist and a double press on the same button to skip a song.
Does anyone have experience with this? Some tips to point me in the right direction would be appreciated. I did find some blueprints but none seem to support double presses.
Thanks!
If you use the developer tools, events to listen to zha_event then double press, you should be able to pick out the command or Args to use as a trigger or condition as required.
Hey rossk,
Thats where the [14666, 1] in my code comes from. It stays the same for single or double press. Makes me think double press isn’t supported by zigbee home automation or the tap dial so I need to code something myself with timers,…
I think it isn’t used by the switch because I can’t find a tap dial blueprint which supports it.
I try to program the behaviour with automations but the problem is when I create an automation for the double press, it messes with my single press automation. What i now want to do is to combine both single and double press into one automation. That seems pretty hard to do (or just because i’m a home assistant beginner).