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
| Used scenes - "No electricity! Battery backup activated!" and "Electricity restored" | |
| var emeter = deviceFactory.getDevice("ec626089196c"); | |
| function init() { | |
| emeter.setTriggerWithHoldOff("aVoltage < 1.0", 1); | |
| } | |
| function when() { | |
| return emeter.aVoltage < 1.0; | |
| } |
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
| Used scenes - "Warehouse Motion" and "Warehouse No Motion" | |
| var motionSensor = deviceFactory.getDevice("XB206718634266744"); | |
| var motionSensor1 = deviceFactory.getDevice("XB194372482493657"); | |
| var relayRoller = deviceFactory.getDevice("083af2be0de4"); | |
| function init() { | |
| } | |
| function when() { | |
| return motionSensor.motion || motionSensor1.motion; |
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
| Used scenes - "Car is charged" and "Taycan has started to charge" | |
| var emeter = deviceFactory.getDevice("84cca8adf25c"); | |
| function init() { | |
| emeter.setTriggerWithHoldOff("totalPower < 100.0", 10); | |
| } | |
| function when() { | |
| return emeter.totalPower < 100.0; | |
| } |
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
| Used scenes - "Lights lv3" and "Level 3 light off" | |
| var motionSensor = deviceFactory.getDevice("XB206718634267575"); | |
| var relayRoller = deviceFactory.getDevice("8caab505aa85"); | |
| function init() { | |
| sceneUtils.setActiveTime({ | |
| start: "20:00", | |
| duration: "239", | |
| days: [1, 2, 3, 4, 5, 6, 7] | |
| }); |