Page 1 of 1

Aqara Opple switch 3 bands how configure in Domoticz with Blockly

Posted: Saturday 05 February 2022 14:00
by njlammerts
I have a Aqara Opple switch 3 bands. Every switch has more then one function. one press, double press, triple press, hold, release
Schermafbeelding 2022-02-05 om 13.54.49.png
Schermafbeelding 2022-02-05 om 13.54.49.png (42.85 KiB) Viewed 918 times
How to configure every button as switch on and switch off

first button:
once press = on (switch 1) and double press = off (switch 1), and triple press = on (switch 2) and double press = off (switch 2)

second button:
once press = on (switch 3) and double press = off (switch 3), and triple press = on (switch 4) and double press = off (switch 4)

third button:
once press = on (switch 5) and double press = off (switch 5), and triple press = on (switch 6) and double press = off (switch 6)
Schermafbeelding 2022-02-05 om 13.58.43.png
Schermafbeelding 2022-02-05 om 13.58.43.png (89.04 KiB) Viewed 918 times
Schermafbeelding 2022-02-05 om 13.57.40.png
Schermafbeelding 2022-02-05 om 13.57.40.png (369.13 KiB) Viewed 918 times

Re: Aqara Opple switch 3 bands how configure in Domoticz with Blockly

Posted: Saturday 05 February 2022 15:15
by waltervl
Make a blockly script that checks the state and do the on/off action for another device according that state.

So something like
If level button 2 is "Click" set switch x on
If level button 2 is "Double" set switch x off

Since latest stable it is also possible to toggle a switch on/off.
If level button 2 is "Click" set switch x toggle.

Re: Aqara Opple switch 3 bands how configure in Domoticz with Blockly

Posted: Thursday 10 February 2022 14:41
by njlammerts
I got a blocky script to work as described above, only the toggle function I am not able to get it to work, not knowing where to set the function "toggle"

Re: Aqara Opple switch 3 bands how configure in Domoticz with Blockly

Posted: Thursday 10 February 2022 15:26
by waltervl
Oh sorry, yes, toggle is a new function in Beta 2022.1, I thought it was in stable already.