16 808
правок
Строка 352: | Строка 352: | ||
=== Примеры === | === Примеры === | ||
{{YouTube | |||
|link=https://youtu.be/C60KB7TCeKg | |||
|text= Пример работы правила | |||
}} | |||
В примере мы используем модуль [[WB-MCM8 Modbus Count Inputs | WB-MCM8]] для управления первым каналом диммера [[WB-MDM3 230V Modbus Dimmer | WB-MDM3]]: | В примере мы используем модуль [[WB-MCM8 Modbus Count Inputs | WB-MCM8]] для управления первым каналом диммера [[WB-MDM3 230V Modbus Dimmer | WB-MDM3]]: | ||
# Короткое нажатие включает канал. | # Короткое нажатие включает канал. | ||
Строка 393: | Строка 397: | ||
then: function (newValue, devName, cellName) { | then: function (newValue, devName, cellName) { | ||
// Start a timer that will increase the value of the control | // Start a timer that will increase the value of the control | ||
startTicker("input1_long_press", | startTicker("input1_long_press", 75); | ||
} | } | ||
}); | }); | ||
Строка 421: | Строка 425: | ||
then: function (newValue, devName, cellName) { | then: function (newValue, devName, cellName) { | ||
// Start a timer that will decrease the value of the control | // Start a timer that will decrease the value of the control | ||
startTicker("input1_shortlong_press", | startTicker("input1_shortlong_press", 75); | ||
} | } | ||
}); | }); |