I'm in the early stages of designing an automation to monitor my RF dog fence and alert my family when it goes offline. I'm using a ZEN17 input device to monitor the fence controller and it's powered by mains (or at least not powered by battery). I would like to add what I'd call a "watchdog" feature to this automation. This would essentially detect when the ZEN17 goes offline. Imagine a circuit breaker opens or wall adapter is unplugged and the ZEN17 is off. I would like my automation to be able to detect that event and report it as a fence fault.
My question is if there is a common pattern that is used in automations to detect and handle such a requirement? Is the "Node Status" the appropriate entity to check?
Update: No, "Node Status" does not update at all when power is removed from the device so that won't work.
How would you all implement this type of monitoring?