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
    Len


    HomeSeer Version: HS3 Pro Edition 3.0.0.435
    Linux version: Linux homeseer Ubuntu 16.04 x86_64
    Number of Devices: 633
    Number of Events: 773

    Enabled Plug-Ins
    2.0.54.0: BLBackup
    2.0.40.0: BLLAN
    3.0.0.48: EasyTrigger
    30.0.0.36: RFXCOM
    3.0.6.2: SDJ-Health
    3.0.0.87: weatherXML
    3.0.1.190: Z-Wave

    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