An automation can be started using a trigger platform template as:
trigger;
- platform: template
value_template: ‘{{states(“sensor.time”) == ‘‘15:47’’}}’
Is it possible to use a variable in place of ''15:47"
Many thanks for your help.
An automation can be started using a trigger platform template as:
trigger;
Is it possible to use a variable in place of ''15:47"
Many thanks for your help.
Welcome to the forums!
You could use a datetime helper.
Thank you for your idea, But what I would like to do is trigger the automation x minutes after a fixed time like sunset with an offset like - 01:00:00 (x beeing the value of an input). I want to implement this in a blueprint. I can know how to compute the value of the trigger time but I don’t find the correct syntax to use the value in at trigger template.