Vera - Smarter Home Control Forum

General => Blinds & Window Covering Control => Topic started by: mike Q on January 01, 2016, 12:45:47 am

Title: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: mike Q on January 01, 2016, 12:45:47 am
http://youtu.be/ywuBRNFwOHQ

I can share the details if anyone is interested.

Not really hard.  I use the Amazon Echo / Vera bridge to trigger scenes on Vera.  Those scenes just use the URL interface of the Hunter Douglas PowerView hub.
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: Lonestar10 on January 10, 2016, 05:51:41 pm
Cool.  Have you been able to get Hunter Douglas PowerView hub to work directly with Vera?    It seems no one has been able to crack that code.
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: EgermPA on January 28, 2016, 08:32:36 pm
So, how did you get that to work?    What's the secret, Mike Q?
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: mike Q on February 23, 2016, 09:16:03 am
Yes I have vera talking directly to the PowerView hub.  There's a simple URL interface that you can use to have Vera send a URL to the PowerView Hub via luua code.

The video is showing Echo triggering a scene on Vera.  In that scene, Vera sends a URL command to the PowerView hub.
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: mike Q on February 23, 2016, 03:57:19 pm
Here's a quick write up.

You should have already created some scenes on your PowerView hub.  I had open and close scenes for all my blinds as well as some partial open scenes.

Find your hub's IP Address.  I found mine by logging into my router and looking at the devices.

Let's say mine was 192.168.0.255


Once you have the IP, go to http://Let's say mine was 192.168.0.255/api/scenes.

You'll see something like this:


{"sceneIds":[22215,12744,29368,30096,127,29335,41952],"sceneData":[

{"id":22215,"name":"RmFtaWx5IFJvb20gT3Blbg==","roomId":17513,"order":0,"colorId":3,"iconId":0},
{"id":12744,"name":"RmFtaWx5IFJvb20gQ2xvc2U=","roomId":17513,"order":1,"colorId":9,"iconId":0},
{"id":29368,"name":"RmFtaWx5IFJvb20gUGFydGlhbA==","roomId":17513,"order":2,"colorId":8,"iconId":0},
{"id":30096,"name":"TGl2aW5nIFJvb20gT3Blbg==","roomId":51456,"order":3,"colorId":3,"iconId":0},
{"id":127,"name":"TGl2aW5nIFJvb20gQ2xvc2U=","roomId":51456,"order":4,"colorId":9,"iconId":0},
{"id":29335,"name":"QmVkcm9vbSBPcGVu","roomId":47482,"order":5,"colorId":3,"iconId":0},
{"id":41952,"name":"QmVkcm9vbSBDbG9zZQ==","roomId":47482,"order":6,"colorId":9,"iconId":0}]}

There should be an entry for each scene you created with the PowerView app.

Next go to a web browser and try each of the "id" numbers with the following URL.

http://192.168.0.255/api/scenes?sceneid=  <---enter a scene id here like below

http://192.168.0.255/api/scenes?sceneid=22215 and see what happens.  A blind should open or close or do nothing if it is already in the position the scene is trying to set.
Through trial and error, I figured out what each "id" did and wrote it down.

Next, I created scenes on Vera for each scene I had on the PowerView Hub.

Each scene just consists of some luaa code that essentially sends the same url.

So for the first entry in the table, (id 22215) I created a scene in vera called "open family room"

In that scene I added the following luaa code:

local timeout = 5

local status, result = luup.inet.wget("http://192.168.0.19/api/scenes?sceneid=41952", timeout)


And that's about it.  Now in vera you can launch that scene and your blind will open. 

I used the Amazon Echo Philips Hub emulator that people are using here to control lights to control blinds as well.

The Philips Hub Emulator will have an entry for each scene and when Amazon recognizes the command, will execute the associated scene which will send the URL request to the PowerView hub and you'll have voice control.

Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: Wekurtz74 on March 13, 2016, 03:31:43 pm
http://youtu.be/ywuBRNFwOHQ

I can share the details if anyone is interested.

Not really hard.  I use the Amazon Echo / Vera bridge to trigger scenes on Vera.  Those scenes just use the URL interface of the Hunter Douglas PowerView hub.

