Announcement

Collapse
No announcement yet.

Sending outdoor temperature to the RCS thermostat in HS3

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Sending outdoor temperature to the RCS thermostat in HS3

    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

    #2
    The colon followed by close parenthesis is showing up as a smiley face, but I can assure you in my non-working script it is a colon followed by close parenthesis.

    And here is the full error log:
    Running script, script run or compile error in file: C:/Program Files (x86)/HomeSeer HS3/scripts/outdoor_temp_web.txt1032:Invalid character in line 4 More info: Invalid character

    Comment

    Working...
    X