Hi all !
I often have my Internet box that lost the Internet connectivity and I have to physically disconnect / reconnect it …
I want to do this with a connected Xiaomi Plug (recognized in HA) automatically.
I am thinking of doing this:
- ping of 8.8.8.8
- If down for 5 min
- Switch off the Xiaomi plug
- Wait 30 seconds
- Switch on the Xiaomi plug
But I can’t figure out how to do it.
For information :
- My internet box is used as a modem
- All LAN network is managed by Firewall
- WiFi is managed by two Access points
Thanks in advance !