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

(Новая страница: «if (i > 0 && dev["wb-mcm8_20/Input 1"]) { i-- dev["wb-mdm3_58/Channel 1"] = i } else { timers["input1_shortlong_press"].stop(); } } });»)
Строка 413: Строка 413:
When connecting the WB-MSW v.3 sensor to the Wiren Board controller, it is possible to create interesting scenarios using data from the sensor. For example, turn on the light when moving, signal with LEDs when the CO2 or VOC value is exceeded, turn on the air conditioner if it is hot or the air humidifier if the air is too dry. Rules are created individually for tasks. Here we will give some examples to understand the principle of working with the sensor. More examples of writing rules can be found in the '''[[Wb-rules rule engine]]''' documentation.
When connecting the WB-MSW v.3 sensor to the Wiren Board controller, it is possible to create interesting scenarios using data from the sensor. For example, turn on the light when moving, signal with LEDs when the CO2 or VOC value is exceeded, turn on the air conditioner if it is hot or the air humidifier if the air is too dry. Rules are created individually for tasks. Here we will give some examples to understand the principle of working with the sensor. More examples of writing rules can be found in the '''[[Wb-rules rule engine]]''' documentation.


<div lang="ru" dir="ltr" class="mw-content-ltr">
=== CO2 ===
=== CO2 ===
При концентрации CO2 меньше 650 - раз в 10 секунд мигаем зеленым.
When the CO2 concentration is less than 650, we flash green once every 10 seconds.
</div>


<div lang="ru" dir="ltr" class="mw-content-ltr">
When the CO2 concentration is over 651, but less than 1000, we flash yellow once every 5 seconds.
При концентрации CO2 свыше 651, но меньше 1000 - раз в 5 секунд мигаем желтым.
</div>


<div lang="ru" dir="ltr" class="mw-content-ltr">
<div lang="ru" dir="ltr" class="mw-content-ltr">
translator, wb_editors
4293

правки