You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+6-1
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,8 @@ Here's how it works:
19
19
3. If you set `save_file` to false, go to the Home Assistant logs to copy the generated YAML for the scene.
20
20
4. If you set `save_file` to true, go to your configuration folder and open `generated_scene.yaml`.
21
21
22
+
This script allows you to specify either domains or entities directly. If both domains and entities are defined, the script will prioritize entities over domains.
23
+
22
24
### EXAMPLE SERVICE DATA
23
25
24
26

@@ -28,6 +30,9 @@ domains:
28
30
- light
29
31
- switch
30
32
- fan
33
+
entities:
34
+
- light.living_room
35
+
- switch.kitchen
31
36
attributes:
32
37
- brightness
33
38
- color_temp
@@ -36,7 +41,7 @@ attributes:
36
41
save_file: true
37
42
```
38
43
39
-
In this example, we're generating a scene for all light, switch, and fan entities, and including brightness, color temperature, and color attributes.
44
+
In this example, we're generating a scene for all light, switch, and fan entities defined in the domains, as well as specifically for `light.living_room` and `switch.kitchen` entities. It includes brightness, color temperature, and color attributes. If both domains and entities are defined, the script will process only the entities and ignore the domains.
0 commit comments