09.10.2019, 12:16
more codes:
Code:
CMD_ON = '{"fpwr":"ON"}'
CMD_OFF = '{"fpwr":"OFF"}'
CMD_AUTO_ON = '{"auto":"ON"}'
CMD_AUTO_OFF = '{"auto":"OFF"}'
CMD_NIGHT_ON = '{"nmod":"ON"}'
CMD_NIGHT_OFF = '{"nmod":"OFF"}'
CMD_HEAT_ON = '{"hmod":"HEAT"}'
CMD_HEAT_OFF = '{"hmod":"OFF"}'
-- not sure if its right, but it works
function CMD_HEAT(iTemp) -- integer celcius
return '{"hmax":"'..2932+((iTemp-20)*10)..'"}' --2932=20 2952=22 2982=25 3012=28 enz
end