Translations:Rule Examples/61/en: различия между версиями

Материал из Wiren Board
(Новая страница: «defineRule("roller_shutter_both_on" + suffix, { asSoonAs: function() { return dev[relay_up_device][relay_up_control] && dev[relay_down_device][relay_down_control]; }, then: function () { if (relay_up_timer_id) { relay_up_timer_id = clearTimeout(relay_up_timer_id); };»)
 
 
Строка 1: Строка 1:
defineRule("roller_shutter_both_on" + suffix, {
defineRule("roller_shutter_both_on" + suffix, {
     asSoonAs: function() {
     asSoonAs: function() {
       return dev[relay_up_device][relay_up_control] && dev[relay_down_device][relay_down_control];
       return dev[relay_up_device][relay_up_control] && dev["relay_down_device/relay_down_control"];
     },
     },
     then: function () {
     then: function () {

Текущая версия на 21:55, 21 сентября 2022

Определение сообщения (Rule Examples)
defineRule("roller_shutter_both_on" + suffix, {
   asSoonAs: function() {
     return dev["relay_up_device/relay_up_control"] && dev["relay_down_device/relay_down_control"];
   },
   then: function () {
     if (relay_up_timer_id) {
       relay_up_timer_id = clearTimeout(relay_up_timer_id); 
     };

defineRule("roller_shutter_both_on" + suffix, {

   asSoonAs: function() {
     return dev[relay_up_device][relay_up_control] && dev["relay_down_device/relay_down_control"];
   },
   then: function () {
     if (relay_up_timer_id) {
       relay_up_timer_id = clearTimeout(relay_up_timer_id); 
     };