Hunter Douglas PowerView control with Vera and Amazon Echo

Sorry for lack of info. I’m getting a reply in my browser with the scene is but not getting any movement when putting the address with the scene I’d in my browser from the shade. All it does is pull up the same page as the http://IP/API/scenes? I don’t it for both scenes?scenid and shades?/shadeid and it yields the same result.

It seems there must be a difference in setup between the V1 and V2 hub, mine is still V1 and is working for the http part of scenes.
Perhaps you can ask the hunter douglas rep for this?

So does the Hunter Douglas v2 hub work with Vera? Do they still have an API for sending http commands to it ?

I see Hunter Douglas has IFTTT support, Vera can send webhooks to IFTTT to control devices.

Ok, so I’ve done a bit of work here myself with a V2 Hub.

Similar to the V1, you can pull the Scenes from the hub directly at http://hub.ip.addy.here/api/scenes - The Hub only encrypts this data in Base64 so you can easily determine the names with an online decoder https://www.base64decode.org/

You can see from the OP reply 4:
{“id”:22215,“name”:“RmFtaWx5IFJvb20gT3Blbg==”,“roomId”:17513,“order”:0,“colorId”:3,“iconId”:0},

just plug that Hash in (RmFtaWx5IFJvb20gT3Blbg - you don’t need the trailing =='s) & it comes out “Family Room Open”

I think w/ the newer Vera OS you have to enable WGET, which I didn’t want to do just yet.

I then used the scene ID number in the beginning with a CURL request. I’m guessing the Hub requires a lot of info in the request header, which I pulled from a Wireshark capture. I set all of those and built a manual scene to map it out.

Here’s the exact Luup code I set for one of my scenes. I just got this working yesterday so I haven’t tuned it but wanted to share in case anyone else needed the info. Ideally, it wouldn’t be an os.execute call either, but I’m quite the noob with Luup coding and this worked for now. My main hub has a DHCP reservation of 10.3.3.244 and I’m on Firmware 2.0.741 per the Hub about page.

os.execute(‘curl -i -H “Host: 10.3.3.244:80” -H “Content-Type: application/json” -H “Accept: application/json” -H “User-Agent: PowerView/7245 CFNetwork/901.1 Darwin/17.6.0” -H “Accept-Language: en-us” -H “Accept-Encoding: gzip, deflate” -H “Connection: keep-alive” http://10.3.3.244/api/scenes?sceneId=47478’)

Something odd I found with the wireshark capture, a Scene request is just an HTTP GET, but an individual blind control is an HTTP PUT. Perhaps because it sets the position too. I’m happy to share up a wireshark of these events if anyone wants to look through them, the requests are all unencrypted clear text other than the Base64 hash entries.

~Jason

[quote=“filthyjason, post:53, topic:190379”]Ok, so I’ve done a bit of work here myself with a V2 Hub.

~Jason[/quote]

Thanks for this info, as I am a total noob can you share a curl command with an example on how to set a blind with certain top bottom margins?

Looks like I had notifications off on this thread. Anyway, I am only using this currently for full up or full down control. I haven’t looked into doing a partial as that’s per window vs per scene. The scene method was a lot easier to get going, and I suppose you could create a bunch of scenes for individual windows, perhaps at various heights too.

I’ll poke around more with this in a few days hopefully.

Has anyone run into the issue where you can get the scene IDs using

http://192.168.2.210/api/scenes

but it doesn’t do anything when you enter

http://192.168.2.210/api/scenes?sceneId=29976

from Chrome or Edge?

I deleted all of my scenes and created one scene to open the blind. I’ll have the blind in the close position and enter the URL with the scene ID and nothing happens.

I think you have the Powerview v2 hub? Seems to work only with the V1 hub :-.

They sure are loud

Sent from my iPhone using Tapatalk

reading this conversation, I’m gathering that there are differences in HD Hub 1 and HD Hub 2 when trying to call a scene via VeraPlus Lua code.

filthyjason seems to have gotten it working, but the “code” he/she posted is completely foreign to me.

I got a response to my question on another thread (HD Gen2 Hub and Vera) from a Vera rep looking for more info on the unit, saying he’d put in a request to support the unit. He couldn’t find any info on the unit and my Ver2 hub is not arriving until next week. If anyone has any information on the unit, please send in a request for support to Vera and maybe, maybe, they’ll do something.

meanwhile, if anyone has any suggestions on how to get the Ver2 hub working with Vera, I’m all ears. And if filthyjason is following this discussion, maybe he/she could point me in the direction to decipher/learn the code that he/she said was working for him. I’ve got 24 scenes from Powerview that I need to run from Vera.

thanks

Got my Gen 2 hub today and was able to successfully use a -

http://192.168.1.XX/api/scenes?sceneId=20659

command in LUA to execute a scene on the new hub.

NOTE: The command would not operate the scene if the letter I (eye) in ?sceneID= was a lower case i (eye) as was the case when sending this command to the Gen 1 hub.

BUT… there is no way to make a static IP address if you are using the wifi connection to your router.

BTW I only needed one Gen 2 repeater where the Gen 1 hub needed 3.

Hopefully this will be a successful strengthening of one of the links in my HA system!

This info will help Gen2 users I think, with Gen1 it is possible to set the Hunter Douglas hub to a fixed ip, I find it strange that the Gen2 hub cannot be set fixed.

Let me clarify the no static IP comment - the HD app does not have a function to make it a static IP when using the wifi connection. It does when you are using the cabled connection. I don’t know if you can work it from the other direction, ie having your router make a static IP address for the HD hub.

My hub is now hard wired, with a static IP assigned via the HD app and has been working very nicely. I rebooted the router just to check. The router reassigned all my IP addresses (and wrecked havoc with a wifi printer) except the HD Hub, which remained the same.

I believe the new hub/repeater resolved some of my issues with the HD system (so far).

BTW, I was remiss in not acknowledging Mike Q for the original posting of how to access the HD system via LUA code. Thanks Mike! If you had not done the work to discover this method, I would have been forced to rely on the rudimentary controls offered by the HD App.

Mine is also wired, which allows me to set a static ip 8)
Seems to have been reset after a automatic firmware update :frowning:

Wulften - Automatic firmware update??? The HD Gen2 hub does this? I’m away from home and have no way to determine this I think. If it has done this then all my Vera scenes will not be working. That stinks! I think I better activate my HD automations.

Has anyone figured out the http command to stop a shade?

Activating an HD scene works fine, but it would be nice to have the ability to stop a shade instantly.

I’d add it to my Imperihome page for my shades.

Found this on the web

Explains some of the commands for the hub (like how to calibrate a shade).

What I can’t figure out, in my programming ignorance, is how to structure a LUUP command to get Vera to send to the shade the command to calibrate, or anything else other than what Mike Q has provided us.

This would allow me to re-calibrate my shades remotely (while I’m not on my local network). The calibration command via the PV App is my stop-gap command to restore shades to working order. Not sure why they keep losing this information, but it happens all too frequently and they don’t come back without the 10sec press of the button on each shade or doing the re calibration via the app. That does not work while I’m away from home.

any help would be greatly appreciated.

Hi, i own a veraplus and also hubitat.

I am trying to get the v2 hub to work with hubitat but with no success. The hubitat community says it doesn’t work with v2.

Is the v2 hub definitely working with vera?

I reserved the IP address for the powerview hub.

Can someone help me out asap as I am at a client now?

If I goto a browser for the scene to close the drapes, i typed this but the drapes do not close.

Does it matter that the sceneid is all in lowercase? I read somewhere that sceneId needs to have the uppercase “I” in it?

http://192.168.1.45/api/scenes?sceneid=1283

{“sceneIds”:[58315,57093,1283],“sceneData”:[{“roomId”:29870,“name”:“T2ZmaWNlIFZhaW5zIE9wZW4=”,“colorId”:15,“iconId”:168,“networkNumber”:171,“id”:58315,“order”:2,“hkAssist”:false},{“roomId”:29870,“name”:“T2ZmaWNlIFVw”,“colorId”:15,“iconId”:168,“networkNumber”:61,“id”:57093,“order”:1,“hkAssist”:false},{“roomId”:29870,“name”:“T2ZmaWNlY2xvc2Vk”,“colorId”:15,“iconId”:168,“networkNumber”:140,“id”:1283,“order”:0,“hkAssist”:false}]}

Here is the log for this scene from hubitat:

dev:242019-09-20 01:41:22.458 pm debugCMD off()
dev:242019-09-20 01:41:21.848 pm warnparse() not implemented! Got: ‘mac:CCC079264752, ip:c0a8012d, port:50, headers:SFRUUC8xLjEgMjAwIE9LDQpYLVBvd2VyZWQtQnk6IEV4cHJlc3MNCkNvbnRlbnQtVHlwZTogYXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA0KQ29udGVudC1MZW5ndGg6IDQyOA0KRGF0ZTogRnJpLCAyMCBTZXAgMjAxOSAxNzo0MToyMCBHTVQNCkNvbm5lY3Rpb246IGtlZXAtYWxpdmUNCg==, body:eyJzY2VuZUlkcyI6WzU4MzE1LDU3MDkzLDEyODNdLCJzY2VuZURhdGEiOlt7InJvb21JZCI6Mjk4NzAsIm5hbWUiOiJUMlptYVdObElGWmhhVzV6SUU5d1pXND0iLCJjb2xvcklkIjoxNSwiaWNvbklkIjoxNjgsIm5ldHdvcmtOdW1iZXIiOjE3MSwiaWQiOjU4MzE1LCJvcmRlciI6MiwiaGtBc3Npc3QiOmZhbHNlfSx7InJvb21JZCI6Mjk4NzAsIm5hbWUiOiJUMlptYVdObElGVnciLCJjb2xvcklkIjoxNSwiaWNvbklkIjoxNjgsIm5ldHdvcmtOdW1iZXIiOjYxLCJpZCI6NTcwOTMsIm9yZGVyIjoxLCJoa0Fzc2lzdCI6ZmFsc2V9LHsicm9vbUlkIjoyOTg3MCwibmFtZSI6IlQyWm1hV05sWTJ4dmMyVmsiLCJjb2xvcklkIjoxNSwiaWNvbklkIjoxNjgsIm5ldHdvcmtOdW1iZXIiOjE0MCwiaWQiOjEyODMsIm9yZGVyIjowLCJoa0Fzc2lzdCI6ZmFsc2V9XX0=’
dev:242019-09-20 01:41:21.712 pm debugsendRequest: GET 192.168.1.45:80/api/scenes?sceneid=1283
dev:242019-09-20 01:41:21.709 pm infoHost for sendRequest: ${host}
dev:242019-09-20 01:41:21.707 pm debugCMD push(1283)
dev:242019-09-20 01:41:21.703 pm debugCMD on()
dev:242019-09-20 01:32:43.450 pm debugCMD off()
dev:242019-09-20 01:32:41.793 pm debugCMD off()
dev:242019-09-20 01:26:31.170 pm debugcalled setHubInfo() - hubMAC=null hubIP=192.168.1.45 hubPort=80 pvSceneId=1283
dev:242019-09-20 01:26:31.151 pm infoCMD installed()
— Loading Past Logs… —

Finally got a solution here: Doing a PUT command in LUA? - Scene Scripting - Ezlo Community