---
title: "Area dimmer"
description: "A card feature for the area card and the tile card of a light group. One slider that dims the lights that are on, and leaves the lights that are off alone."
canonical_url: "https://spook.boo/area-dimmer"
---
# Area dimmer

> A card feature for the area card and the tile card of a light group. One slider that dims the lights that are on, and leaves the lights that are off alone.

Area dimmer is a card feature for two cards in Home Assistant: the area card, and the tile card of a light. One slider, and it dims only the lights that are on. The ones that are off stay off.

Home Assistant's own brightness slider on a group of lights works differently: it sets every light in the group, and switches on the ones that were off along the way. The reading lamp you switched off on purpose comes on with the rest of the room.

- **On an area card**, it dims the lights of that area.
- **On the tile of a light group**, it dims the lights in that group.
- **On the tile of a single light**, it is a brightness slider that never switches the light on.

It needs [Spook on your dashboards](https://spook.boo/dashboards) switched on.

## Adding it to a card

1. Open the dashboard, and edit it.
2. Edit an area card, or the tile card of a light, or add one.
3. Open **Features**, select **Add feature**, and select **Area dimmer (Spook)**.
4. Select **Save**.

There is nothing to set. It is offered on an area that has a light that can dim, and on a light that can dim.

## What it shows

On an area card, the slider stands where the lights that are on stand: their average. Two lamps, one at 80% and one at 30%, and it shows 55%. That is how Home Assistant itself reads the brightness of a light group.

On a tile, it shows the brightness Home Assistant gives that light or group, the same number as on Home Assistant's own brightness slider.

Lights that cannot dim, the ones that only go on and off, are left out. They do not count in the average, and the slider does not touch them.

With no light on that can dim, the slider is empty and greyed out. There is nothing to dim, and it does not switch lights on.

## Dragging it

Nothing happens while you drag. The lights change once you let go, the way Home Assistant's own sliders work. A room full of Zigbee lights would not thank you for a command at every pixel.

Every light that was on goes to the level you let go at, the bright ones and the dim ones alike.

It does this with Spook's [Set brightness](https://spook.boo/light#set-brightness) action, so it works the same as that action in an automation or a script.

## Which lights are in an area

The same ones as on the light button of the area card itself: the lights in that area, or on a device in that area. Hidden lights are left out, and so are the ones the area card leaves out with `exclude_entities`. Those stay out, also when a light group in the area holds them.

A light group in the area counts by its members. A light that is both in the area and in a group in that area counts once.

## In YAML

```yaml
type: area
area: living_room
features:
  - type: custom:spook-area-dimmer-feature
```

```yaml
type: tile
entity: light.living_room_lights
features:
  - type: custom:spook-area-dimmer-feature
```


## Sitemap

See the full [sitemap](https://spook.boo/sitemap.md) for all pages.
