poudenes
(Poudenes)
22
Its working with on a different way. This automation is working. Seems the platform: sun event: sunset/sunrise is not working at all.
Below is working:
- id: "7e98e973-70c1-4809-8fec-56dbf82b492b"
alias: "System - Automatic Theme Change"
mode: single
trigger:
- platform: state
entity_id: sun.sun
to: "above_horizon"
- platform: state
entity_id: sun.sun
to: "below_horizon"
condition: []
action:
- service: frontend.set_theme
data_template:
name: "{{ 'peterlightmode' if is_state('sun.sun', 'above_horizon') else 'peterdarkmode' }}"
tom_l
23
Triggers are still working for me:
- id: 77c7bd23-41c5-492c-959c-a31f09527e24
alias: 'Set Dark Theme At Sunset'
trigger:
platform: sun
event: sunset
action:
- service: input_select.select_option
data:
entity_id: input_select.select_theme
option: Night
- id: dca6a184-dd5b-4b2f-954d-8edf117c8dd0
alias: 'Set Light Theme At Sunrise'
trigger:
platform: sun
event: sunrise
action:
- service: input_select.select_option
data:
entity_id: input_select.select_theme
option: Day
poudenes
(Poudenes)
24
With other automations it’s working also. This is solved. Finally:)
Just spotted this in the latest release notes