Thanks for sharing this video.  If I may ask, how you do like this PowerView system?  It seems to provide far more shade and blind options than what Lutron's Serena does, and I am trying to decide which way to commit.  I was online searching for user review and the only one I could easily find was from AVSforum and the user did not seem very happy.  He had concerns about security, but also about having to have additional repeaters all over his house because of poor range and about inconsistent responses to commands by some shades.   Thanks in advance for any and all input on this inquiry.
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: mike Q on March 13, 2016, 07:27:21 pm
I like the PowerView system.  Having to have the repeaters is a minor issue.  They are small and can be put in innocuous places.  I have one in each room that has a blind and I don't have any dropped signals.   The phone app is pretty much crap.  It's got a clunky interface and I never us it.   I don't really need to open my blinds from any place on the planet anyway.  Having them controllable from Echo is really all I need.
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: XA44Owq26HxCq88 on December 24, 2016, 08:33:21 am
Mike Q - thanks for the code snippet. I've been using it successfully on a Veraplus with my HD Powerview shades for a few months. Other than some "ghosts" that activate the shades at random times occasionally, it works great!

I've got a question though. Having 8 shades, I've got 16 scenes (1 ea open and close). Is there a way to combine the code so that multiple the shades can operate from one scene? I've tried the obvious - adding the entire code again after the the last line, so it looks like this:

local timeout = 5

local status, result = luup.inet.wget("http://192.168.0.xx/api/scenes?sceneid=41952", timeout)

local timeout = 5

local status, result = luup.inet.wget("http://192.168.0.xx/api/scenes?sceneid=44730", timeout)

Sometimes it activates the first scene, sometimes the second scene, but never both scenes.

The reason for the whole exercise is that through the yearly cycle, I need the shades to open and close at different times, probably about 4 different sets of activity. Having 16 scenes in each set will make it difficult to activate/deactivate scenes. If I could combine them, it would make it much easier to switch over to a different set. (I live in a solar house and the window shades are critical to the effectiveness of the heating/cooling)

Any idea what the capacity of the VeraPlus is to store scenes?
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: mike Q on December 24, 2016, 02:43:06 pm
I'm doing exactly what you describe for controlling multiple shades.

example below.  I've never had it fail.  Is it possible you need more signal repeaters?  I ended up with 1 repeater in every room and 2 in one of my larger rooms.  The only time I've seen inconsistent behavior was when the PowerHub signal wasn't making it to the blinds.   You can watch on the hub and see each scene activate.  The blue light will flash in rapid succession followed by a slight pause then rapid flash, etc...  each rapid flash is a scene activating.   

Another option would be to create specific scenes that control multiple shades on the PowerView app.  Then you would activate just once scene on Vera.  However I suspect your problem is really signal integrity from PowerView Hub to the blinds.   Do you ever see scenes not activate when you initiate them from Vera (other than the multi-scene scenario)?


local timeout = 5

local status, result = luup.inet.wget("http://vera/api/scenes?sceneid=22215", timeout)
local status, result = luup.inet.wget("http://vera/api/scenes?sceneid=30096", timeout)
local status, result = luup.inet.wget("http://vera/api/scenes?sceneid=29335", timeout)
local status, result = luup.inet.wget("http://vera/api/scenes?sceneid=38011", timeout)



Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: XA44Owq26HxCq88 on January 01, 2017, 01:48:33 pm
Mike, thanks for the reply.

If I read your suggestion correctly, then here's your suggestion:

1 - In Vera, I should create an individual scene for each shade opening or closing (16 scenes total). No timing, etc. using the luup code that calls the individual shade open or close scene in the Powerview hub. Basically duplicating the same action calls in both hubs.

2 - In Vera, create a scene that uses Luua code to call multiple vera scenes, per your example, depending on which shades I want open.

