Hi im trying to set a rule that ill get a notification once im entering or exiting home
im using owntracks for that
my item looks like that
Number:Length DistanceSystem "System Distance" {channel="gpstracker:tracker:3983d18f:distanceSystem"}
and the rule is like that
rule "BarakInHouse2"
when
Item DistanceSystem changed
then
// specify your home location
if ( DistanceSystem < 100) {
logInfo("Barak Home", "Barak is in the House.")
} else {
logInfo("Barak Home", "Barak is Out.")
}
end
im having an error in that line: ( DistanceSystem < 100)
what is the best way to implement that?
thanks