Restart Fibaro HCL when it stops working automatically
It seems that the Fibaro HCL seems to hang every now and then. Instead of trying to restart it regularly, which doesn't really work, as it's almost impossible to predict when this will happen. 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 no...