Finally have my HA up and running and am getting going with automations… and hit a snag-
I have a sensor that has timestamp that changes once a week as its state. I can read it and use it’s state in a notification - {{ states.sensor.incoming_time.state } - but how would I use this as a trigger in an automation?
You’ll need to be a bit more explicit about when you want the automation to trigger. When sensor.incoming_time changes? When it’s value is compared to something else? …?
The sensor is updated once a week on Saturday from an external api in a python script. I want to trigger the automation one hour before the time that appears in the sensor, say on Tues… If that makes sense.
So, in theory, what I think I’m looking to create is
trigger:
platform: template
data: ((when current time is equal to the sensor’s time with offset of - 1:00:00))