Hi everyone I’m having trouble getting my location rule working it’s sent from IFTTT on mobile phone, Openhab does receive the updates but my rule is not right so nothing happens.
Your item is a String so it’s states are going to be strings. String are defined in ""
Aarons_Home is a Switch and therefore accepts the commands ON and OFF without ""
rule "Aaron Presence2"
when
Item Aaron_GEO changed
then
if(Aaron_GEO.state == "Aaron entered area home") {
Aarons_Home.sendCommand (ON)
logInfo("Rule", "Aaron Home")
}
if( Aaron_GEO.state == "Aaron exited area home") {
Aarons_Home.sendCommand(OFF)
logInfo("Rule", "Aaron Left")
}
end
Thanks for that i will try that again i did try that once before but had weired results where it was only receiving part of the update , yes Aarons_Home is a switch
I used the same as you but my rule not working
seems that the IFTTT do its thing but the rule not executing what its should do
help please
logs:
2019-01-25 09:36:24.360 [ome.event.ItemCommandEvent] - Item 'Presence_IFTTT_Barak' received command Barak exited Home
2019-01-25 09:36:24.373 [vent.ItemStateChangedEvent] - Presence_IFTTT_Barak changed from OFF to Barak exited Home