Rule Examples/en: различия между версиями
Matveevrj (обсуждение | вклад) (Новая страница: «The file can be edited with vim, nano, or mcedit in an ssh session on the device, or it can be downloaded with SCP.») |
Matveevrj (обсуждение | вклад) (Новая страница: «7. Let's describe the rules for turning the switch on and off») |
||
Строка 1284: | Строка 1284: | ||
}); | }); | ||
// =============== Vegetable Zone ============== | |||
// =============== | // Refrigeration of vegetables with air conditioning only when the air temperature is above 18.5C | ||
// | |||
defineRule("acVegOn", { | |||
defineRule("acVegOn", { | |||
when: function() { | when: function() { | ||
return vegetablesTemperature >= 18.5 | return vegetablesTemperature >= 18.5 | ||
Строка 1296: | Строка 1293: | ||
then: function (newValue, devName, cellName) { | then: function (newValue, devName, cellName) { | ||
log("acVegOn newValue={}, devName={}, cellName={}", newValue, devName, cellName); | log("acVegOn newValue={}, devName={}, cellName={}", newValue, devName, cellName); | ||
dev["wb-mir_76/Play from ROM3"] = true; // | dev["wb-mir_76/Play from ROM3"] = true; // Cooling +18 | ||
} | } | ||
}); | }); | ||
<div lang="ru" dir="ltr" class="mw-content-ltr"> | <div lang="ru" dir="ltr" class="mw-content-ltr"> |