From the figure you shared, assuming that the entity_id of next alarm time is sensor.next_alarm_time_2 you can build an automation with the following as template to get your requirement.
Hi…I need some more info to create the full automation. What is the entity_id of tuya entity that you use to turn n heating?
If you can set the action part of automation your self, you can use the following as the trigger. Rest of the actions you have to build or I have to get full info.
Hello, I am very sorry but I have problem to enter the template trigger in frontend. Following text seems to be accepted, but it does not fire the event e.g. it does not evaluate as true. What can I do? And what means the minus symbol in front of platform statement? If I add it there I cannot save automation because of error.
Hello. I added “Garmin” integration and alarm was one of many sensors that were added from Garmin API.
Then I added automation for 1hr before alarm based in following trigger (you have to choose Template trigger): {{ as_timestamp(states.sensor.date_time_iso.state) == as_timestamp(as_timestamp(states.sensor.next_alarm_time_2.state) | timestamp_local)- 3600 }}
I tried to use this automation but it’s not working.
It seems that the alarm does not trigger anything…
anybody able to help? Maybe newer versions of HA or Date_time are working differently?
EDIT: you don’t really this anymore. You can create the same automation simply using the standard automation steps (not even need to edit YAML anymore!)