---
title: "state-switch"
description: "state-switch is a dashboard card for Home Assistant. It has 479 GitHub stars and was last updated July 31, 2025."
canonical: "https://vulpo.app/integrations/cards/thomasloven-lovelace-state-switch"
url: "https://vulpo.app/integrations/cards/thomasloven-lovelace-state-switch.md"
last-updated: "2026-10-22"
version: "1.4"
---

# state-switch

> state-switch is a dashboard card for Home Assistant. It has 479 GitHub stars and was last updated July 31, 2025.

state-switch is a dashboard card that swaps one Lovelace card for another depending on a matched state. The choice can follow an entity state, the URL hash, the logged-in user's display name, or whether the user is an administrator. It can also match on the device and browser combination, a CSS media query, or the result of a Jinja template. A default card is shown when no state matches. Changes between cards can be animated with slide, swap or flip transitions, and the duration is set in milliseconds. The card file is added as a module, and it needs the Marketplace, or HACS on 2026.10 and older.

Automatic summary of the README of thomasloven/lovelace-state-switch. Something wrong, or are you the maintainer and want your own text here? [Get in touch](https://vulpo.app/contact)

[Open in My Home Assistant](https://my.home-assistant.io/redirect/hacs_repository/?owner=thomasloven&repository=lovelace-state-switch&category=plugin)

On Home Assistant 2026.11 or newer? [Open it in the Marketplace](https://my.home-assistant.io/redirect/marketplace_repository/?owner=thomasloven&repository=lovelace-state-switch&category=plugin)

## Supports

- **From the Marketplace**: Installed through the Marketplace, formerly HACS.

## Setting it up

Install it from the Marketplace, then add a card of this type to a dashboard.

## From the README

> Dynamically replace lovelace cards depending on occasion.
>
> Note in the animation above that the two browser windows have two different users logged in, which changes the rightmost card.

From the README of [thomasloven/lovelace-state-switch](https://github.com/thomasloven/lovelace-state-switch#readme), [MIT License](https://spdx.org/licenses/MIT.html). Shortened.

## At a glance

- Kind: Dashboard card
- Number: 479 GitHub stars
- Connection: Connection not stated
- Upkeep: No update in 6 to 18 months
- Needs: Needs the Marketplace (HACS on 2026.10 and older)
- Latest version: 1.9.6, last updated July 31, 2025
- Source: <https://github.com/thomasloven/lovelace-state-switch>
- Issues: <https://github.com/thomasloven/lovelace-state-switch/issues>
- Screenshot: https://vulpo.app/integrations-img/070113bb7a9c4014.webp (from thomasloven/lovelace-state-switch's README)
- Screenshot: https://vulpo.app/integrations-img/66ed564c6da7db5e.webp (from thomasloven/lovelace-state-switch's README)

Independent directory, made by the developer of Vulpo. Not affiliated with Home Assistant or the Open Home Foundation. [About these numbers](https://vulpo.app/integrations/about)

Last updated 2026-10-22. Source: https://vulpo.app/integrations/cards/thomasloven-lovelace-state-switch

---

- HTML version of this page: https://vulpo.app/integrations/cards/thomasloven-lovelace-state-switch
- Site index for agents: https://vulpo.app/llms.txt
- Everything in one document: https://vulpo.app/llms-full.txt
- All pages: https://vulpo.app/sitemap.xml
