maxico
(Maximilian Scheiner)
5
Autoupdate= false does not change the item back. I had the same learning curve
there are several ways to realize a pushbutton.
One is to use a rule:
rule "Pushbutton"
when
Item youritem received command ON
then
createTimer(now.plusSeconds(1)) [|
youritem.sendCommand(OFF)
]
end
you can see the one second timer like @vzorglub mentioned.
The use of Milliseconds is also possible with
createTimer(now.plusMillis(150)) [|...
But the timer is not necessary.
Another option to realize a pushbutton is the expire binding: