www.homeseer.com    
 

Go Back   HomeSeer Message Board > HomeSeer Products & Services > HomeSeer Help

HomeSeer Help Help, How-to's and Documentation

Reply
 
Thread Tools Display Modes
  #1  
Old December 2nd, 2016, 06:36 PM
davros davros is offline
Seer Plus
 
Join Date: Nov 2016
Location: Aus
Posts: 112
JSON request - Help within 30 day post purchase period.

Perhaps the community can help?


From: support.47950.7598089d2a09a93d@helpscout.net [mailto:support.47950.7598089d2a09a93d@helpscout.net] On Behalf Of HomeSeer Support
Sent: Tuesday, 29 November 2016 10:09 PM
To: xxx <...>
Subject: Re: SUPPORT REQUEST WITHIN 30 DAY PERIOD - please respond.

Hello,

We got your help request! One of our agents will respond to you as soon as possible.

Thanks!
HomeSeer Support
603-471-2816



sent a message Nov 29, 6:09am
Hello, attempt #2 for support within my 30 day period. (My last attempt went unanswered).

The JSON command for Homeseer are extremely limited. I count 13 in total.

I can not for example run a script, I can not run an event and pass a (text) parameter nor it appears set the status string of a device.

I have a virtual device (DevRef 3779) I want to set the status on via a JSON call.
(As devices can only have a numerical value in Homeseer, - who thought that was a good idea? - I want to set a device status (text) using JSON. I do not want to define all the possible status texts, there are thousands of combinations.)

I want to set the device status to be something like the following "V123" or "V++" or "B1-10" etc. via JSON call from a remote system.

I do not want to write my own plugin for this.

https://www.homeseer.com/support/home..._with_json.htm
Says I can use the following to set the a device property.
Note: It is clearly malformed as it does not have a Device Reference:
/JSON?request=setdeviceproperty&property=NAME&value=VALUE Sets a specific property on a device using the property name. For example, the "Name" of a device may be set using:

/JSON?request=setdeviceproperty&property=Name&value=NewName

See the device section in the scripting reference in the HS3 user documentation for a list of device properties.



Assuming the correct command included "&ref=xxxx" the command is now:

/JSON?request=setdeviceproperty&ref=xxxxproperty=NAME&value=VALUE

This tells me to go see the device section of the scripting reference to get a list of properties.
Looking at the Scripting help (https://homeseer.com/support/homeseer...lp/default.htm ) here, I see the Devices Class has the following:
Status
Public ReadOnly Property devString(ByVal hs As IHSApplication) As String
This is the device string for the device. When this property contains a value, it can override the display of the device's normal status display which is based upon the device's value. This property may contain HTML if HTML features are desired to be used when the device is viewed on the device utility page or the status views. This property is Read Only, so script commands must be used to modify the string value such as hs.SetDeviceString

So, I assume the property is called devString. Is it?

Is so the following should work. It doesn't.
http://192.168.0.20:81/JSON?request=...ring&value=V++

{ "Response":"error, setting device property:Property set method not found." }


Interestingly after trawling the forums, I tried this:

http://192.168.0.20:81/JSON?request=...ring&value=V++

returns { "Response":"ok" }

So, question. How do I achieve what I am looking for from the JSON call?
1) Preferably: Run a script and pass parameters
2) Set Status of a virtual device (and value which will trigger a script to read the status to then action).

Thanks,
Yours in eternal hope
Reply With Quote
  #2  
Old December 3rd, 2016, 08:58 AM
Steve Q's Avatar
Steve Q Steve Q is offline
OverSeer
 
Join Date: Jun 2005
Location: Michigan
Posts: 3,526
I also can't get the JSON setdeviceproperty to work.

Steve Q


Sent from my iPad using Tapatalk
__________________
HomeSeer Version: HS3 Pro Edition 3.0.0.258, Operating System: Microsoft Windows 10 - Home, Number of Devices: 290, Number of Events: 404, Enabled Plug-Ins
2.0.83.0: BLRF, 2.0.10.0: BLUSBUIRT, 3.0.0.75: HSTouch Server, 3.0.0.58: mcsXap, 3.0.0.11: NetCAM, 3.0.0.36: X10, 3.0.1.25: Z-Wave
Reply With Quote
  #3  
