Set active theme
themes_set_active_themeSwitch the Home Assistant Lovelace frontend theme by calling frontend.set_theme with a registered theme name and optional light or dark mode.
Instructions
Set the active Lovelace frontend theme.
Calls service frontend.set_theme with name, and mode when it is
'light' or 'dark'; any other mode value is silently omitted from the
call.
Use when: switching which theme the frontend displays.
Returns: the raw result of the frontend.set_theme service call.
Limits: mode values other than 'light'/'dark' are dropped rather than
rejected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Optional 'light' or 'dark' to also pin the color mode; any other value is ignored; omit to leave the mode as-is. | |
| name | No | Registered theme name to activate, e.g. 'default' or a custom theme name; defaults to 'default'. | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||