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
* Update scenes.md
Details on how to create a scene with a transition were not immediately clear to me.
* Update scenes.md
Co-authored-by: Koen Kanters <[email protected]>
Copy file name to clipboardExpand all lines: docs/guide/usage/scenes.md
+26Lines changed: 26 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,3 +46,29 @@ To recall the scene send a command to `zigbee2mqtt/[GROUP_OR_DEVICE_FRIENDLY_NAM
46
46
To remove a scene send a command to `zigbee2mqtt/[GROUP_OR_DEVICE_FRIENDLY_NAME]/set` with payload `{"scene_remove": SCENE_ID}` where `SCENE_ID` is a number (e.g. `1`).
47
47
48
48
Alternatively if you want to remove all scenes send a command to `zigbee2mqtt/[GROUP_OR_DEVICE_FRIENDLY_NAME]/set` with payload `{"scene_remove_all": ""}`
49
+
50
+
## Using transitions in scenes
51
+
Scene transition times can only be set with the `scene_add` command. To make use of the `scene_store` command and use transitions, first create a new scene using the `scene_add` command:
52
+
53
+
```
54
+
{
55
+
"scene_add": {
56
+
"ID": 0,
57
+
"name": "Scene Name",
58
+
"transition": 5
59
+
}
60
+
}
61
+
```
62
+
63
+
That will create an empty scene. You can then set the values of your devices and call the `scene_store` command, using the same `ID` provided in the `scene_add` command:
64
+
65
+
```
66
+
{
67
+
"scene_store": {
68
+
"ID": 0,
69
+
"name": "Scene Name"
70
+
}
71
+
}
72
+
```
73
+
74
+
The `scene_store` command overrites all values _except_ the `transition` value.
0 commit comments