Thank you
I have been thinking about this further. We implement KNX organizing the structure of the group address to a certain schema.
1/0/* Switching
1/1/* Dimming
1/2/* Absolute Values
1/3/* Switching Feedback (Status)
1/4/* Absolute Value Feedback (Status)
Would it be possible to add a new parameter to the checkwrite\response\update, so that the function compares the requested value against another object (group address)
For example, I have a light that I want to set to 50%
grp.checkwrite('1/2/1', 50, '1/4/1')
which effectively does,
if(grp.getvalue('1/4/1')~=50)then
grp.write('1/2/1',50,dt.scale)
end
when this object is not specified then the comparison is made against the original object.
Thanks,
Roger
I have been thinking about this further. We implement KNX organizing the structure of the group address to a certain schema.
1/0/* Switching
1/1/* Dimming
1/2/* Absolute Values
1/3/* Switching Feedback (Status)
1/4/* Absolute Value Feedback (Status)
Would it be possible to add a new parameter to the checkwrite\response\update, so that the function compares the requested value against another object (group address)
For example, I have a light that I want to set to 50%
grp.checkwrite('1/2/1', 50, '1/4/1')
which effectively does,
if(grp.getvalue('1/4/1')~=50)then
grp.write('1/2/1',50,dt.scale)
end
when this object is not specified then the comparison is made against the original object.
Thanks,
Roger