Skip to content

Commit 4df2f4c

Browse files
WhimsySpoonKoenkk
andauthored
Update scenes.md (Koenkk#1619)
* 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]>
1 parent b226164 commit 4df2f4c

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

docs/guide/usage/scenes.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,29 @@ To recall the scene send a command to `zigbee2mqtt/[GROUP_OR_DEVICE_FRIENDLY_NAM
4646
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`).
4747

4848
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

Comments
 (0)