Translations:Rule Examples/174/en
Версия от 21:03, 21 сентября 2022; Matveevrj (обсуждение | вклад) (Новая страница: «// sales area illumination defineRule("lightingFrontshopOnOff", { when: function() { return dev._schedules.frontshop_lighting || true; }, then: function (newValue, devName, cellName) { log("lightingFrontshopOnOff newValue={}, devName={}, cellName={}", newValue, devName, cellName); dev["wb-gpio/EXT1_R3A1"] = ! dev._schedules.frontshop_lighting; //inverted contactor } });»)
// sales area illumination
defineRule("lightingFrontshopOnOff", { when: function() { return dev._schedules.frontshop_lighting || true; }, then: function (newValue, devName, cellName) { log("lightingFrontshopOnOff newValue={}, devName={}, cellName={}", newValue, devName, cellName); dev["wb-gpio/EXT1_R3A1"] = ! dev._schedules.frontshop_lighting; //inverted contactor } });