Hello, I’ve just been developing my Smart Home Assistant platform and I can say that it is a great system. The only problem that I have is that sometimes it gets stuck and if I do not realize about automation and data collection from Home assistant do not work. For example when I arrive home, I cannot use my automation to open the door. This is quite annoying.
So I’ve decided to do a watchdog system to allow me to follow if Homeassistant is working and in case it gets down, it will send me an alert. I’ve used UptimeRobot to do so.
After creating the Watchdog system, I’ve realized that I needed a way to automatically restart the Home Assistant when it was down. So I decided to use an smart plug connected to my Homeassistant Raspberry Pi with a restart scene configured (disconnect energy and connects energy after 1 minute). I launch the restart scene using IFTTT webhook automation, which is triggered when Uptime Robot detects that the system is down.
I will try to describe all steps of How I’ve done this process:
- Create an account on uptime robot: https://uptimerobot.com/
- Click in “Add Monitor” and create a monitor type HTTPs. At URL insert Home assistant Web page address which is going o be monitorized by uptimerobot
- In uptime robot click on My Settings and create an Webhook “alertdowntime_alert”.
- URL to notify must be obtained from IFTTT Documentation page: click in this link and after in documentation: Webhooks works better with IFTTT.
- After this you can create an IFTTT service that could automatically activate a scene, for example in a Tuya Smart Socket that has been created using Smart Life Integration