Recently I had to restart from scratch my whole HA setup as I moved from ZHA to Z2M.
One of the things I am struggling with is one of my devices - a zigbee rotatable button - that has the ability to :
-single click
-double click
-rotate left
-rotate right
the way i had it set up before was
-single click: toggle device on/off.
-double click: select device
-rotate right: inc brightness on that device
-rotate left: dec brightness on that device.
the devices were a list of 3
-lights.attic_main
-lights.attic_eaves
-lights.attic_den
I have completely forgotten how I set this up - do I use a helper with the dropdown, to cycle through this list? But then how does the device know which one is ‘selected’?
I cant get my head around this -any ideas would be much appreciated.
Single/double click and rotate left/right are triggers
Assign each trigger an ID
Use if/then actions
Actions are
If trigger ID single then toggle device on/off.
If trigger ID double then select device
If trigger ID right then inc brightness
If trigger ID left then dec brightness on that device.
You will need a method to determine deleted device.l Helper and list could work
Before going and editing your automation, double check what actions are exposed by your remote. They may have changed…
Go into Z2M, find your remote in the device list, select it and choose the Exposes tab. You can then perform the actions you would use and confirm the action name. These actions will match the trigger in the automation editor.