Announcement

Collapse
No announcement yet.

JSON request - Help within 30 day post purchase period.

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

    #16
    setdeviceproperty via JSON fixed in 3.0.304 (beta)?

    https://board.homeseer.com/showthread.php?t=181241

    Build 3.0.0.304 is available for testing.

    Changes:

    * Fixes to JSON to change some device properties
    * Fixed check_vcmd.vb script now works on Linux
    * Minor changes to event handling
    * Fixed some external URL references

    Comment


      #17
      See this post.

      https://board.homeseer.com/showpost....7&postcount=30

      Comment


        #18
        Thanks lveatch and Baudi. I would have missed that

        Works for strings but how do I set a numeric value?

        Code:
        http://172.20.10.2:81/JSON?request=setdeviceproperty&ref=100&property=NewDevString&value=123
        
        { "Response":"error, setting device property:Object of type 'System.Int32' cannot be converted to type 'System.String'." }
        works for string...
        Code:
        http://172.20.10.2:81/JSON?request=setdeviceproperty&ref=100&property=NewDevString&value=test
        
        { "Response":"ok" }
        Putting int in quotes does not work...nor using decimal

        Comment

        Working...
        X