Please help, why does this not work??
- alias: 'lamp tuinhuis automatisch aan uit
trigger:
- platform: sun
event: sunset
offset: '00:30:00'
- platform: sun
event: sunrise
offset: '-05:00:00'
action:
- service: "switch.turn_{{'on' if trigger.event == 'sunset' else 'off'}}"
target:
entity_id:
- switch.voorkant_tuinhuis