Set the music of a scene
update-scene-musicSet or clear the music playlist and track for a scene. Omit a parameter to keep current value; pass null to clear it.
Instructions
Set or clear the playlist and the single track a scene plays when it is activated. A parameter left out keeps that field; null or an empty text clears it. playlist_sound alone picks a track of the playlist the scene already has. A new playlist keeps the track only when it belongs to it, otherwise the track is cleared and the result says so; the scene never points at a track outside its playlist. Scene, playlist and track are found by id or exact name (case ignored when unique). Needs the scene permission "create and change".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| playlist | No | Id or name of the playlist; null or empty clears it. Leave out to keep it. | |
| playlist_sound | No | Id or name of a track in that playlist; null or empty clears it. | |
| scene_identifier | Yes | Id or name of the scene. |