10.11.2022, 06:37
.. is concatenation so '1/1/1' .. 1 is '1/1/11' not '1/1/2'.
To increase a group address by a number it needs to be converted to a numeric value first. grp.* functions accept addresses in numeric format so no need to convert back to a group address string.
Your example does not work also because variables are named differently: aaa1 / aaa, bbb1 / bbb.
To increase a group address by a number it needs to be converted to a numeric value first. grp.* functions accept addresses in numeric format so no need to convert back to a group address string.
Code:
addr = buslib.encodega('1/1/1') + 1
Your example does not work also because variables are named differently: aaa1 / aaa, bbb1 / bbb.