10.06.2019, 04:08
(09.06.2019, 22:09)Erwin van der Zwart Wrote: Hi,
Here is a sample of a scheduler + twilight + overrule button logic so you can see how to build it.
The inputs 32/x/x are tagged and the script is event based attached to the same tag.
Code:klok = '32/1/1' schemer = '32/1/2' overbrug = '32/1/3' uitgang = '1/0/52' waarde_klok = grp.getvalue(klok) waarde_schemer = grp.getvalue(schemer) waarde_overbrug = grp.getvalue(overbrug) waarde_uitgang = grp.getvalue(uitgang) if waarde_overbrug == true then if waarde_uitgang == false then grp.write(uitgang, true) end else if waarde_klok == true and waarde_schemer == true then if waarde_uitgang == false then grp.write(uitgang, true) end else if waarde_uitgang == true then grp.write(uitgang, false) end end end
BR
Good morning Erwin:
I appreciate very much the answer, but it's not exactly what I want to do, maybe what I want to do is easier, but it's hard for me
What I want to do is that when the heating of the house is in "heating" mode 1/1/1 "true"
and there will be a Room Window 1/1/2 (window 1) or Window 2 of room 1/1/3 (window 2) or window "n" of the room
So
The address 1/1/8 thermostat protection mode is = true
but also in the rest of the rooms the same
If heating mode 1/1/1 is true
and opens Window 1 of the room (1/2/1) or window 2 of the room (1/2/2) or window n of the room ...
so
the direction 1/2/8 protection mode of the thermostat is = true
BR
Josema