Translations:Rule Examples/68/en

Версия от 20:39, 21 сентября 2022; Matveevrj (обсуждение | вклад) (Новая страница: «defineRule("roller_shutter_1_both_on", { asSoonAs: function() { return relay_up_1 && relay_down_1; }, then: function () { relay_up_1 = 0; relay_down_1 = 0; log("Both roller shutter relays on, switching them off"); } }); })();»)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)

defineRule("roller_shutter_1_both_on", {

   asSoonAs: function() {
     return relay_up_1 && relay_down_1;
   },
   then: function () {
     relay_up_1 = 0;
     relay_down_1 = 0;
     log("Both roller shutter relays on, switching them off");
   }
 });

})();