Announcement

Collapse

Contacting HomeSeer This Week

HomeSeer is open and operational this week. All orders are being processed and shipped as usual. However, some staff are working from home. If you need to contact HomeSeer for support or customer service, please use our Email or Chat options. https://homeseer.com/contact-us/
See more
See less

CAPI to set value AND status

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

  • CAPI to set value AND status

    I'm trying to set a device value and status via CAPI. I have been successful with setting a value as such:

    http://MyHS/JSON?request=controldevi...=100&value=100

    However, I cannot figure out (and yes, I've read the CAPI docs) how to set the status string and would appreciate some help.

    IDEALLY, I'd like to do it in a single call to set both value and status. Possible?

  • #2
    You might see if this helps:
    https://board.homeseer.com/showpost....7&postcount=30
    HS3Pro Running on a Raspberry Pi3
    64 Z-Wave Nodes, 168 Events, 280 Devices
    UPB modules via OMNI plugin/panel
    Plugins: Z-Wave, BLRF, OMNI, HSTouch, weatherXML, EasyTrigger
    HSTouch Clients: 3 Android, 1 Joggler

    Comment


    • #3
      Thank you, but unfortunately the example to set the status string fails:

      http://IP/JSON?request=setdeviceproperty&ref=####&property=NewDevStrin g&value="Some Status String"

      with error:
      { "Response":"Error, controlling device" }

      Comment


      • #4
        This is the command I run on my Mac. Your results many vary.

        curl "http://HSIP/JSON?request=setdeviceproperty&ref=390&property=NewDevString &value=test" -k

        Note: no space between String and &

        Comment


        • #5
          Thank you, that worked! I don't suppose there is a means to set the device value and string in the same CAPI call?

          I'm trying to use this with the HA-Bridge software to set HS device value and string based on two parameters, but can only enter a single GET statement.

          Comment


          • #6
            Anyone? I'm trying to integrate a couple third-party products with HomeSeer, but each only allows a single web call. It appears from what I can see that CAPI only allows setting a device value OR string per call, but I really have a need to set both in a single call.

            Comment


            • #7
              Originally posted by wcross View Post
              Anyone? I'm trying to integrate a couple third-party products with HomeSeer, but each only allows a single web call. It appears from what I can see that CAPI only allows setting a device value OR string per call, but I really have a need to set both in a single call.
              HS3 tried to get away from this as a concept, the string (which is now the status) should be set from the value and not independent of each other unless you are storing images or complex objects such as charts in the string. HS2 you could end up with one device having a different string, a different value and a different status all independent of each other! Are you confident you need to set the string?
              My Plugins:

              Pushover 3P | DoorBird 3P | Current Cost 3P | Velleman K8055 3P | LAMetric 3P | Garadget 3P | Hive 3P |
              Yeelight 3P | Nanoleaf 3P

              Comment

              Working...
              X