How to use device watchdog

is watchdog can monitor device state and trigger an event when it goes offline or online? I have a wifi switch that is a child device from tuya driver... There is no status capability but a status attribute... So I can check the status but not trigger anything in realtime...

Does watchdog can do that?