I was wondering if anyone was using a input_select to switch between options while updating a MQTT topic on “state_changed” and then restoring previously selected option?
I have the automation to publish the change but I’m scratching my head trying to figure out how to restore the current input_select on homeassistant_start.
Basically, I have some automation setup to switch between different modes throughout the day and the transition has one of many conditions on the previously selected mode. If I restart HA, then I lose the previously selected mode and it defaults to initial. This is one huge learning exercise for me and I appreciate any help given.
I apologize if this is documented somewhere, I haven’t found it yet.
I do this with my own version of thermostat control with an automation rule like this and ensuring the mqtt topic is set to retain so it gets the last known value on start.