I have a Aqara Opple switch 3 bands. Every switch has more then one function. one press, double press, triple press, hold, release
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)
How to configure every button as switch on and switch offAqara Opple switch 3 bands how configure in Domoticz with Blockly
Moderator: leecollings
-
- Posts: 149
- Joined: Wednesday 12 August 2020 17:13
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.2
- Location: Fryslan
- Contact:
- 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
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.
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
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- 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
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"
- 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
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
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Who is online
Users browsing this forum: No registered users and 1 guest