I am using the default HA theme and can change the mode between auto, light and dark and that works
I want to do this with an automation but here it doesnt switch.
alias: Umschalten Theme light/dark
description: ''
triggers:
- trigger: state
entity_id: input_boolean.light_dark
conditions: []
actions:
- if:
- condition: switch.is_off
target:
entity_id: input_boolean.light_dark
options:
behavior: any
for: '00:00:00'
then:
- action: frontend.set_theme
metadata: {}
data:
name: default
mode: dark
else:
- action: frontend.set_theme
metadata: {}
data:
name: default
mode: light
mode: single
