I have HA installed on my Qnap 451 NAS using the Qnap Virtualization Station. Although its mostly dependable, sometimes I wake up to find HA not working and I have to restart the Virt station on the Qnap console.
I’m looking for a way to have HA checked every hour and if not responsive, sent me a message on my phone.
Does anyone have a suggestion on how to implement?
I has the same problem with my old hardware, I used a esp8266 to check if I can connect to hassio and if I cant I send a email, I cant send you a complete code I added it to a project I already had running and the code are massive and messy…
but this is the part I use to check if hassio are online, for the email part, google has lots of tutorials.
WiFiClient client;
const char* host_hassio = "192.168.1.226";
if (!client.connect(host_hassio, 8123)) {
printer->println("hassio connection failed");
hassio_down_now = 1;
}
client.stop();