Hi All, this post was inspired by the recent discussion around processes which need to stop if there’s no internet connectivity, like swimming pool filling and dosing. If there’s an internet outage you don’t want the pool to continue filling and so here’s a Tuya-based workaround (@teknofilo and pebneter’s idea to be honest but I’m writing it up).
First I add a condition that’s monitoring a Tuya smart plug, with a trigger to evaluate a logicblock if the timer is at, or below 60 seconds:
Then I add a logicblock to reset the timer to a suitable timeout (in this case 600 seconds) once it’s evaluated positively. So if there’s no connectivity, the maximum the connectionless equipment will run for is 600 seconds. If connectivity remains/returns, the timer will keep being reset to 600 every time it reduces to 60. Voila! And thanks again to @teknofilo and the .