This method checks that the HCL is actually running and in the event it stops working, trigger a script that will restart it.
1. Get a non Fibaro controlled power plug and scripts to control it.
I used a wifi smart plug, TP-link HS100 and downloaded the scripts from
https://blog.georgovassilis.com/2016/05/07/controlling-the-tp-link-hs100-wi-fi-smart-plug/
2. Create a bash script to restart the Fibaro, e.g. restart_fibaro.sh
#!/bin/bash
ip_addr=
scripts=
$scripts/tplink-smartplug.py -t $ip_addr -c off
sleep 10
$scripts/tplink-smartplug.py -t $ip_addr -c on
3. Create a test global variable in the Fibaro HCL
Go to the variables panel and create a test variable, e.g. Test
4. Add a cron entry to test that the Fibaro API is still working and restart if it's not.
The cron script is scheduled every 5 mins and turns on and off the power to the HCL in 10 seconds when the Fibaro API does not respond.
Cron entry:
*/5 * * * * wget http://
Make sure to replace the following
No comments:
Post a comment