I have an automation which turns on and off my outside lights:
alias: 'Control Outside Lights '
description: Control outside Lights - morning and evening
trigger:
- platform: sun
event: sunrise
offset: '-00:30:00'
- platform: sun
event: sunset
offset: '-00:15:00'
- platform: time
at: input_datetime.outside_lights_off_morning
- platform: time
at: input_datetime.outside_light_off_evening
condition: []
action:
- choose:
- conditions:
- condition: or
conditions:
- condition: sun
after: sunrise
after_offset: '-00:30:00'
- condition: sun
after: sunset
after_offset: '-00:15:00'
sequence:
- service: switch.turn_on
target:
entity_id:
- switch.outside_back_patio_current_value_3
- switch.outside_front_entry_light_current_value_2
- switch.ge_quick_fit_smart_in_wall_paddle_switch_current_value_9
- conditions:
- condition: or
conditions:
- condition: time
after: input_datetime.outside_lights_off_morning
- condition: time
after: input_datetime.irrigation_valve_off_evening
sequence:
- service: switch.turn_off
target:
entity_id:
- switch.outside_front_entry_light_current_value_2
- switch.outside_back_patio_current_value_3
- switch.ge_quick_fit_smart_in_wall_paddle_switch_current_value_9
default:
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 500
mode: single
I have read this from back in 2016.
Is it still the case that you cannot use templates for an offset? I have tried input_datetime and input_text and both failed.