Announcement

Collapse
No announcement yet.

JSON set device value not working

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

    JSON set device value not working

    Currently I am replacing my RFXsensor, with 10 external DS18B20's, with an Wemos D1 mini for several temperature measurements. I have no choice because the RFXsensor has died on me. I am posting the device values and strings to HS3 by http JSON.

    For some reason the following http get works, but the second keeps giving errors as soon as the value isn't a integer...

    http://HOMESEERIP:PORT/JSON?request=setdeviceproperty&property=NewDevValue&ref=401& value=21

    http://HOMESEERIP:PORT/JSON?request=setdeviceproperty&property=NewDevValue&ref=401& value=2
    1,2

    I have already tried almost all possible combinations, but still no luck...

    |s there anyone who has been successful getting this working?


    Regards, Peter


    #2
    Try changing it to 21.2
    💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

    Comment


      #3
      I already tried that, but no luck... also within single or double quotes, url encoded . and ,
      nothing seems to work.. for your information, it is the original rfxcom deviceRef which I am using. Updating the device string with a decimal is no problem...

      Comment


        #4
        How about
        http://ip:port/JSON?request=controld...401&value=21.2

        Comment


          #5
          Already tried that, nothing with a . or , in it is accepted by the JSON backend of HS3. I almost seems that it only accepts integers...

          Comment


            #6
            Setting a dimmer to a non-integral value, I get this error with the setdeviceproperty method:

            { "Response":"error, setting device property:Input string was not in a correct format." }

            But with controldevicebyvalue, it works properly, returns 'ok' and the device value displays what I sent.

            Comment


              #7
              When using your example I get an error response

              http://IP:PORT/JSON?request=controld...401&value=21.2

              The only values working with this type of request are 0 and 100? every other value gives an error response, unless I set the device to 'is dimmable'. In that case it works like you said.

              Will have a look how to modify a existing device with the is dimmable button grayed out... That would solve my problem.
              Last edited by psmaaswinkel; August 15, 2018, 07:19 AM.

              Comment


                #8
                Check out this thread for info on setting up valid device values in the status graphics tab: https://forums.homeseer.com/node/95503

                Comment

                Working...
                X