Aqara Opple switch 3 bands how configure in Domoticz with Blockly

Moderator: leecollings

Post Reply
njlammerts
Posts: 149
Joined: Wednesday 12 August 2020 17:13
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Fryslan
Contact:

Aqara Opple switch 3 bands how configure in Domoticz with Blockly

Post 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 916 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 916 times
Schermafbeelding 2022-02-05 om 13.57.40.png
Schermafbeelding 2022-02-05 om 13.57.40.png (369.13 KiB) Viewed 916 times
User avatar
waltervl
Posts: 5904
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

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

Post 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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
njlammerts
Posts: 149
Joined: Wednesday 12 August 2020 17:13
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Fryslan
Contact:

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

Post 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"
User avatar
waltervl
Posts: 5904
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

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

Post by waltervl »

Oh sorry, yes, toggle is a new function in Beta 2022.1, I thought it was in stable already.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest