Announcement

Collapse
No announcement yet.

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
    HS4Pro on a Raspberry Pi4
    54 Z-Wave Nodes / 21 Zigbee Devices / 108 Events / 767 Devices
    Plugins: Z-Wave / Zigbee Plus / EasyTrigger / AK Weather / OMNI

    HSTouch Clients: 1 Android

    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?

              Comment

              Working...
              X