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

Нет описания правки
Строка 428: Строка 428:
         var co2_bad = newValue > 1001;
         var co2_bad = newValue > 1001;


         <div class="mw-translate-fuzzy">
         if (co2_good) {
if (co2_good) {
             dev["devName/Green LED"] = true;
             dev[devName]["Green LED"] = true;
             dev["devName/Red LED"] = false;
             dev[devName]["Red LED"] = false;
             dev["devName/LED Period (s)"] = 10;
             dev[devName]["LED Period (s)"] = 10;
         }
         }
         if (co2_middle) {
         if (co2_middle) {
             dev[devName]["Green LED"] = true;
             dev["devName/Green LED"] = true;
             dev[devName]["Red LED"] = true;
             dev["devName/Red LED"] = true;
             dev[devName]["LED Period (s)"] = 5;
             dev["devName/LED Period (s)"] = 5;
         }
         }
         if (co2_bad) {
         if (co2_bad) {
             dev[devName]["Green LED"] = false;
             dev["devName/Green LED"] = false;
             dev[devName]["Red LED"] = true;
             dev["devName/Red LED"] = true;
             dev[devName]["LED Period (s)"] = 1;
             dev["devName/LED Period (s)"] = 1;
         }
         }
     }
     }
Строка 450: Строка 449:
=== Max Motion ===
=== Max Motion ===
"Max Motion" - the maximum value of the motion sensor for N time. Time from 1 to 60 seconds can be set in register 282. The default is 10 seconds. When the Max Motion value reaches 50, we check whether the room is sufficiently lit, if not, turn on the light. As soon as the Max Motion value drops below 50, turn off the light.
"Max Motion" - the maximum value of the motion sensor for N time. Time from 1 to 60 seconds can be set in register 282. The default is 10 seconds. When the Max Motion value reaches 50, we check whether the room is sufficiently lit, if not, turn on the light. As soon as the Max Motion value drops below 50, turn off the light.
</div>


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
translator, wb_editors
4293

правки