I’m starting to use input_boolean to control some automation stuff (such as a “sleep-in” toggle which disables some of my morning automation stuff I normally run on weekdays). The problem is those states do not persist on reboots. I noticed there is this community patch to address this:
I was wondering though, if an MQTT switch could potentially do the same thing? Avoids a patch but requires more work to setup HA and might not be the best option to, say, set my ceiling fan states (I use input_select for those). Since HA already stores stuff in sqlite or an external DB, I was pondering something similar to the above community patch which stores state inside the DB as well.