Hi all
New to HA and Node Red but trying to learn from all the great content out there including this site…thanks to all those that have helped with without even knowing it!!
Ok so what I am trying to do is to put together an automation based on my device tracker. Have read many others doing similar or exactly as this but it dont seem want to work for me.
I want to detect my presence, if home the set Darren is home boolean to true. If my device trackers reports not_home then to check what the previous state was. If it was home then to set my Darren is not home boolean to true. However if it detects my previous state was anything other then home then to ignore. Why am i doing this, well i have many zones created and i wont want automations triggered further down the line if i am driving through zones.
It works in part…as you can see below
the problem I have is that the trigger state node seems to kick off by itself instead of only being triggered by a not_home payload from the first node. check the timestamps… I was home for the duration so why does the trigger node state kick off?
Here is my trigger state node details
and finally proof that my device was home all the time
I have spent days looking at whats wrong here but cant figure it out. I also tried ditching the trigger state node and put a switch node but that didnt trigger anything
Would appreciate ANY help at all, its likely to be something really simple but cant see the woods for the trees now.
thank you
Darren.