13.02.2025, 11:32
If both values are already mapped to group addresses then you need an event script attached to the meter data output group address.
This example will send true (ON) to 1/1/2 when the input value is larger than 100, false (OFF) otherwise.
This example will send true (ON) to 1/1/2 when the input value is larger than 100, false (OFF) otherwise.
Code:
value = event.getvalue()
if value > 100 then
output = true
else
output = false
end
grp.write('1/1/2', output)