Using Milliseconds in Rules.
Posted: 08 Sep 2017, 14:29
Objective is to use a relay to do the same thing as the push button in my garage. To do that I just need the relay to turn on then off again for about 500 milliseconds. I've worked out how to use a timer in the rules to turn the relay off after a second but I really don't need it on for a full second. Is it possible to use milliseconds in the rules?
I have openHAB2 sending a MQTT to the ESP and the rule I set below to turn the switch off.
Any help or advice would be great.
I have openHAB2 sending a MQTT to the ESP and the rule I set below to turn the switch off.
Any help or advice would be great.
Code: Select all
on Garage_Door#ON do
gpio,5,1
timerSet,1,1
endon
On Rules#Timer=1 do
gpio,5,0
endon