So if I wanted to open all the shades in a sequence, not at the same time, how would I put a delay between the individual calls in the luup code? (I've got some power supply restraints that require the shades to NOT operate all at the same time)

local timeout = 5

local status, result = luup.inet.wget("http://vera/api/scenes?sceneid=22215", timeout)
DELAY 1 minute
local status, result = luup.inet.wget("http://vera/api/scenes?sceneid=30096", timeout)
DELAY 1 minute
local status, result = luup.inet.wget("http://vera/api/scenes?sceneid=29335", timeout)
DELAY 1 minute
local status, result = luup.inet.wget("http://vera/api/scenes?sceneid=38011", timeout)

This raises the question, couldn't I just put the delay in the luup code that I use to call the PowerView scenes per the following example?

local timeout = 5

local status, result = luup.inet.wget("http://192.168.0.xx/api/scenes?sceneid=41952", timeout)
DELAY 1 minute
local status, result = luup.inet.wget("http://192.168.0.xx/api/scenes?sceneid=44730", timeout)

As far as repeaters go, I've got one in each room, no more than 12' LOS (line of sight) from each shade. The PV hub itself is in another room, distant from the shades, but it does seem to work consistently as long as I'm not screwing around with Vera. I've got another, much closer location I could put the PV hub, but it is on the other side of a wall that has a microwave (about 18" direct line through the stud wall) and I would be concerned that the microwave might interfere with it and/or the VeraPlus hub.

On a HD specific subject, do you have any shades that occasionally drop out and stop responding? I've got one that seems to have a problem at least once a week. I don't know what causes it, but my solution was to have the shade system power supply plugged into a Zwave appliance module. I can turn that off (thereby powering down all the shades, but not the PV hub), wait 10 seconds, turn the Zwave module back on and the specific shade returns to responsiveness. (BTW I've got that Zwave module plugged into a UPS, so that when I lose power I can still operate my shades)
 
thanks for any help!
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: mike Q on January 01, 2017, 09:28:25 pm
I've not done anything with delays but I bet you could do it like this:

For each blind you'd have a call to luup.call_delay.  You'd make a function (OpenBlindWithDelay) that gets called each time the countdown timer fires.  This is the second parameter of luup.call_delay.  In this case it's 60 seconds, 120 seconds, 180 seconds... add as many as you need.

The third parameter is the scene ID for your PV Hub that you want to execute.  In the OpenBlindWithDelay function, we'll issue the http request to the PV Hub for the scene that gets passed as the first parameter to OpenBlindWithDelay.

I haven't tested this but I suspect it should work.  Let me know if it gives you any issue and I can make a test scene on my system and see what happens.

 luup.call_delay(OpenBlindWithDelay, 60,  22215)
 luup.call_delay(OpenBlindWithDelay, 120, 30096)
 luup.call_delay(OpenBlindWithDelay, 180, 29335)

function OpenBlindWithDelay(scene)
     local timeout = 5
     local status, result = luup.inet.wget("http://*yourip*/api/scenes?sceneid=" ... scene, timeout)
end


As for the HD issue with blinds not working.  I had one blind early on that stopped working and I thought the motor went bad.  The HD installer ordered me a new motor, popped it in an everything worked.  Then the new motor stopped working and I started to suspect it wasn't the motor.  I popped the old motor back in and to my surprise it worked.  What I've found is that when there is a power failure, the blind no longer knows what it's position is.  Was it 10% open, 90%, 100%?   When this happens, the blind stupidly just stops working.  I've also found that you can reset the blind and fix the issue by installing the PV app on a phone and doing the following:

You'll need to have all your blinds setup in the app.

Goto the "shades" menu.
On this menu select "advanced"
You'll get additional options:
"Recalibrate Shade"
"Clear Shade Memory"

Select "Clear Shade Memory" then select "Recalibrate Shade"

Hope this helps,

Mike
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: XA44Owq26HxCq88 on January 03, 2017, 12:28:10 pm
Well Mike, the code didn't seem to be liked by vera. The blue status bar up top shows:
"ERROR: Error in lua for scenes and events"

Here's the code I'm using, with my scene numbers and API filled in. What's weird is that when I call the scene the problematic blind closes, yet none of the scenes I've called in the code has anything to do with the problematic blind scene, which is listed as PV scene ID 1683!

 luup.call_delay(OpenBlindWithDelay, 60, 33275)
 luup.call_delay(OpenBlindWithDelay, 120, 32515)
 luup.call_delay(OpenBlindWithDelay, 180, 61689)

function OpenBlindWithDelay(scene)
     local timeout = 5
     local status, result = luup.inet.wget("http://192.168.x.x/api/scenes?sceneid=" ... scene, timeout)
end

BTW, I'm not familiar with LUUA, LUUP or similar languages. I dabbled in "BASIC" many years ago, so it took me a while to figure out that defining a function AFTER you've called it is the way it works in this language. Thanks for your help with this.

As far as the problematic shade, my solution, cutting off power via a zwave appliance switch, seems to work and I can do it remotely or on a timed basis, thereby solving the issue when I'm away from home. The next time the shade acts up, I'll try your PV app approach and see what happens.

I did notice that the problematic shade has a PV scene ID that is a very small number (1683), could that have any bearing on the shade's weirdness? Just a thought.

thanks
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: mike Q on January 03, 2017, 05:44:33 pm
I got carried away with the ... it's only ..

I'm not a LUUA coder either.  I work in C, Assembly and sometimes C++.  The only LUUA I've done is to do thinks with Vera.  Some day I should really sit down and educate myself fully.

Try the revised code:

 luup.call_delay(OpenBlindWithDelay, 60, 33275)
 luup.call_delay(OpenBlindWithDelay, 120, 32515)
 luup.call_delay(OpenBlindWithDelay, 180, 61689)

function OpenBlindWithDelay(scene)
     local timeout = 5
     local status, result = luup.inet.wget("http://192.168.x.x/api/scenes?sceneid=" .. scene, timeout)
end
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: XA44Owq26HxCq88 on January 03, 2017, 09:19:54 pm
Well Mike, I tried your edit (removed one of the periods before scene) and there was no movement of the shades. I watched the PV hub for the tell-tale flashing blue light, but it did not flash, just the steady blue light.
Though I no longer see Vera respond with an ERROR message.

Looking around I found, according to

http://wiki.micasaverde.com/index.php/Luup_Lua_extensions

the second parameter that is sent to the function is a string, not a number. Could that have anything to do with the non-responsiveness?

thanks again for your help
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: mike Q on January 03, 2017, 10:31:27 pm
OK, I actually made a scene and tried the code as opposed to just posting it here without trying.   ;D

This works.  The problem is the BOTH first and last parameters are strings.

Also, the function called by call_delay should technically return 0 for success.  It seemed to work without it but I added it just to be correct.

luup.call_delay("OpenBlindWithDelay", 60,    "33275")
luup.call_delay("OpenBlindWithDelay", 120,  "32515")
luup.call_delay("OpenBlindWithDelay", 180,  "61689")
 
function OpenBlindWithDelay(scene)
     local timeout = 5
     local string = "http://192.168.x.x/api/scenes?sceneid=" .. scene

     local status, result = luup.inet.wget(string, timeout)

     return 0
end
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: XA44Owq26HxCq88 on January 03, 2017, 11:46:41 pm
BINGO!! Thanks so much! The test run ran perfectly. The shades came down perfectly in sequence. I'll expand to code to include all 8 of the shades.

One further question - in doing my search for this ability, I ran into a number of comments about internal timers and having Vera reset itself and lose the timing of a currently running scene. Would that be an issue here if I was to have a time span of say an hour from start to end? My southern shades open up at about 20 minutes after sunrise, but my eastern shades, because of a solar obstruction, need to open about an hour later. Do I run the risk of Vera loosing track of where it is in the sequence?

Thanks again!

Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: mike Q on January 04, 2017, 09:38:07 am
Cool.  Glad it worked. 

The only time you need to worry about Vera resetting on delays is with Sleep() and I believe Wait().  These are blocking events and will cause Vera to think your luua code caused something to go off in the weeds.

call_delay spawns a worker thread and is not blocking the luua engine from execution.

In short, no, you don't need to worry about Vera resetting.

Take Care,

Mike

Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: XA44Owq26HxCq88 on January 04, 2017, 10:01:05 am
I've started to replace all the individual shade scenes with "master" scenes. I'm now having difficulty deactivating the old scenes - getting "Failed to save system configuration" error from Vera. Not sure what that's about, but I'll do my research on the forum and come up with a solution. Don't want to "wear out my welcome" with you.

Thanks again Mike
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: mike Q on January 05, 2017, 12:41:13 pm
I have a VeraLite running UI5 and a VeraPlus that is in the box.  I tried upgrading to UI7 and transferring over to the VeraPlus and so much was broken I just gave up on the VeraPlus.

One of the issues that made me give up on UI7/VeraPlus is the "Failed to save system configuration".   Apparently the LUUA parser on UI7 is buggy and there's a bunch of characters that you cannot have in your LUUA code or it causes the parser to choke.

Are you on VeraPlus or UI7?
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: XA44Owq26HxCq88 on January 05, 2017, 02:10:57 pm
Mike - I'm running a VeraPLus and UI17. (had a WINK, but abandoned it because of it's cloud scene execution)

I discovered that if I change the lines in the luup code in the particular scene I want to disable to all comments (adding the "--" in front of the code lines), I am now able to disable the scenes. Go figure!

I'm keeping the disabled Window Shade scenes in Vera until I feel comfortable that the delay code is going to be stable, probably a week.  Any idea of how I can check the amount of unused memory I've got in VP?

Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: mikeah007 on January 07, 2017, 11:54:47 am
Yes I am interested. How is it done?
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: mike Q on January 07, 2017, 01:03:24 pm
If you SSH into your Vera, you can check the amount of memory with the "free" command.

@XA44Owq26HxCq88   Does commenting out the code fix the "unable to save configuration" issue?  If so, it sounds like the parser error I mentioned.  There's something in the LUUA code that UI7 is not happy with.  I ran into this when I tried to upgrade.
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: mike Q on January 11, 2017, 10:28:12 am
If you SSH into your Vera, you can check the amount of memory with the "free" command.

@XA44Owq26HxCq88   Does commenting out the code fix the "unable to save configuration" issue?  If so, it sounds like the parser error I mentioned.  There's something in the LUUA code that UI7 is not happy with.  I ran into this when I tried to upgrade.

Look at post #4 in this thread.  It explains how to get the scene info from the PowerView hub and how to write Luua code to execute those scenes from Vera.
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: XA44Owq26HxCq88 on January 12, 2017, 10:06:27 am
MikeQ, not sure what your reference to message 4 means. I've got the code to access the HD hub scenes working properly

Anyway, with the outside temp finally going above my set point, the scene apparently worked and it DID NOT close the East shades as it is supposed to do.

Not sure if it's related, but later in the day, when the East shades were supposed to close (2 hours before sunset), they did NOT close. Strange. The rest of the scene LUUP code worked properly with all the other shades closing at their proper time, hence the code actually ran through the various delays  (luup.call_delay("CloseBlindWithDelay) over a 2 hour period.

Is there any chance that one LUUP code in one scene could be affecting another LUUP code in another scene? I've seen hints of that possibility when my errant shade (not the E Shades) gets closed when I modify and save any of my scenes that have LUUP code in them.

We'll see what happens this afternoon.

I've got Vera Support involved and they will be doing a check on my unit at some point.

thanks again.
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: mike Q on January 13, 2017, 12:19:01 am
MikeQ, not sure what your reference to message 4 means. I've got the code to access the HD hub scenes working properly

Anyway, with the outside temp finally going above my set point, the scene apparently worked and it DID NOT close the East shades as it is supposed to do.

Not sure if it's related, but later in the day, when the East shades were supposed to close (2 hours before sunset), they did NOT close. Strange. The rest of the scene LUUP code worked properly with all the other shades closing at their proper time, hence the code actually ran through the various delays  (luup.call_delay("CloseBlindWithDelay) over a 2 hour period.

Is there any chance that one LUUP code in one scene could be affecting another LUUP code in another scene? I've seen hints of that possibility when my errant shade (not the E Shades) gets closed when I modify and save any of my scenes that have LUUP code in them.

We'll see what happens this afternoon.

I've got Vera Support involved and they will be doing a check on my unit at some point.

thanks again.

The #4 reference was to mikeah007.  He was asking how to automate his shades.

Strange.  I can't imagine it's the code.  Perhaps the vera is in the middle of doing something when the timer expires and it misses the event?  Looking at the logs when the delays fire might help.   
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: XA44Owq26HxCq88 on January 13, 2017, 10:12:36 am
Just an update -

My E Shades operated properly yesterday. They DID NOT close at noon when the temp was above the set point (30 deg). They DID close later in the day as part of their normal closing sequence.

I attribute this to what appears to me as a typical Vera response to scene modifications - Wait 24 hours so everything settles down and then look at the performance. This makes troubleshooting a long process!

I'll investigate how to see the logs. That would help.
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: XA44Owq26HxCq88 on February 12, 2017, 10:26:32 pm
Mike Q,

Finally got my conditional temp code working. I've had some other difficulties with my HD Hub I believe. It won't run a HD scene based on sunset or sunrise. Other issues, like shades needing power cycling, etc. have continued. I've been in touch with the HD tech people who have helped, but are stymied by my various issues.

To make a long story short, I've replaced the HD Hub with a new one, reprogrammed the whole setup, rewrote all my vera code to reflect the new scene numbers. All seems to be working, but I haven't gone through a whole 24 hour cycle yet.

I did experience one hickup, two shades in one HD scene stopped responding and needed re-calibration via the HD App before they worked again.

My question to you is - have you found any clever way of having vera, via LUUA code, send a re-calibration command to a specific HD Shade? I could build that into a scene that runs once a day, just to insure that the shades don't go off line while I'm away.

thanks

PS - When I speak to the HD tech, I'll see if he can shed any light on the issue and the potential command that would do the re-calibration and share what I find out here.
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: mike Q on February 12, 2017, 10:49:58 pm
Don't know of any way to do a re-calibrate from Vera but I'm sure it's possible.  Since it can be triggered from the app, there must be an HTTP interface for it.

It will be interesting to know if HD will share the URL api with you.

BTW, I stumbled upon a way to backup the HD hub in the event you lose your configuration or it gets corrupted.  It's in the menu options of the app but not very obvious.

When you bring up the app, click on the 3 horizontal bars in the upper left corner.

From there select "Hunter Douglas Blinds" then click on the first (and probably only) selection.   Next you will see a menu with "Hub Name", "Network Info" and "Hub Backup".

Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: XA44Owq26HxCq88 on February 13, 2017, 09:09:33 am
On the backup thing, more importantly, you are able to email a copy of the json file to yourself for safe storage in case the phone goes kapluey.

I've examined the contents of that file, but other than a few identifiable words, roomVectors,  shadeVectors, etc. it's all gibberish to me.

BTW, no problems overnight with the shades. I'll see how they perform thru the day.
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: blindman75 on March 05, 2017, 10:52:28 am
http://youtu.be/ywuBRNFwOHQ

I can share the details if anyone is interested.

Not really hard.  I use the Amazon Echo / Vera bridge to trigger scenes on Vera.  Those scenes just use the URL interface of the Hunter Douglas PowerView hub.
I am a Hunter Douglas dealer. There are changes coming to Powerview later this year. We will be getting a new hub that will work directly with Amazon Echo  and Alexa devices and integrate easier with HA systems.

Sent from my SM-G925V using Tapatalk

Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: XA44Owq26HxCq88 on March 05, 2017, 08:40:35 pm
blindman75

Glad to hear that they are doing something with the hub. I had major problems that cleared up once I convinced HD to replace my hub. I've since gotten an email from my dealer that said her rep indicated that the current hub has been "problematic"

Will the new hub be able to be controlled from my vera without having to write code?
Will the new hub have any kind of log reporting capability?
Will the new hub be backwards compatible with my current shades?
Will HD replace my current hub with a new "upgraded" one?

If you have any further insight into the new hub, I'd love to hear about it!
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: blindman75 on March 05, 2017, 09:33:08 pm
blindman75

Glad to hear that they are doing something with the hub. I had major problems that cleared up once I convinced HD to replace my hub. I've since gotten an email from my dealer that said her rep indicated that the current hub has been "problematic"

Will the new hub be able to be controlled from my vera without having to write code?
Will the new hub have any kind of log reporting capability?
Will the new hub be backwards compatible with my current shades?
Will HD replace my current hub with a new "upgraded" one?

If you have any further insight into the new hub, I'd love to hear about it!
The new hub will be compatible with your current shades using Powerview. I doubt  they will offer to swap out your old unit. I don't have any specifics yet about working directly with vera, but should have more info sometime in April.

Sent from my SM-G925V using Tapatalk

Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: XA44Owq26HxCq88 on March 05, 2017, 10:05:54 pm
If it meant getting a more capable hub, I'd be happy to do some MORE trouble shooting!

Any idea if they are going to be coming out with a powerview II (?) shade?
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: blindman75 on March 06, 2017, 09:16:31 am
My understanding is the hub is the only thing changing for now.

Sent from my SM-G925V using Tapatalk

Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: mike Q on March 07, 2017, 10:34:28 pm
As much as HD charges for their blinds, it's unfortunate that they wouldn't upgrade the people that bought into the original and somewhat flakey system.
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: XA44Owq26HxCq88 on March 11, 2017, 12:37:18 pm
Well, it started again on Friday. After about a month of flawless operation with a replacement hub (and the consequent rebuilding of the setup) one shade (Kit E) needed power cycling before it would respond to commands. This morning a different shade (DR S) needed power cycling before it would respond to commands. Sometime this morning that same shade (DR S) decided to close on it's own. It was not scheduled to close until this evening.

I contacted my dealer (with a CC to the HD tech who helped last time) and the dealer responded with "Thanks for the update". I've searched for other forums on the Hunter Douglas blinds where owners can discuss issues, but couldn't find any. Does anyone know of any?

Blindman75 - I know you're not involved directly, but as a dealer, have you run into this kind of flakiness? PM me if you would be willing to share some tips and/or discuss this in a non-public way, but I'd really like to get your take on this, if you don't mind.

thanks
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: nutshellml on April 13, 2017, 12:07:25 pm
As much as HD charges for their blinds, it's unfortunate that they wouldn't upgrade the people that bought into the original and somewhat flakey system.

@blindman75

So I am in the market for cellular shades/blinds and also considering cellular vertical blinds/shades.  Actually just got a quote from a Hunter Douglas dealer today.  I didn't ask for motorized quote as I wanted to see how well it integrates with HA / Vera. And also concerned about the cost for motorizaation...

 Question:
1) If I do go with motorized/hub, should I hold off until more info is available on the new Hub you mentioned?
2) Off topic blind/shade question - Since you're an uninterested 3rd party - I have kids, 3 and 1yr old.  Will they destroy a vertical cellular shade on a slider door?  Or would you go with the verticle panels?

