Light Popup Sheet Card
A light tile for Home Assistant dashboards. Tap it and a full-screen sheet opens with a big vertical brightness slider (or an on/off switch for lights that cannot dim), optional scene or service buttons and a settings button. No dependencies, one JavaScript file, no browser_mod needed.

Free, MIT licensed. Version 1.0.0. Download light-popup-sheet-card.js (17 KB)
- Download light-popup-sheet-card.js.
- Copy it into
/config/www/dashpack/on your Home Assistant (create the folder if needed; restart once if/config/wwwdid not exist). - Turn on Advanced mode in your profile. Then Settings > Dashboards > three dots > Resources > Add resource: URL
/local/dashpack/light-popup-sheet-card.js, type JavaScript module. - Hard-refresh the browser (Ctrl+Shift+R / Cmd+Shift+R). The card is now available as
custom:light-popup-sheet-card.
Use
type: custom:light-popup-sheet-card
entity: light.living_room
actions:
- name: Relax
icon: mdi:sofa
color: "#FDCA64"
scene: scene.relax
- name: Movie
icon: mdi:movie
service: light.turn_on
service_data:
entity_id: light.living_room
brightness_pct: 10
Tap the tile to open the sheet. Close it with the X button, the Escape key, or a tap on the dark background. Drag on the slider (touch or mouse) and the light is changed when you let go, so dragging does not flood the light. The slider also works from the keyboard (arrow keys, Page Up/Down, Home turns the light off).
Options
| Option | Default | Description |
|---|---|---|
entity | required | A light.* entity. |
mode | tile | tile shows a tile that opens the sheet. inline draws the sheet itself in the card (use this inside another popup or on a wall panel). |
name, icon | entity's | Override name or icon. |
display_type | auto | auto picks a slider for dimmable lights and a switch for on/off lights. Or force slider / switch. |
hide_icon, hide_state | false | Hide the icon or the state text above the control. |
settings | false | Adds a Settings button that opens the light's more-info dialog. |
actions | none | Up to 18 buttons. Each has name, icon, color and either scene: scene.x (calls scene.turn_on) or service: domain.service with service_data. |
actions_in_row | 3 | Buttons per row. |
action_size | 50px | Diameter of the round buttons. |
brightness_width, brightness_height | 150px, 400px | Slider size (it shrinks on small screens). |
switch_width, switch_height | 150px, 400px | Switch size. |
border_radius | 12px | Corner radius of slider and switch. |
slider_color, slider_track_color | #ffffff, #555555 | Slider fill and track colors. |
slider_colored_by_light | false | Color the slider fill with the light's current color. |
The camelCase spellings (displayType, hideIcon, actionsInARow, brightnessHeight, sliderColoredByLight and so on) are accepted as aliases. Size and color values are checked, and anything that is not a plain CSS length or color falls back to the default.
The sheet is attached to the page body, so it covers the whole screen whatever card it was opened from.
Example dashboard
A small sample view you can paste into the raw configuration editor (replace the placeholder entity ids with your own):
title: Lights
path: lights
type: sections
max_columns: 2
sections:
- type: grid
cards:
- type: custom:light-popup-sheet-card
entity: light.living_room
slider_colored_by_light: true
settings: true
actions:
- name: Relax
icon: mdi:sofa
scene: scene.relax
- name: Bright
icon: mdi:white-balance-sunny
scene: scene.bright
- type: custom:light-popup-sheet-card
entity: light.kitchen
- type: custom:light-popup-sheet-card
entity: light.hallway
display_type: switch
- type: grid
columns: 2
square: false
cards:
- type: tile
entity: climate.thermostat
- type: tile
entity: cover.garage_door
- type: tile
entity: lock.front_door
- type: tile
entity: media_player.tv
8 more ready-made views (living room, bedroom, kitchen, cameras, security, energy, mobile) are in the Home Dashboard Layout Pack ($9): https://dashpack.strahmdigital.com/
Coming from custom:light-popup-card
That card (DBuit/light-popup-card) has not been updated since 2025-04, and its open issues include "Popup cards broken by HA 2023.4 changes" (#98), a popup that does not close on backdrop tap (#97), a switch that will not toggle on desktop (#95), color lights that show a switch instead of a slider (#91, #68) and an Android app failure (#73). It was meant to run inside a browser_mod or popup-card popup. This card is an independent rewrite that keeps the main option names and brings its own popup, so browser_mod is optional:
- Change
type: custom:light-popup-cardtotype: custom:light-popup-sheet-card. - If the card sat inside a browser_mod popup, add
mode: inline. Otherwise leave it as a tile and drop the browser_mod popup. - Options:
| Old option | Here |
|---|---|
entity, icon | same |
hideIcon, hideState, displayType, actionsInARow, brightnessWidth/Height, switchWidth/Height, borderRadius, sliderColor, sliderTrackColor, sliderColoredByLight, actionSize | same (snake_case or the old camelCase) |
settings | same; settingsPosition is not supported (button is at the bottom) |
actions with service + service_data and name, icon, color | same; scene: scene.x is a shortcut |
actions with fire-dom-event / browser_mod | not supported |
fullscreen, onStates, offStates, brightnessTransition*, sliderThumbColor, switchColor, switchTrackColor | not supported |
- Check the look: the design is similar in spirit but not pixel-identical, and the old option names come from its README, not from running it.
This project is not affiliated with the author of that card.
Testing
19 jsdom tests run against a mocked hass (npm test): config validation, opening and closing (button, Escape, backdrop), drag committing only on release, keyboard control, switch mode, actions, escaping, unsafe CSS values and cleanup. A headless Chromium screenshot of the mocked page was checked by eye. Not tested: a real Home Assistant instance, real touch screens, real lights, or use inside a browser_mod popup (mode: inline); the sheet's stacking inside a dashboard was only seen on the mocked page.