Translations:Rule Examples/174/en
// 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 } });