I can answer your questions based on how another product handles scenes.
This is an excerpt from Premise’s documentation and describes a scene’s two modes of behavior:
The properties of the objects in a scene can be set with two behaviors when a scene is played:
Set-Restore - sets the properties to the state in the scene when it is played, then sets the properties back to the original state when Play is false.
Set - sets the properties to the state in the scene when it is played and does not set the properties back to the original state. Play will revert to False immediately when the behavior is Set.
Note: Scene Reversion only applies if the Behavior property is set to “Set-Restore”.
An object’s properties will be changed to the state of the property which was set in the previous Scene when the Scene is stopped. For example if you have Scene 1, 2, and 3 all playing (started in that order). If you stop Scene 3, the property of the object would revert to Scene 2. If no Scenes are applied the object will revert to it’s ambient state.
Let’s compare Premise’s scenes to Home Assistant’s scenes:
Set behavior is like Home Assistant’s scene which is effectively stateless. Execute the scene and done.
- There’s no direct equivalent of ‘Set-Restore’ in Home Assistant but you achieve something similar by first creating a snapshot scene, executing the desired scene, then executing the snapshot scene to revert all entities to their original states.
I’ll answer the questions based on how Premise handles the given situations:
Scenes behave independently of other scenes. However, not only can a scene set the state of an entity, it can also be used to turn on another scene (and start/stop timers and set global variables). So it’s possible for one scene to call another one.
Nothing special happens other than whatever you changed gets changed.
- ‘Set’ mode is stateless and therefore unaffected by default.
- ‘Set-Restore’ does have a state but it’s not affected by design; a ‘Set-Restore’ scene continues to be active even if you were to manually change the state of all its entities.
What’s important here is that when a ‘Set-Retore’ scene is deactivated all entities are restored to their original states, including any that may have been manually changed while the scene was activated. This means that any manual changes are simply considered to be temporary deviations from the scene’s “orchestration”.
- The current thermostat temperature is 18.
- A schedule activates a ‘Set-Restore’ scene that sets the thermostat’s temperature to 21.
- Someone manually changes it to 23.
- At the scheduled time, the ‘Set-Restore’ is deactivated and it restores the thermostat’s temperature to 18.
Scenes set an entity’s state, they don’t monitor an entity’s state. So if various entity states happen to match a defined scene, the scene is not automagically turned on.