Device Offline Alarm

Does anyone know if there is an automation available to determine if a device is offline, and if so then to alarm. I have an outdoor smart switch attached to a battery charger that attends to a seasonal type vehicle. The charger and a small heater under it cycle with other established logic. I want to know if the device goes offline so that I can investigate it quicker.

This comes ootb
Alert - Home Assistant (