THANKS!!!
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: blindman75 on April 13, 2017, 09:57:43 pm
As much as HD charges for their blinds, it's unfortunate that they wouldn't upgrade the people that bought into the original and somewhat flakey system.

@blindman75

So I am in the market for cellular shades/blinds and also considering cellular vertical blinds/shades.  Actually just got a quote from a Hunter Douglas dealer today.  I didn't ask for motorized quote as I wanted to see how well it integrates with HA / Vera. And also concerned about the cost for motorizaation...

 Question:
1) If I do go with motorized/hub, should I hold off until more info is available on the new Hub you mentioned?
2) Off topic blind/shade question - Since you're an uninterested 3rd party - I have kids, 3 and 1yr old.  Will they destroy a vertical cellular shade on a slider door?  Or would you go with the verticle panels?

THANKS!!!
PM  sent

Sent from my SM-G925V using Tapatalk

Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: Don Phillips on April 14, 2017, 06:36:15 pm
As much as HD charges for their blinds, it's unfortunate that they wouldn't upgrade the people that bought into the original and somewhat flakey system.

@blindman75

So I am in the market for cellular shades/blinds and also considering cellular vertical blinds/shades.  Actually just got a quote from a Hunter Douglas dealer today.  I didn't ask for motorized quote as I wanted to see how well it integrates with HA / Vera. And also concerned about the cost for motorizaation...

 Question:
