22.04.2025, 08:57
Hi, Thanks for sharing. It is working fine for the coils i.e 1 bit object. But we have holding registers as well that we are using for scene control in which we are sending 0,1 and 2 value from the same group address. How in the above script we can use gate function for the holding registers.
registers = {
[1] = '6/3/6',
[2] = '6/0/10',
[3] = '6/0/11',
[4] = '6/2/6',-
[5] = '6/2/7',
},
registers = {
[1] = '6/3/6',
[2] = '6/0/10',
[3] = '6/0/11',
[4] = '6/2/6',-
[5] = '6/2/7',
},