Translations:Rule Examples/187/en

Материал из Wiren Board
Версия от 21:04, 21 сентября 2022; Matveevrj (обсуждение | вклад) (Новая страница: «// after working hours, the air conditioning is off defineRule("countersACOff", { when: function() { return (!dev._schedules.working_hours_15m) || (countersTemperature > 18.0); }, then: function (newValue, devName, cellName) { log("countersACOff newValue={}, devName={}, cellName={}", newValue, devName, cellName); dev["wb-mir_75/Play from ROM2"] = true; // shut down air conditioning cash area } });»)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)

// after working hours, the air conditioning is off

 defineRule("countersACOff", {
   when: function() {
     return (!dev._schedules.working_hours_15m) || (countersTemperature > 18.0);
   },
   then: function (newValue, devName, cellName) {
     log("countersACOff  newValue={}, devName={}, cellName={}", newValue, devName, cellName);
     dev["wb-mir_75/Play from ROM2"] = true; // shut down air conditioning cash area
   }
 });