Announcement

Collapse
No announcement yet.

How to tell if JSON is coming from HS4 vs HS3?

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

  • teverett
    replied
    Thanks for that link, it was very helpful. I've updated hsClient to support nearly all of the API's listed in that document. I've also added cliient support for the Z-Wave plugin APIs. You can get the latest here if it's helpful to you.

    https://github.com/teverett/hsclient

    Leave a comment:


  • lakehawk
    replied
    The PDF you give the link to is out of date. There are some new options and things to the API. You have to go find the SDK now to get to them. But don't try using the HS4 SDK to find the JSON api ... you need to go find the HS3 SDK and in there you can eventually find the JSON. The layout of the document is bad enough... but now you have to go on a snipe hunt to find the information. <sigh>

    https://help.homeseer.com/help/HS3SD...ling_with_json

    Leave a comment:


  • teverett
    replied
    Absolutely agree that a version header would be nice. I wrote hsClient based on this documentation. Do you know where there's a more recent version that documents the JSON API?

    https://homeseer.com/support/homeseer/HS3/hs3sdk.pdf

    Leave a comment:


  • lakehawk
    replied
    It turns out we can. The JSON api has a request you can make "getsessionconfig" that will return to some basic info including "hsVersion" that will tell you if it's HS3 or HS4. There is also another call that will give you only the HS version info... You have to dig to get the latest JSON api document as its embedded I believe somewhere... I wish they had just a nice easy to find download of the PDF. The documentation and where its located could use a better way to access it all in one place. But at the end of the day, its all tied to Windows way of doing thing regardless of what operating system they run it on. Sometimes there's just aren't enough rocks.

    What would have been great isis they had just bothered to add the version in the header for a "getstatus" or "getcontrol" JSON call ... it should not break anyone if that was added into the header... but instead we are treated to it forever only saying in the header that its HomeSeer version 1.0 and that version seems to be a constant that someone, somewhere believes is the gold standard of information.

    Leave a comment:


  • teverett
    replied
    I've looked too. It would be great to be able to get the HS version via the JSON API.

    Leave a comment:


  • lakehawk
    started a topic How to tell if JSON is coming from HS4 vs HS3?

    How to tell if JSON is coming from HS4 vs HS3?

    If we make a URL request for the JSON for getstatus or getcontrol how can we tell if the JSON is coming from an HS4 vs HS3 HomeSeer system? Either system has the Version number at the beginning of the JSON as 1.0

    I know I can use the getsessionconfig JSON request to get the HS system version, but wouldn't it make sense to include that in the JSON header with the requests. It would eliminate a network request just to know the HS system version it came from.
Working...
X