Trying to figure this out for hours but i can’t seem to find the solution. I want to change my theme 30min. before sunset and 30min after sunrise, but for some reason the automation only triggers the “One Light Theme” part and never the “One Dark Theme” part. Is there anyone that see what i’m doing wrong or missing. Thx in advance.
alias: Sun State Theme Switch
description: ''
trigger:
- platform: sun
event: sunrise
offset: '00:30:00'
- platform: sun
event: sunset
offset: '-00:30:00'
- platform: homeassistant
event: start
- platform: event
event_type: automation_reloaded
condition: []
action:
- choose:
- conditions:
- condition: sun
after: sunrise
after_offset: '0:30:00'
sequence:
- service: frontend.set_theme
data:
name: One Light Theme
- conditions:
- condition: sun
before: sunset
before_offset: '0:30:00'
sequence:
- service: frontend.set_theme
data:
name: One Dark Theme
default: []
mode: restart