DUALR3 MEPLHAA Script, Two Switch, Two stateless buttons, One button (GPIO 0). #2178
IRIETS-Vedic
started this conversation in
MEPLHAA Scripts Collection
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I greet you in the summer of 7532 from the creation of the world. On the 10th of the month of bailet! I wrote this script for the next use in my home. One press turns on the chandelier, two presses turn on all the lights in the room, one long press turns off all the lights in the room. You can program the button actions in the Homekit home app.
Device Name: Sonoff DUALR3
URL to Device: https://sonoff.tech/product/diy-smart-switches/dualr3/
Used HAA version: 12.10.1
Summary of functions: On/off
MEPLHAA script:
{
"c": {
"l": 13,
"b": [ [ 0, 5 ],[32,5],[33,5 ] ],
"io": [ [ [ 13, 14, 27 ], 2 ], [ [ 0 ], 6 ], [ [ 32, 33 ], 6, 0, 1 ] ]
},
"a": [{
"0": {"r": [ [ 14 ] ] },
"1": { "r": [ [ 14, 1 ] ] },
"s": 5,
"t": 1,
"b": [ [ 0, 2 ]],
"es":[{
"t": 3,
"f0": [ [ 33, 1 ] ],
"f1": [ [ 33, 2 ] ],
"f2": [ [ 33, 3 ] ]
}
Beta Was this translation helpful? Give feedback.
All reactions