I have a working automation which turns on 5 light entities when triggered by a motion sensor, and then those entities are turned off after a few minutes. I’m trying to modify the automation so that instead of turning off all the lights, it returns them to their prior states. I’m trying to do that by creating a scene at the beginning of the actions and using the scene as the final action.
Here is the YAML version of the Scene Create service that doesn’t work:
service: scene.create data: scene_id: garage_motion_light_scene snapshot_entities: >- -light.garage_spotlights -light.overhead_lights -light.game_light -light.breakfast_room_lights -light.living_room_2
This follows the pattern I find in the documentation (Creating scenes on the fly) and elsewhere on the web. But I keep getting the following error message: Entity ID (of the five lights) is an invalid entity ID for dictionary value @ data[‘snapshot_entities’]
What is the proper entity ID to use in the Scene.create service? Or is this a wrong approach?