Перейти к содержанию

Навигация

Движок правил wb-rules/en: различия между версиями

Новая страница: «// after working hours, the air conditioning is off defineRule("countersACOff", { when: function() { return (!dev._schedules.working_hours_15m) || (co…»
(Новая страница: «defineRule("countersACOn", { when: function() { return (dev._schedules.working_hours_15m) && (countersTemperature < 17.7); }, then: function (ne…»)
(Новая страница: «// after working hours, the air conditioning is off defineRule("countersACOff", { when: function() { return (!dev._schedules.working_hours_15m) || (co…»)
Строка 1064: Строка 1064:
   });
   });


   // в нерабочее время кондиционер выключен
   // after working hours, the air conditioning is off
   defineRule("countersACOff", {
   defineRule("countersACOff", {
     when: function() {
     when: function() {
Строка 1071: Строка 1071:
     then: function (newValue, devName, cellName) {
     then: function (newValue, devName, cellName) {
       log("countersACOff  newValue={}, devName={}, cellName={}", newValue, devName, cellName);
       log("countersACOff  newValue={}, devName={}, cellName={}", newValue, devName, cellName);
       dev["wb-mir_75/Play from ROM2"] = true; // кондиционер кассовой зоны выключить
       dev["wb-mir_75/Play from ROM2"] = true; // shut down air conditioning cash area
     }
     }
   });
   });
12 063

правки