Scenery: Better light profiles, favorite colors, and scenes

Scenery helps you configure light profiles, favorite colors, and scenes for all of your lights in Home Assistant.

  • Define light profiles in YAML to preset the color and brightness of each light and set the default turn-on behavior with more color formats than light_profiles.csv supports.
  • Define favorite colors for your lights all in one place in YAML instead of configuring each light’s favorite colors one at a time in the more-info dialog.
  • Make profile select entities to apply light profiles to lights and keep track of which light profiles are active.
  • Define scenes to apply predefined states to lights and other entities and organize them into groups.
  • Make scene select entities to activate scenes and keep track of which scenes are active.
  • Use select actions to cycle through light profiles and scenes at the push of a button.

Scenery has greatly improved my lighting dashboard by replacing a lot of automation scripts with just a bit of configuration all in one place. I hope you find it useful too! :blue_heart:


3 Likes

I’ve just added some images to the project and more information to show more of what’s possible and help you get started. Cheers!

What great timing. I’ve been re-working my lighting using scenes and template-based helpers to detect the current scene, but this integration is far superior.

I particularly appreciate the ability to cycle through profiles using select.select_next; this is something I was struggling to automate cleanly with scenes. However, I’d prefer if cycling profiles could skip the “off” state. Would it be possible to provide an option to exclude “off” as a selectable profile? Without this, I’d have to implement conditional logic before each select.select_next call to jump to the first option after the last profile. I suppose the issue would be that, wihtout “off”, the selector would remain a profile when the light is off.

Sure! I have added a feature to omit the off option from profile select entities in v0.2.0. When the light is turned off the select entity’s state is set to None. It will appear in the UI as if no profile it selected which is indeed the case.

Release notes: Release v0.2.0 · j9brown/scenery · GitHub

1 Like

@kylehase Next I’m planning to add a feature for defining scenes involving multiple lights (and perhaps other entities) in various states. The scenes can then be monitored and controlled with scene select entities similarly to how the profile select entities work for individual lights.

I’d love to hear your ideas for how to improve scenes in Home Assistant.

@jeffbrown Thanks for reaching out.

One thing that’s always bothered me about Home Assistant’s “favorite colors” buttons is that it only stored/recalled colors, not brightness.

My initial assumption when seeing that Scenery could set “favorite colors” was that it also stored brightness. Of course that’s not the case. I could see it being useful to have such a feature, in which case the “favorite colors” section essentially becomes a profile picker.

Other than that, and your upcoming feature to set multiple lights, I can’t think of anything else at the moment.

1 Like

@kylehase Alas, the more-info dialog doesn’t support favorite colors with brightness information.

So here’s a picker I made for my dashboard with a Tile card, brightness slider feature, and a light profile drop down feature using the Custom Features for Home Assistant Cards dashboard extension. I used decluttering card to reduce duplication.

I think ideally it would be nice to make a custom feature for Tile cards specifically for light profiles, scenes, and/or favorite colors.

The YAML is a bit long to paste here. It’s similar to some of the examples for the custom card features.

New in v0.3.0:

Now you can create scene select entities. A scene select entity defines a set of mutually exclusive scenes that apply states to one or more entities, such as lights and switches. You can present a scene select entity in your dashboard as a drop down menu and use them in many other ways. They’re great for coordinating a group of devices that are all in the same room.

Selecting an option from a scene select entity activates the corresponding scene. Also, when the entities referenced by the scene select entity change state, the current selected option updates to the closest matching scene if there is one. So they’re stateful unlike the built-in Home Assistant scenes.

Refer to the documentation for details.

New in v0.4.0:

  • Scenes are organized into scene groups.
  • Scenery creates a scene entity for each scene. You can activate them using the scene.turn_on action or make buttons in the dashboard to toggle them.
  • You can set the icon for scene entities, scene select entities, and profile select entities.

Breaking changes:

  • The scene_select attribute has been replaced by the scene_groups attribute. To update your configuration, rename scene_select to scene_groups and add a scene_select attribute within each group for which you would like to create a scene select entity.

Refer to the documentation for details.