Area dimmer
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 switched on.
Adding it to a card
- Open the dashboard, and edit it.
- Edit an area card, or the tile card of a light, or add one.
- Open Features, select Add feature, and select Area dimmer (Spook).
- 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 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
type: area
area: living_room
features:
- type: custom:spook-area-dimmer-feature
type: tile
entity: light.living_room_lights
features:
- type: custom:spook-area-dimmer-feature
Action buttons
A card feature for any tile, area, thermostat or humidifier card. A row of buttons, each with an icon, a label and any action, and an "are you sure?" first when you want one.
Repairs card and badge
A card with what is wrong in your home, worst first, and a badge with how many repairs are open. Both gone when there is nothing to repair.
