Hi.
My platform is standard OpenHabian 2.4.0-1 on Raspberry Pi 3
I’ve tried the “Expire Binding Based Timers” Design Pattern … but … Timer don’t stop …
This is my configuration:
Items
Number MyTimerStart "Test1"
Switch MyTimer { expire="10s,command=OFF" }
Rules
rule "Starts MyTimer"
when
Item MyTimerStart received update 1
then
MyTimer.postUpdate(OFF)
MyTimer.sendCommand(ON)
logInfo("TimerTest", "TIMER started !!!")
end
rule "MyTimer expired"
when
Item MyTimer received command OFF
then
logInfo("TimerTest", "TIMER expired !!!")
end
Sitemap
sitemap timer label="Timer Test" {
Switch item=MyTimerStart label="Start Timer" mappings=[1=Start]
}
Where is my mistake ?