I have DOODS that scans for detected objects at my front door and returns a value. Normally I a value of 2 (2 cars in drive). I want to use this to save and restore a value of doods after a restart. My code is below and i would appreciate some help.
I’ve given that a try, but it seems to be restoring too much for what I need.
(I’m trying to update the list of options for some input_selects, and then restore only the selected option to what it was before. Doing this with the scene method apparently restores the list of options as well.)
Can you please provide an example of how to save and restore multiple entities? I would like to use this to preserve the state of some binary_sensors and restore them after a restart.
scene.create has typical problem of losing it once restarted.
There is no other way that script can update the saved scene.
What I am trying to archive?
On ‘Scene1’ button press, save/update the selected entities’ states so it can be recalled next time.
User wants to keep 2 scenes.
Updating scenes via ‘Automation& Scenes’ is very difficult for non-technical users.
Also, non-admin users will have issues seeing all the scenes and being able to change everything.
Easy method to update the scene is: User has its mushroom-based user-friendly dashboard, he/she changes lights/fan/climate as wanted and then long presses the scene button on same dashboard which calls script and update/save the scene.
With Saver I can save only 1 state for each entity. In that case, I can’t give second scene option to the user.
HA really needs to redesign its core scene methodology.
Hi !
I have big trouble with SAVER.
I can save entities but can only restore 1 … the first that was saved the first time.
I’ve noticed that SAVER have 2 entities :
And each new save i done under saver.save_2 and cannot be recovered.
I’ve deleted SAVER , restart HA …
The 2 entities are still here.
A clear leave the 2 entities.