WTH can't we do "Save all current lights to a scene"? (e.g. save domains to scene)

Say I’ve manually set each bulb in my house to a different color to make a “Rainbow” effect.

When I go to save what I’ve done to a “Rainbow” scene, I have to explicitly add each bulb. With a dozen or so lights, this gets tedious.

I would love to be able to either:

  1. Save the state of an entire domain (ideally with an exclusion list)
  2. Send a group as an entity to scene.save and have each individual bulb state saved to the YAML

This would be awesome. I swear I heard or read about this capability recently, but I sure as hell can’t find it now.

Has anyone figured out how to do this? I would like todo the same thing.

This is possible using scene.create https://www.home-assistant.io/integrations/scene/#creating-scenes-on-the-fly

I use it to save the state of a light before turning on a flickering candle mode.

It doesn’t save to yaml though, sadly.