I’ve been running HA as a VM on Unraid for years. I noticed earlier this week that sometimes when I disabled any automation with the slider/toggle on the Automations page (“/config/automation/dashboard” in a browser), the toggle would slide back to enabled within a second or two. (And vice versa when enabling an integration.) Other times, I would slide the toggle and it seemed to stay put, but then it would revert to its previous state after restarting Home Assistant.
This is very frustrating, since it means some automations will trigger / not trigger as expected when (for example) Home Assistant restarts following a VM backup while I’m asleep.
When i check the “History” tab for the automation, i typically see my manual action (e.g.) turning an automation off (which persists across reboots as well), but the history doesn’t show it turning itself back on, even though the automation shows as enabled in the GUI and a template like states(“automation.name”) shows it as enabled. And the automation will trigger again, so it is clearly enabled in those cases. In other cases, I may enable an automation with the slider but its History tab doesn’t show me doing that at first, though it will show my enabling action after refreshing the browser page, perhaps since my system is just slow. The enabling doesn’t persist after a reboot in these cases either.
As for the “last triggered” column on /config/automation/dashboard, those seem to update in the moment, and automations are indeed triggering actions, but when I restart HA, the “last triggered” datetime reverts back to whatever it said upon initially booting HA last time.
For both of these issues, I get the same results when accessing HA from a browser window and from the HA app on Mac. Notably, everything else in Home Assistant seems to work. Like I said, automations trigger if they’re enabled (or don’t trigger if they’re disabled), the dashboard works, I’m able to create and delete files in the /config folder, I can create new automations and have those persist across reboots, make edits to my config YAML, etc. My logs show errors but nothing out of the ordinary, since they’re mostly errors about maybe a shell script failing since I haven’t updated it for a while, etc.; nothing really new or obviously relevant.
It’s probably a simple issue, but I’ve been unable to solve it, even with pretty extreme steps like:
- restoring HA from various backups over the past week and month.
- making a new VM on unraid and restoring from a backup.
Would appreciate any help, thanks!