Im thinking of a way to shutdown hub if AC power goes out using rule machine. This will be a case where AC drops out and i have a few minutes of dc power running the hub. Network will be down when power goes out. This is to prevent hub hard shutdown with power outage
I looked at this some time ago. I have dashboards running Fully and noticed that if you enable mqtt in Fully, it reports whether the device is running on power:
I was going to use that "isPlugged" = true to trigger a Hubitat Virtual switch using node-red. I never did work out how to extract that info from the payload and use it though...
I thought that might be easier than rigging up a device to do it (there's a post somewhere on the forum where someone has made up a small case with a 5V PSU, relay and z device with external input)
No, to restart after a shutdown command, power must be cut and reapplied, for this I use a Sonoff USB wifi switch, versus walking all the way to the basement(of course assumes WiFi is up)
KASA wifi switches are a good solution and what i use for this as they come back up to last state on power restore and can be used in their app outside of hubitat to remove and repower (reboot) your hubitat.