12.04.2022, 09:04
Here's an example of blocking via a script and an additional virtual object. Single script can be used for multiple objects when mapped to a tag.
All objects must follow a fixed addressing scheme where the last group address part matches for all three objects.
In this example thermostat mode is 32/1/X, output is 33/1/X, this can be changed as needed.
All objects must follow a fixed addressing scheme where the last group address part matches for all three objects.
In this example thermostat mode is 32/1/X, output is 33/1/X, this can be changed as needed.
Code:
addr = event.dst:split('/')[3]
mode = grp.getvalue('32/1/' .. addr)
-- write input value to output only when mode is comfort (1)
if mode == 1 then
value = event.getvalue()
grp.checkwrite('33/1/' .. addr, value)
end