This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

change virtual onject value from script
#1
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.
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
Reply


Messages In This Thread
change virtual onject value from script - by Frank68 - 19.11.2021, 07:29

Forum Jump: