I am moving my first steps with HA.
I would love some help, or even to be pointed in the right direction with a script.
I have HA installed on a Raspberry PI 4; I want to build a series of script into the PI to help me do:
- Send me a notification when there is a power outage, the RPi4 is attached to a UPS
- Send me a notification when there is a fiber outage and the router switched to the failover LTE
- Reboot the router when it is stuck
The most important script needs to do this:
- Ping Google for 5 times, every 2 minutes
- If Ping fails, switch off a Tapo P100 Smart Plug
- Wait 30 Seconds
- Turn On the above plug
Can you please point me in the right direction, I am not asking for a full script (albeit I’d gladly accept it!)