Posts: 696
Threads: 62
Joined: Jun 2010
Something has changed with my hacking around trying things. I tried PuTTy again and I don't get the command through to the Hub. Shade does not respond, and I get the !EE response indicating a problem. However, I can still get the proper response with ?SO which is the Scene detail.
I'll have to figure out what is going on before moving back to CQC testing.
Posts: 696
Threads: 62
Joined: Jun 2010
Hunter has given me the information to access the Hub with IP rather than Serial.  That's good since Gen 2 of the Hub only has IP access, no Serial.  I'm still on Gen 1, but the process is the same.
Here's what I get when I request what's in the Hub.  From this, I can figure out what the command should be to operate the Shade or Scene.
{"shadeIds":[63086,18232],"shadeData":[{"id":63086,"name":"U2hhZGUgMg==","roomId":57748,"groupId":54569,"order":0,"type":6,"batteryStrength":178,"batteryStatus":3},{"id":18232,"name":"U2hhZGUgMQ==","roomId":57748,"groupId":54569,"order":1,"type":6,"batteryStrength":175,"batteryStatus":3}]}
Hunter gave me a Base 64 decoder that tells me that "U2hhZGUgMg==" is Shade 1.
My question now is, how do I send this information from CQC to the Hub via IP?  Is there a driver available?
Deane
Posts: 696
Threads: 62
Joined: Jun 2010
I can also get the Scene information.  Each Scene determines whether it's an UP Command or Down Command.  In the string below, #8043 lowers the shades at Sunrise and #28541 raises them at noon when the sun goes off the windows.
The timers in the Hub are fine for sun control, but I want to be able to send them up or down from my CQC iPad so that when I start the home theater, in addition to everything else CQC does, it lowers the shades, or raises them as the need may be.
{"sceneIds":[8043,28541],"sceneData":[{"id":8043,"networkNumber":0,"name":"U3VucmlzZQ==","roomId":57748,"order":0,"colorId":10,"iconId":0},{"id":28541,"networkNumber":1,"name":"Tm9vbiBQb3dlclZpZXcgT3Blbg==","roomId":57748,"order":1,"colorId":3,"iconId":0}]}
Posts: 40,483
Threads: 491
Joined: Aug 2002
If it requires any complex formatting, and it looks like it will since they are using a JSON format, it would be better to have an actual driver. Can you send me the protocol document they gave you?
Dean Roddey
Explorans limites defectum
Posts: 696
Threads: 62
Joined: Jun 2010
I have requested a protocol document if one exists.  Meantime, I received the following information and tried it in my browser.  The Scene that the end number refers to executed and the shades performed the Scene as expected.  I only changed the URL and the SceneID # to my actual. 
"To activate the Scene, send:
   http://192.168.1.3/api/scenes?sceneId=36677
The response will come back telling which shades were activated in the Scene: {"shadeIds":[28813]}
Jim Langdon
Senior Sales Engineer
New Product Development"
Posts: 40,483
Threads: 491
Joined: Aug 2002
Ask him if he'd like to talk with me about supporting this product. I'd be happy to talk with him about it.
Dean Roddey
Explorans limites defectum
Posts: 696
Threads: 62
Joined: Jun 2010
(05-14-2018, 12:15 PM)Dean Roddey Wrote: If it requires any complex formatting, and it looks like it will since they are using a JSON format, it would be better to have an actual driver. Can you send me the protocol document they gave you?
The response I get is that it is this one:
http://cdn.hunterdouglas.com/static/prod...al_API.pdf
The same commands seem to work using IP.
Deane
Posts: 696
Threads: 62
Joined: Jun 2010
05-14-2018, 12:47 PM
(This post was last modified: 05-14-2018, 01:00 PM by Deane Johnson.)
(05-14-2018, 12:37 PM)Dean Roddey Wrote: Ask him if he'd like to talk with me about supporting this product. I'd be happy to talk with him about it.
Will do.
Deane
UPDATE: Message sent.
Posts: 696
Threads: 62
Joined: Jun 2010
Response is positive. Check your PM for a copy of the response and contact information.
Deane