Old December 3rd, 2016, 05:47 PM
davros davros is offline
Seer Plus
 
Join Date: Nov 2016
Location: Aus
Posts: 112
Thanks.

Now, all I need is for the support to work Glad I did not pay for support.
https://www.homeseer.com/support-home.html

Code:
For product help within 30 days of purchase
option 1: call us directly at 603-471-2816 
option 2: email support@homeseer.com
For product help beyond 30 days of purchase, please use option 2.
Anyone using paid support? What's it like? Does anyone answer?
Reply With Quote
  #4  
Old December 6th, 2016, 04:49 PM
davros davros is offline
Seer Plus
 
Join Date: Nov 2016
Location: Aus
Posts: 112
Aaaaand, still nothing.....
Reply With Quote
  #5  
Old December 6th, 2016, 05:03 PM
sirmeili sirmeili is offline
Seer Master
 
Join Date: Apr 2015
Location: Sebring, FL
Posts: 1,099
Quote:
Originally Posted by davros View Post
Aaaaand, still nothing.....
Did you try calling?
Reply With Quote
  #6  
Old December 6th, 2016, 05:57 PM
davros davros is offline
Seer Plus
 
Join Date: Nov 2016
Location: Aus
Posts: 112
I am in Australia and while Skype or other IP options exist, it's not a viable option for me.
Reply With Quote
  #7  
Old December 6th, 2016, 08:46 PM
UltimateInternet UltimateInternet is offline
Seer Deluxe
 
Join Date: Jun 2013
Location: Tennessee
Posts: 139
if you want to write your own plugin and json while it is convenient does NOT integrate you enough, you must stick to c# or VB using the examples provided online and go from there.

It takes a bit to get used to but once you are there, you have all the full control you are looking for.

JSON is very simplistic and on purpose. I'm not sure if they are going to expand it or not since you can just get in there with a plugin module you can completely control.

you could potentially wrap a stronger json service into a plugin.......... food for thought.

good luck
Reply With Quote
  #8  
Old December 6th, 2016, 09:11 PM
davros davros is offline
Seer Plus
 
Join Date: Nov 2016
Location: Aus
Posts: 112
Thanks for posting UltimateInternet. Much appreciate the suggestion.

I may infact sadly end up writing my own plugin (or leveraging others - see here...) Note: Those other plugins were abandoned precisely because HS was developing a native JSON interface.

I would prefer to leverage the feature that is documented and that was advertised as available for integration when I bought the product - a native HS3 JSON interface as documented in https://www.homeseer.com/...HS3/SDK/controlling_with_json.htm)
Reply With Quote
  #9  
Old December 11th, 2016, 05:15 AM
davros davros is offline
Seer Plus
 
Join Date: Nov 2016
Location: Aus
Posts: 112
I wonder if the Homeseer team are trying to wait me out? 12 days since the last request and follow up emails and PM's have only resulted in automated responses.

Clearly they think I will give up, nope. not this little black duck.

Last edited by davros; December 11th, 2016 at 05:56 AM.
Reply With Quote
  #10  
Old December 11th, 2016, 06:11 AM
jon00's Avatar
jon00 jon00 is offline
OverSeer
 
Join Date: Jan 2002
Location: London UK
Posts: 10,974
There are numerous bugs within HS3, many going back years! HST don't seem that interested in bug fixing recently so don't pin your hopes too high!
__________________
Jon

Reply With Quote
  #11  
Old December 11th, 2016, 06:40 AM
davros davros is offline
Seer Plus
 
Join Date: Nov 2016
Location: Aus
Posts: 112
Yeah, I get that Jon and it's guys like you that keep guys like me hopeful even inspite of that.

But that's just wrong and should not be accepted as just how it is. This is not abandonware. It's a product that is being actively sold into the market and purports to be the #1 rated HA software.

I was told when I bought it I would get 30 days support from the HS team. I have not, and that's not ok in my books.

I know I know, no one cares and all that, but it's just not going to ever be ok to me to plain out ignore your paying customers.

