Перейти к содержанию

Навигация

Движок правил wb-rules/en: различия между версиями

Новая страница: «The rule is triggered every time the control value "D1_IN" of the device "wb-gpio" is changed. The new value of this control is passed to the rule code as a newVa…»
(Новая страница: «In the example, the motion sensor is connected to the input "dry contact", control type "switch". The siren is connected to the built-in relay Wiren Board, and th…»)
(Новая страница: «The rule is triggered every time the control value "D1_IN" of the device "wb-gpio" is changed. The new value of this control is passed to the rule code as a newVa…»)
Строка 102: Строка 102:




Правило срабатывает каждый раз при изменении значения контрола "D1_IN" у устройства "wb-gpio". В код правила передаётся новое значение этого контрола в виде переменной newValue.
The rule is triggered every time the control value "D1_IN" of the device "wb-gpio" is changed. The new value of this control is passed to the rule code as a newValue variable.


<syntaxhighlight lang="ecmascript">
<syntaxhighlight lang="ecmascript">
12 063

правки