1) If I do go with motorized/hub, should I hold off until more info is available on the new Hub you mentioned?
2) Off topic blind/shade question - Since you're an uninterested 3rd party - I have kids, 3 and 1yr old.  Will they destroy a vertical cellular shade on a slider door?  Or would you go with the verticle panels?

THANKS!!!
PM  sent

Sent from my SM-G925V using Tapatalk

It helps the group if this were shared with everyone.
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: blindman75 on April 14, 2017, 07:14:47 pm
As much as HD charges for their blinds, it's unfortunate that they wouldn't upgrade the people that bought into the original and somewhat flakey system.

@blindman75

So I am in the market for cellular shades/blinds and also considering cellular vertical blinds/shades.  Actually just got a quote from a Hunter Douglas dealer today.  I didn't ask for motorized quote as I wanted to see how well it integrates with HA / Vera. And also concerned about the cost for motorizaation...

 Question:
1) If I do go with motorized/hub, should I hold off until more info is available on the new Hub you mentioned?
2) Off topic blind/shade question - Since you're an uninterested 3rd party - I have kids, 3 and 1yr old.  Will they destroy a vertical cellular shade on a slider door?  Or would you go with the verticle panels?

THANKS!!!
PM  sent

Sent from my SM-G925V using Tapatalk

It helps the group if this were shared with everyone.
Spoke with my HD rep today. They get their hubs around May 1. Should be ready for consumers by late June early July. Rep is not as knowledgeable about the home automation side but said there  would be an improvement.

