Creating a scene by snapshotting entities #28939
It's now possible to create a scene by snapshooting entities. This would be helpful to create a scene on the fly without knowing the current state. Please let me know if this feature is not needed/wanted.
Example use case:
Since we don't know the current state before changing things, we can't create a scene from it at the moment. This PR makes it possible.
Example service data:
scene_id: all_lights entities: light.bed_light: on snapshot_entities: - light.ceiling - light.kitchen
If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
If the code does not interact with devices:
* Initial commit * Add tests * service.yaml * typo * snapshooted -> snapshot * snapshot_entities instead of snapshot * Edit validator * Fix tests * Remove keys() * Improve coverage * Activate scenes * Use pytest.raise * snapshot -> snapshotted