[SOLVED] Timer don't stop

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 ?

So you are using a proxy item. When does it receive a 1

Yes (a generic way to trigger an event …)

…hmm…
I can not test it, now … but … could be the (not installed…) “Expire” Binding :roll_eyes:

1 Like

Yep you need to actually install the Expire Binding