19.11.2021, 07:29
Greetings
I should change some setpoints between summer and winter, the setpoints are stored in virtual objects, the scrip is run but the virtual objects are not updated.
I should change some setpoints between summer and winter, the setpoints are stored in virtual objects, the scrip is run but the virtual objects are not updated.
Code:
-- COMMUTAZIONE INVERNO / ESTATE
-- CONTROLLO TEMPERATURE
------------------------------------------------
STS = event.getvalue()
--log(tostring(STS))
SPE = grp.getvalue('32/7/40')
--log('SP ESTATE '.. tostring(SPE))
SPI = grp.getvalue('32/7/12')
--log('SP INVERBNO '.. tostring(SPI))
if (STS==0) then -- INVERNO
grp.write('32/1/10', SPI)
grp.write('32/1/11', SPI)
grp.write('32/1/12', SPI)
elseif (STS==1) then
grp.write('32/1/10', SPE)
grp.write('32/1/11', SPE)
grp.write('32/1/12', SPE)
end
-----------------------------------------------
thank's