i am building a mini grow box for pepper which needs specific environment. So basically automated temperature and humidity control.
I am using Sonoff devices (ESP8266) with ESPeasy on it so Domoticz is sending http commands over Wifi to controll the Sonoffs.
The problem is that sometimes the commands can not reach the Sonoff and i am getting this Error:
Code: Select all
Error opening url: http://192.168.1.94/control?cmd=GPIO,12,1
What would you do to prevent my pepper from getting barbecued?
For now i send the command twice with a 15 second delay. But even these two commands don't arrive at the device sometimes.
Should i send the Sonoff state of the relay every minute to Domoticz?
Should i write a "safety-script"? And what kind?
Or is there a better way?
Thanks for the input. I can need it.
ED
Here is example of my blocky code for the time when the lights are off:
OffTopic: Will there ever be If nested inside a If statement in blocky? :/