Hi everyone,
I’m struggling to make an automation where I turn on some lights after sunset, with an offset of some minutes. These would be selected quickly from an input_number, instead of going every time to change the automation. Link here the current automation and what I would do:
automation:
#Luci ON tramonto
- alias: Luci ON al tramonto
trigger:
- platform: sun
event: sunset
offset: "00:15:00"
condition:
- condition: state
entity_id: light.luce_led_rampa_garage
state: "off"
action:
- service: light.turn_on
data:
entity_id: light.luce_led_rampa_garage
automation:
#Luci ON tramonto
- alias: Luci ON al tramonto
trigger:
- platform: sun
event: sunset
offset: "input_number.turn_on_led_lights_garage_delay"
condition:
- condition: state
entity_id: light.luce_led_rampa_garage
state: "off"
action:
- service: light.turn_on
data:
entity_id: light.luce_led_rampa_garage
Is that possible?
Thanks