In HS2 I was able to use the following script to send the current outdoor temperature (device value for W1) to my 5 RCS thermostats:
sub main()
dim RCS
set RCS=hs.plugin("RCS Serial Thermostats")
call RCS.cmdsendcustom(1,"OT=" & hs.DeviceValue("w1"))
call RCS.cmdsendcustom(2,"OT=" & hs.DeviceValue("w1"))
call RCS.cmdsendcustom(3,"OT=" & hs.DeviceValue("w1"))
call RCS.cmdsendcustom(4,"OT=" & hs.DeviceValue("w1"))
call RCS.cmdsendcustom(5,"OT=" & hs.DeviceValue("w1"))
end sub
Can someone please help me modify the script to work with HS3? I am using WeatherXML to get my outdoor temp and it appears to be in a device with technology address = Location 1 Temperature, and reference ID = 533.
I have tried the following but I get errors stating there is an invalid character in line 4. "1032:Invalid character in line 4 More info: Invalid character"
sub main()
dim RCS
set RCS=hs.plugin("RCS Serial Thermostats")
call RCS.cmdsendcustom(1,"OT=" $$DVR:533
call RCS.cmdsendcustom(2,"OT=" $$DVR:533
call RCS.cmdsendcustom(3,"OT=" $$DVR:533
call RCS.cmdsendcustom(4,"OT=" $$DVR:533
call RCS.cmdsendcustom(5,"OT=" $$DVR:533
end sub
I'm hoping that someone can point me in the right direction. I loved having the outdoor temp displayed on my RCS units.
Thanks
sub main()
dim RCS
set RCS=hs.plugin("RCS Serial Thermostats")
call RCS.cmdsendcustom(1,"OT=" & hs.DeviceValue("w1"))
call RCS.cmdsendcustom(2,"OT=" & hs.DeviceValue("w1"))
call RCS.cmdsendcustom(3,"OT=" & hs.DeviceValue("w1"))
call RCS.cmdsendcustom(4,"OT=" & hs.DeviceValue("w1"))
call RCS.cmdsendcustom(5,"OT=" & hs.DeviceValue("w1"))
end sub
Can someone please help me modify the script to work with HS3? I am using WeatherXML to get my outdoor temp and it appears to be in a device with technology address = Location 1 Temperature, and reference ID = 533.
I have tried the following but I get errors stating there is an invalid character in line 4. "1032:Invalid character in line 4 More info: Invalid character"
sub main()
dim RCS
set RCS=hs.plugin("RCS Serial Thermostats")
call RCS.cmdsendcustom(1,"OT=" $$DVR:533

call RCS.cmdsendcustom(2,"OT=" $$DVR:533

call RCS.cmdsendcustom(3,"OT=" $$DVR:533

call RCS.cmdsendcustom(4,"OT=" $$DVR:533

call RCS.cmdsendcustom(5,"OT=" $$DVR:533

end sub
I'm hoping that someone can point me in the right direction. I loved having the outdoor temp displayed on my RCS units.
Thanks
Comment