This row:
{{ now().strftime("%H:%M") == states.sensor.alarm_1_time.state }}
trigger the automation when the current time is equal to the one set in the states.sensor.alarm_1_time.state
How can I tell this automation to trigger with 10 minutes in advance over the states.sensor.alarm_1_time.state?
it does now work
Invalid config for [automation]: invalid template (TemplateSyntaxError: unexpected ‘}’, expected ‘)’) for dictionary value @ data[‘condition’][2][‘value_template’]. Got None
not a valid value for dictionary value @ data[‘condition’][2][‘condition’]. Got None
required key not provided @ data[‘condition’][2][‘entity_id’]. Got None. (See /config/configuration.yaml, line 144). Please check the docs at https://home-assistant.io/components/automation/
weird. You could just set a sensor that does the time calculation and compare it to that for your automation.
I do something similar in the mornings for turning lights on before sunrise. Its similar to this in that it takes sunrise time and subtracts a set amount of time from a slider and then the automation fires when it hits that time.