--- title: "Scenes editor" description: "Instructions on how to use the scenes editor." --- From the UI choose **Settings** which is located in the sidebar, then click on **Automations & Scenes** to go to the scene editor. Press the **Add Scene** button in the lower right corner to get started. Choose a meaningful name for your scene. ![Scene editor](/images/docs/scenes/editor.png) Select all the {% term devices %} (or {% term entities %} when advanced mode is enabled on your user profile) you want to include in your scene. The state of your devices will be saved, so it can be restored when you are finished creating your scene. Set the state of the devices to how you want them to be in your scene, this can be done by clicking on it and edit the state from the popup, or any other method that changes the state. On the moment you save the scene, all the states of your devices are stored in the scene. When you leave the editor the states of the devices are restored to the state from before you started editing. The menu on the top-right has options to **Duplicate scene** and **Delete scene**. A scene can be called in {% term automation %} action and {% term scripts %} using a turn on scene {% term action %}: ```yaml action: scene.turn_on target: entity_id: scene.my_unique_id ``` ## Updating your configuration to use the editor First, check that you have activated the configuration editor. ```yaml # Activate the configuration editor config: ``` The scene editor reads and writes to the file `scenes.yaml` in the root of your [configuration](/docs/configuration/) folder. Currently, both the name of this file and its location are fixed. Make sure that you have set up the scene integration to read from it: ```yaml # Configuration.yaml example scene: !include scenes.yaml ``` If you still want to use your old scene section, add a label to the old entry: ```yaml scene old: - name: ... ``` You can use the `scene:` and `scene old:` sections at the same time: - `scene old:` to keep your manual designed scenes - `scene:` to save the scene created by the online editor ```yaml scene: !include scenes.yaml scene old: !include_dir_merge_list scenes ``` ## Migrating your scenes to `scenes.yaml` If you want to migrate your old scenes to use the editor, you'll have to copy them to `scenes.yaml`. Make sure that `scenes.yaml` remains a list! For each scene that you copy over, you'll have to add an `id`. This can be any string as long as it's unique. For example: ```yaml # Example scenes.yaml entry - id: my_unique_id # <-- Required for editor to work. name: Romantic entities: light.tv_back_light: on light.ceiling: state: on xy_color: [0.33, 0.66] brightness: 200 ``` {% note %} Any comments in the {% term YAML %} file will be lost and templates will be reformatted when you update a scene via the editor. {% endnote %}