Hello
I have a doubt with this. It is working perfect.
Turn on at the configured time and turn off at the configured time.
My question is … What happens if at the moment of activating I do not have internet?
For what I believe will not do more the query because it asks if it is equal to the configured time.
They come up with something to add to this since I do not have much knowledge.
I guess I can ask that if it’s> = current time and it’s off there I activated the switch
Thank you very much and sorry for my English
# Accion para Timer 1
- alias: 'Accion ON Luz Acuario'
trigger:
platform: template
value_template: '{{ states.sensor.time.state == states.sensor.timer_1_tiempo_on_long.state }}'
action:
- service: switch.turn_on
entity_id: switch.habitacion_2
- alias: 'Accion OFF Luz Acuario'
trigger:
platform: template
value_template: '{{ states.sensor.time.state == states.sensor.timer_1_tiempo_off_long.state }}'
action:
- service: switch.turn_off
entity_id: switch.habitacion_2