Closed GoogleCodeExporter closed 8 years ago
following rule works today without state reset, the secret is 'received update':
rule "Garagentor auf / zu"
when
Item Fb_Falk_B2 received update ON
then
if(timer == null) {
sendCommand( Tor_Aussen_Garage, ON)
timer = createTimer(now.plusSeconds(2)) [|
sendCommand(Tor_Aussen_Garage, OFF)
timer.cancel
timer = null
]
}
end
a rule with changed to ON needs a state reset after rule start like:
rule "Garagentor auf / zu"
when
Item Fb_Falk_B2 received update ON
then
if(timer == null) {
sendCommand( Tor_Aussen_Garage, ON)
timer = createTimer(now.plusSeconds(2)) [|
sendCommand(Tor_Aussen_Garage, OFF)
postUpdate(Fb_Falk_B2, OFF)
postUpdate(Fb_Andrea_B2, OFF)
timer.cancel
timer = null
]
}
end
Original comment by falk.sa...@gmail.com
on 17 Nov 2013 at 1:56
Original comment by teichsta
on 17 Nov 2013 at 6:43
This issue has been migrated to Github. If this issue id is greater than103 its
id has been preserved on Github. You can open your issue by calling the URL
https://github.com/openhab/openhab/issues/<issueid>. Issues with ids less or
equal 103 new ids were created.
Original comment by teichsta
on 17 Nov 2013 at 8:09
Set status to "invalid" to show that these issues are not tracked here anymore
- please refer to GitHub instead!
Original comment by kai.openhab
on 2 Dec 2013 at 7:12
Original issue reported on code.google.com by
falk.sa...@gmail.com
on 16 Nov 2013 at 5:32