Rules
In order to activate the security system, I need to show the house that I am not there. I will be doing this by showing connection with my phone, as I don't leave my house without it. This is done using the network binding, which searches for the phones IP on the network. This is how I programmed that rule:
rule "Security"
when
Item PingableNetworkDevice_Online changed to OFF
then
Frontdoor.sendCommand (OFF)
Poort.sendCommand (ON)
KNXDevice10_.sendCommand (OFF)
end
rule "coming home"
when
Item PingableNetworkDevice_Online changed to ON
then
var Number hour = now.getHourOfDay
if (hour >15 && hour <17){Poort.sendCommand (OFF)
TostiIjzer_Switch.sendCommand (ON)}
if (LocalSun_Position_Elevation.state <3){KNXDevice10_.sendCommand (ON)}
end
Like