Hi,
I have 2 home assistant in 2 homes.
Unfortunatly sometimes the second ha crash I do not know why.
Is there a way with the first to monitor the second to eventually restart it ?
I specify that the second is supervised version on debian with tunneling acces (cloudfare) and only ha crash not the host.
Thanks
Hi,
If I were attempting this I would do it through nodered on the stable server via a node with the secondary server referenced
Alternatively - probably easier is to create a ping pong hook on the secondary and poll it with an automation on the primary.
Many ways of doing it and obviously you’ll need to check that the tunnel is up as a condition for a restart
Good luck
That’s actually what I’m trying to do.
My problem is therefore to interrogate the home assistant and to deduce if it works by the absence of response.
I tried the ping but it still reply even with ha stopped.
can you explain how you do that with nodered or ping pong hook ?
Hi,
Thought I’d test it out and created a simple flow which you can expand on which simply polls the HA config … If this fails you can catch the node and restart the remote HA instance
Thank you, works fine. The only difference I used catch node because when ha is down it can’t send his state