This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Shelly 1 Mini Gen3 script | |
// Input: detached switch (input:0) | |
// Relay: switch:0 | |
// Virtual boolean: id=200 ("Confirm") | |
// Changes compared to original: Compatibility with gen3, | |
// script now considers the switch input state and handles it accordingly, | |
// improve robustness against toggling switch multiple time in succession. | |
let SW_INPUT = 0; |