Page 1 of 1

Device action depending on another device's state

Posted: 12 Oct 2019, 11:08
by ajtofelfa
Hi,

I'm about to shift my heating control to Domoticz using a Sonoff 4ch attached to zone valves and heater trigger. The logic is written in dzVents and works nice. However, on some occasions the http trigger from Domoticz to switch off a relay doesn't go through to the Sonoff. This is less of a problem if a zone valve remains open, but if the heater keeps on burning, that's quite bad.

Is it possible to write a script locally on the Sonoff in Rules that checks if any of the zone valve relays are on, and if not, then turns off the heater relay after a period of time?

Re: Device action depending on another device's state

Posted: 12 Oct 2019, 21:50
by Domosapiens
Did you study the Rules?
Switch the Rules on in the Tools tab.
And then ...
https://espeasy.readthedocs.io/en/lates ... Rules.html

Good practice is to fire a command Heating_On every 60 sec.
On the receiving side you use a 80 sec. timer for auto Heating_Off

So as long as you receive every 60 seconds the Heating_On command, the heater stays on, otherwise after 80 seconds Off.
Make sure that at boot and reboot the heater is Off.