when
Item Virtual_XHome changed or
Item Virtual_YHome changed
then
if(Virtual_XHome.state == OFF && Virtual_YHome.state == OFF){
sendCommand(AlarmPanel, "Armed")
sendCommand(Lock_FrontDoor, ON)
DownstairsLights.members.forEach(item,i|createTimer(now.plusSeconds(2)) [|sendCommand(item, OFF)])
UpstairsLights.members.forEach(item,i|createTimer(now.plusSeconds(2)) [|sendCommand(item, OFF)])
stateThermo = storeStates(Setpoints)
sendCommand(Virtual_ESM, ON)
alarmLighting = true
}
end
--
You received this message because you are subscribed to the Google Groups "openhab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
For more options, visit https://groups.google.com/d/optout.