Translations:Rule Examples/60/en
Версия от 21:55, 21 сентября 2022; Matveevrj (обсуждение | вклад)
defineRule("roller_shutter_down_on" + suffix, {
asSoonAs: function() { return dev[relay_down_device][relay_down_control]; }, then: function () { if (relay_down_timer_id) { relay_down_timer_id = clearTimeout(relay_down_timer_id); }; relay_down_timer_id = setTimeout(function() { dev["relay_down_device/relay_down_control"] = 0; }, timeout_s * 1000); } });