Sent from my SM-G925V using Tapatalk

Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: Don Phillips on April 14, 2017, 08:02:04 pm
Thanks for sharing.  I am not in the market for blinds yet, but I am leaning towards HD if it means easier integration.
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: hgmobile on June 19, 2017, 03:44:45 pm
Is there any update as to arrival of new improved hubs?
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: fitz2380 on October 25, 2017, 10:52:10 pm
Yes.  I got an email from my Hunter Douglas representative that the new improved hubs were in.  She sent the email around October 2nd or so.  I do not have the blinds or hub yet as I was waiting for this new hub.  I am still researching to see if this is the way I want to go.
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: niharmehta on January 02, 2018, 03:48:05 pm
Is this still working for everyone?  Just installed a PowerView hub (new version) this weekend.  I am able to connect to send commands, however nothing happens with the blinds . I created scenes with the powerview apps and connecting to
Code: [Select]
http://192.168.X.27/api/scenes returns the expected scenes created:

Code: [Select]
{
    "sceneIds": [
        59603,
        13178
    ],
    "sceneData": [
        {
            "roomId": 12271,
            "name": "Q2YYc2UgQWxs",
            "colorId": 0,
            "iconId": 0,
            "id": 59603,
            "order": 0
        },
        {
            "roomId": 12271,
            "name": "T3ClbiBBbGw=",
            "colorId": 0,
            "iconId": 0,
            "id": 13178,
            "order": 1
        }
    ]
}

