Set active theme
themes_set_active_themeSwitch the Lovelace frontend to a registered theme, optionally pinning light or dark mode. Use it to control which theme the Home Assistant interface displays.
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: {"service": "frontend.set_theme", "changed_states": [...]} —
the states HA reports as changed by the call.
Limits: mode values other than 'light'/'dark' are dropped rather than
rejected.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "themes_set_active_theme"
}
}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 | |||