Home Dashboard Layout PackGuidesFree cards

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.

Light Popup Sheet Card screenshot

Free, MIT licensed. Version 1.0.0. Download light-popup-sheet-card.js (17 KB)

Manual install (about 2 minutes, no HACS)
  1. Download light-popup-sheet-card.js.
  2. Copy it into /config/www/dashpack/ on your Home Assistant (create the folder if needed; restart once if /config/www did not exist).
  3. 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.
  4. 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

OptionDefaultDescription
entityrequiredA light.* entity.
modetiletile 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, iconentity'sOverride name or icon.
display_typeautoauto picks a slider for dimmable lights and a switch for on/off lights. Or force slider / switch.
hide_icon, hide_statefalseHide the icon or the state text above the control.
settingsfalseAdds a Settings button that opens the light's more-info dialog.
actionsnoneUp 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_row3Buttons per row.
action_size50pxDiameter of the round buttons.
brightness_width, brightness_height150px, 400pxSlider size (it shrinks on small screens).
switch_width, switch_height150px, 400pxSwitch size.
border_radius12pxCorner radius of slider and switch.
slider_color, slider_track_color#ffffff, #555555Slider fill and track colors.
slider_colored_by_lightfalseColor 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:

  1. Change type: custom:light-popup-card to type: custom:light-popup-sheet-card.
  2. If the card sat inside a browser_mod popup, add mode: inline. Otherwise leave it as a tile and drop the browser_mod popup.
  3. Options:
Old optionHere
entity, iconsame
hideIcon, hideState, displayType, actionsInARow, brightnessWidth/Height, switchWidth/Height, borderRadius, sliderColor, sliderTrackColor, sliderColoredByLight, actionSizesame (snake_case or the old camelCase)
settingssame; settingsPosition is not supported (button is at the bottom)
actions with service + service_data and name, icon, colorsame; scene: scene.x is a shortcut
actions with fire-dom-event / browser_modnot supported
fullscreen, onStates, offStates, brightnessTransition*, sliderThumbColor, switchColor, switchTrackColornot supported
  1. 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.

All free cards · Dashboard guides