Translations:Rule Examples/186/en

Материал из Wiren Board
Версия от 21:04, 21 сентября 2022; Matveevrj (обсуждение | вклад) (Новая страница: «defineRule("countersACOn", { when: function() { return (dev._schedules.working_hours_15m) && (countersTemperature < 17.7); }, then: function (newValue, devName, cellName) { log("countersACOn newValue={}, devName={}, cellName={}", newValue, devName, cellName); dev["wb-mir_75/Play from ROM7"] = true; // air conditioning cash area for heating } });»)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)

defineRule("countersACOn", {

   when: function() {
     return (dev._schedules.working_hours_15m) && (countersTemperature < 17.7);
   },
   then: function (newValue, devName, cellName) {
     log("countersACOn  newValue={}, devName={}, cellName={}", newValue, devName, cellName);
     dev["wb-mir_75/Play from ROM7"] = true; // air conditioning cash area for heating
   }
 });