I am looking for a trigger where I can start my automation if the value of an sensor is above value x and changes to a specific value y but I can’t find anything for this. Does anyone have a suggestion for me, please?
This doesn’t work, but I’m looking for this:
platform: state
entity_id:
sensor.tracker_tim
from: “> 5”
to: “0”
Background: I have an Tracker at my keychain which pings every 60 seconds. I have an helper which counts the minutes after the last signal. When leaving it counts high and arriving home the next signal reset it to “0” minutes.
I have a half working automation which triggers the come back routine when arriving home but when I leave the house with my wife and leave the keychain at home the automation triggers falsely. And I can’t specify a fix from value cause it depends on my leave.
I assume there’s a smart and small solution, so I thank you for every tip.
Ah, perfect.
At the moment I’m still overwhelmed for all the options and the small differences which makes it a smart und simple solution and a big and complicated thing with additional helpers etc.
Thank you very much and the hint with the formatting of code. On my mobile device I didn’t see the right button, only the Blockquote was obvious and I thought it’s better than no format.