19.02.2021, 09:01
I want to ask the opinion of the expert minds in source code ...
Sometimes we find ourselves in an installation that requires a large number of scripts and they are all the same, with the only difference that we only have to change the last numbers of the group address.
For this case it has occurred to me to do it like this, I have tried it and it works. I share it with you!
Sometimes we find ourselves in an installation that requires a large number of scripts and they are all the same, with the only difference that we only have to change the last numbers of the group address.
For this case it has occurred to me to do it like this, I have tried it and it works. I share it with you!
Code:
--ID Zone
i = 6
--Setpoint temperature control object
TC = '2/2/'.. i
--Fan speed control object AUTO MODE
FAN = '2/3/20'.. i
--COOL / HEAT mode thermostat status
Modo = '2/5/10'.. i
--ECO MODE control object
ECO = '3/5/'.. i
--Temperature object ECO MODE-COLD
TEC = '40/0/1'
--Temperature object ECO MODE-HEAT
TEH = '40/0/2'