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.
http://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 (
http://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