Announcement

Collapse
No announcement yet.

Scripting

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

    Scripting

    Forgive me as I am not a programmer. But I am trying to change the target temperature by script. I used hs.setdevicevaluebyref and I am able to change the value of the device in homeseer but the actual nest device doesn't change. The reason I am using scripting to do it is so I can use voice recognition to change the thermostat. I then have a script parse out the temperature in the hs.lastvoicecommand and use hs.setdevicevaluebyref to set the temperature. Anything I can do to change it? thanks.

    #2
    you can't use SetDeviceValueByRef to control a device from a script, you have to use CAPI: http://www.homeseer.com/support/home...ontrol_api.htm

    there is a lot of CAPI examples in the forum.
    Let me know if you can't figure it out, I'll try to come up with an example for the Nest target temperature

    Comment


      #3
      Originally posted by spud View Post
      you can't use SetDeviceValueByRef to control a device from a script, you have to use CAPI: http://www.homeseer.com/support/home...ontrol_api.htm

      there is a lot of CAPI examples in the forum.
      Let me know if you can't figure it out, I'll try to come up with an example for the Nest target temperature

      I was afraid of that. I've been trying to avoid looking into the dreaded CAPI but I guess i'll have to. Thanks.

      Comment


        #4
        CAPI is your friend
        tenholde

        Comment


          #5
          Originally posted by tenholde View Post
          CAPI is your friend
          That may be true but all I had to do was use this to control it: hs.CAPIControlHandler(hs.CAPIGetSingleControl(215, False, 1, False, True))

          Comment

          Working...
          X