PS. I did have a look at bugzilla and it's not too bad really inb terms of the numbers for the core product...
Attached Images
 

Last edited by davros; December 11th, 2016 at 06:53 AM.
Reply With Quote
  #12  
Old December 11th, 2016, 06:56 AM
jon00's Avatar
jon00 jon00 is offline
OverSeer
 
Join Date: Jan 2002
Location: London UK
Posts: 10,974
I totally agree with you however there is not much we can do. HST provided Bugzilla to report faults but there are many outstanding tickets.

The problem is that HST are a very small company and put their resources in to generate income. I believe that there are only 2 programmers active (Rich and Wade) and Rich has hinted that they are working on something new.
Reply With Quote
  #13  
Old December 11th, 2016, 02:17 PM
baudi baudi is offline
Seer Deluxe
 
Join Date: Aug 2007
Location: Virginia
Posts: 205
See this thread for what I found out about setdeviceproperty.

Last edited by baudi; December 11th, 2016 at 02:41 PM.
Reply With Quote
  #14  
Old December 11th, 2016, 04:16 PM
sirmeili sirmeili is offline
Seer Master
 
Join Date: Apr 2015
Location: Sebring, FL
Posts: 1,099
Quote:
Originally Posted by jon00 View Post
I believe that there are only 2 programmers active (Rich and Wade) and Rich has hinted that they are working on something new.
I still think they need to plan for bug fixes. Working on something new (unless it fixes bugs), doesn't make me feel warm and fuzzy. Give 25% of your dev time to bug fixes. This keeps current customers happy and shows potential customers that you care about your product.


Sent from my XT1585 using Tapatalk
Reply With Quote
  #15  
Old December 27th, 2016, 06:26 PM
davros davros is offline
Seer Plus
 
Join Date: Nov 2016
Location: Aus
Posts: 112
#fail

Oh dear.

The official paid support finally responded. The PAID support does not support the published API and instead directs you to the non-official community support? What the?

Quote:
Tyler replied Dec 21, 1:51pm
Hello ,

Our support team cannot offer any assistance with programming or scripting. For help, I would recommend posting on our message board under the Developer Support section.
http://board.homeseer.com/forumdisplay.php?f=1390

Regards,


--
Tyler M
support@homeseer.com
Support Technician
603-471-2816


How would you rate my reply?
Great Okay Not Good

Last edited by davros; December 27th, 2016 at 06:37 PM.
Reply With Quote
  #16  
Old December 31st, 2016, 02:12 AM
lveatch lveatch is offline
Seer Deluxe
 
Join Date: Dec 2012
Location: USA - Illinois
Posts: 138
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.318
Linux version: Linux homeseer Ubuntu 16.04 x86_64
Number of Devices: 540
Number of Events: 711
Available Threads: 600

Enabled Plug-Ins
2.0.46.0: BLBackup
2.0.35.0: BLLAN
3.0.0.32: EasyTrigger
3.0.0.68: HSTouch Server
30.0.0.35: RFXCOM
3.0.0.70: weatherXML
3.0.1.130: Z-Wave
Reply With Quote
  #17  
Old December 31st, 2016, 11:27 AM
baudi baudi is offline
Seer Deluxe
 
Join Date: Aug 2007
Location: Virginia
Posts: 205
See this post.

https://board.homeseer.com/showpost....7&postcount=30
Reply With Quote
  #18  
Old January 12th, 2017, 10:23 PM
davros davros is offline
Seer Plus
 
Join Date: Nov 2016
Location: Aus
Posts: 112
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
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
JSON Request jsyers HomeSeer General Discussion Area 2 October 9th, 2016 10:53 AM
json post syntax Hedroom HS3 / HS3PRO Discussion 8 June 16th, 2016 01:26 PM
json request device value Malosa HS3 / HS3PRO Discussion 12 February 5th, 2016 10:57 PM
New Feature Request JSON gerlin HS3 / HS3PRO Discussion 0 May 2nd, 2015 06:36 PM
How do you purchase pjcOutlook after trial period? Gary pjc Outlook 2 January 14th, 2007 12:15 PM


All times are GMT -4. The time now is 07:42 AM.


Copyright HomeSeer Technologies, LLC