I think last has it, too, but I’m not sure.
I’m not clear on your use case here - the system obviously can’t report if it’s off. Initially I thought this was in the Home Assistant community, and I was going to suggest just pinging the machine at regular intervals from the HA system. That makes sense if you’re trying to monitor various systems.
I assume you’ve never made any mistakes, ever. What an arrogant attitude.