however, when I send an HTTP get to
Code: [Select]
http://192.168.X.27/api/scenes?sceneid=59603 or the other scene, nothing happens and just returns the same content as above.   Nest and Alexa integration seems to work fine.
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: wulften on January 10, 2018, 10:52:18 am
I have been playing around with the sc?ne Command and found you can also issue this:
http://192.168.x.x/api/shades?shadeid=46222 which result in:

{"shade":{"id":46222,"name":"S2V1a2VuIDI=","roomId":15924,"groupId":24565,"order":4,"type":8,"batteryStrength":190,"batteryStatus":3, "positions":{"position1":45941,"posKind1":1,"position2":26125,"posKind2":2}},"shadeData":[{"id":37580,"name":"V0sgMg==","roomId":64040,"groupId":1717,"order":5,"type":8,"batteryStrength":189,"batteryStatus":3, "positions":{"position1":47005,"posKind1":1,"position2":18259,"posKind2":2}}]}

Haven ?t found out yet how to position the shade at certain positions.
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: angelstar12 on January 19, 2018, 08:40:59 pm
Hi
I have the HD hub but is the original one and have set up a scene in vera to open and close the blind which works as expected.  However when I discover these scenes in Alexa nothing happens. 

Does anyone have any suggestions on what I need to look at here to fix this? 

