stateful_scenes icon indicating copy to clipboard operation
stateful_scenes copied to clipboard

Restore on deactivate restore wrong state

Open Cheerpipe opened this issue 1 year ago • 7 comments

"restore on deactivate" feature store states after a state change event causing problems with scenes where a entity do more than one state change resulting in integration restoring a "bad" state. (Example, a bulb that informs two state changes for turn on and color change).

A better approach could be grab and store state just before a scene is applied. This may need more tweaks like check what attributes may be changed by the scene and grab those attributes to further restore action.

Cheerpipe avatar May 14 '24 14:05 Cheerpipe