Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Add scene.create service #27023
Home Assistant release with the issue: 0.99
We should be able to create scenes using a service. This will allow people to store state of entities as part of a script, do something, and then restore it using the normal service.
By creating it as primitives, people can use it in a wide variety of use cases.
Service should be added to
For first version, we should not focus on persisting it to disk. It will be lost after a restart or config reload. (persisting can be step 2).
Example service data (just like the scene config):
This would create the scene
The scene config uses
Apart from being subjectively better (IMHO), it would also allow for a very straighforward (dumb) mapping from the config to the service call, so that we can have just one implementation in the end.
Sounds good. But it means that it shouldn't use
Is this name the same thing as what is sometimes called the "friendly name"? It would be helpful to make sure things are consistent in terminology and attribute names etc.
By the way, the entity ID is missing from the yaml coniguration for scenes, since there is no way to provide the entity id (at least not documented).