I'm really new to this and just learning as I go so really appreciated any help I can get.

Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: wulften on January 26, 2018, 07:09:58 am
If you have searched devices in the Alexa app, did you see the new scenes? Otherwise you have to relogon in Vera and before you select your controller click on the upper right pull Down menu and select manage Alexa.
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: mcummings1 on March 10, 2018, 06:17:10 pm
I have tried both codes with scences?sceneid and shades?shadeid and get nothing. Anyone have any suggestions on how to get my powerview shades connected to my Veraplus system? i just had the hunter douglas system installed yesterday so i assume i have the new hub.
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: wulften on March 30, 2018, 07:01:14 am
Apparently you got reply from: http://PowerviewIp/api/scenes?
If you got the reply with scenids it is supposed to ativate the scene with http://PowerviewIp/api/scenes?sceneid=12345 in you local browser.
You do not mention if this is not working in your browser or in a vera scene.
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: mcummings1 on March 30, 2018, 08:00:52 am
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.
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: wulften on April 11, 2018, 03:19:25 am
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?
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: cw-kid on June 18, 2018, 05:52:11 am
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.

Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: filthyjason on June 20, 2018, 05:51:34 pm
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
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: wulften on July 06, 2018, 07:15:36 am
Ok, so I've done a bit of work here myself with a V2 Hub.

~Jason

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?
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: filthyjason on August 14, 2018, 08:10:34 pm
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.
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: Kmitchel on September 18, 2018, 10:18:49 am
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.
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: wulften on October 12, 2018, 02:26:06 am
but it doesn't do anything when you enter  http://192.168.2.210/api/scenes?sceneId=29976

I think you have the Powerview v2 hub? Seems to work only with the V1 hub :-\.
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: jbfoster on October 12, 2018, 04:47:53 pm
They sure are loud


Sent from my iPhone using Tapatalk
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: XA44Owq26HxCq88 on October 13, 2018, 11:59:17 am
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
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: XA44Owq26HxCq88 on October 23, 2018, 06:53:29 pm
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!


Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: wulften on November 01, 2018, 04:25:05 am
BUT... there is no way to make a static IP address if you are using the wifi connection to your router.
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.
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: XA44Owq26HxCq88 on November 01, 2018, 11:01:27 am
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).
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: XA44Owq26HxCq88 on November 01, 2018, 11:07:18 am
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.
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: wulften on November 06, 2018, 01:19:10 am
Mine is also wired, which allows me to set a static ip 8)
Seems to have been reset after a automatic firmware update :(
Title: Re: Hunter Douglas PowerView control with Vera and Amazon Echo
Post by: XA44Owq26HxCq88 on November 06, 2018, 01:44:41 am
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.