Announcement

Collapse
No announcement yet.

URL call from Homeseer

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

    URL call from Homeseer

    Hello, I want to adjust a servo connected to an M5Atom from homeseer, based on a device value. I can do this via an URL call like this:

    http://192.168.50.50/?action=setValue&servo=1&value=110

    So, i want the value to be the value of a device, and I'm unsure of how to do the syntax in a statement like:

    &hs.GetURL("http://192.168.50.50/?action=setValue&servo=1&value=110","/",TRUE,80)

    How can I refer to a device instead of 110 in this statement?

    Cheers!

    #2
    Code:
    hs.GetURL("http://192.168.50.50/?action=setValue&servo=1&value=" & hs.DeviceValueEx(1234), "/", True, 80)
    Where 1234 is the device reference number.
    Jon

    Comment


      #3
      Thank you sir!

      Cheers

      Comment

      Working...
      X