Hunter Douglas PowerView Gen 3 integration

Any BLE adapter supported by HA or ESP Home proxy. All other questions I cannot answer yet, trying to figure out how HD wrote their protocol.

3 Likes

Wow i have been looking for someone who is attempting to try the same thing as me. I spent a full night trying to get things working, with sniffing, trying to write the characteristics with micropython and the library aioble but nothing has been working. Send me a message and im sure we can find a way to get something working if we work together.

1 Like

Anyone know if it would be possible in a future update for feedback on shade position to be sent to HA close to realtime? Currently there is a few second delay for a shade to report as opened or closed once it physically stops moving.

It is possible with the Server Sent Events (SSE) API. I set a listener to see events as they happened and seemed to work as expected. I’m not sure how to integrate that with Home Assistant as it requires a listener to always be running. Would be nice to have for sure.

Indeed. You may want to look at my code for the OpenHAB binding…

Did anyone get any progress with a BLE integration for the Powerview shades? @patman ? If anyone has started I would like to help finish it, if not then I might just start it up myself.

I did, I have it running in my home and I uploaded a state here:

I can check later today if I have some non-publish local updates. Basically it’s working within the limits. I’m currently together with @andrewfg investigating on how to solve the process of having the shades in the app and in HA in parallel in a user-friendly way.

If you have questions or comments, we probably should open a new thread for this.

EDIT: code is up-to-date as of today

A question about Bluetooth control. I’ve been following this thread and reading the posts regarding Bluetooth control. But I’m confused. I have Hunter Douglas blinds and I’m using the integration via their gateway. Can you explain to me the advantage of a Bluetooth integration other than I suppose not requiring the gateway?

Yup. That’s it.

1 Like

Hello @patman

I am about to order some Powerview 3 blinds as there is this offer until the end of the months (at least in France and Belgium).

Is there anything I can do to help you once they will be installed? I won’t get the expensive gateway, long term plan would be to be able to have the remote and HA able to control them.

Thank you.

Basically, I’m finished the basic functionality that I considered required. I just need testing and cleanup to make it a proper HACS integration.

Is there anything I can do to help you once they will be installed?

Well I would appreciate any feedback that you have if you intend to use it. (Installation, functionality, ease of use, stability, …) That will also motivate me to do some cleanup, because just for me it is not that important. :wink:
Maybe we should start an own thread for that or you just open an issue on github. Whatever you prefer.

Just for info: we already got the integration into openHAB with many thanks to the kind support of @patman.

My goal is always the same with Home Automation: be able to use the system if HA fails. So for the blinds: remote and HA. I don’t care much about their app as it’s bluetooth and I won’t get the gateway so if I have HA up I can use it or the remote (for my guests).

I should be ready to test thing hopefully in a month :slight_smile:

I have the gateway and it allows me with the App or HA to use it anywhere. Relying solely on bluetooth with its limited range is not a very good user experience. I have a big house and none of my blinds on my second floor are accessible via bluetooth on the first must less the basement level.

Also can do automations driven from HA, so I can one Away mode setting and blinds shut at night, open in the morning when not at home. Gateway might depend on how many blinds you have. I have 10, so not a big cost compared to all the blinds.

I have 4 blinds in my bedroom in my small apartment :slight_smile:

If you send me a gateway for free I am ok to use it :smiley: I believe it’s 300$… for 4 blinds that’s not worth it for me.

That is currently still an issue because it is not so easy to gather the “encryption” key so that you can use the remote and HA in parallel. Working on that, but it will need an ESP32 device to gather the key once.

Not an issue for me but having another way to get it would get less tech savvy folks to integrate.

Thanks for the answer.

Or you can use a Nordic Semiconductor nRF52840 USB flashed with their BLE sniffer firmware.

@msgq would you happen to be controlling the DuoLite Honeycomb shades, per chance? That’s what I have and I noticed that my scenes were not working predictably (specifically the ones relating to opening or closing the shades when they’re currently in a fully open or closed state). The gateway had no problem for some reason determining the current state (particularly when using the remote) but when using the gateway itself to them tell the shades to move to another position; it would simply be stuck unless I changed the middle bar, and then it’d decide to start moving the main position (bottom bar).

I think it might be boiling down to bugs in the gateway/shades relating to floating point comparisons (e.g. 0 != 0.00001). The reason why I suspect that to be the case was that I didn’t start to get reliably consistent results until I want all the way down to the API level (instead of using the app) and explicitly setting the position (e.g. via /home/shades/positions?ids=33,22,29) instead of trying to use the scene (e.g. /home/scenes/50/activate) and even then only when I was using position values of 0.999 for fully open and 0.005 for fully closed! Oddly 0.001 wasn’t working for closed, but 0.005 was just big enough to trigger a change.

For example, using curl via the command line:

# CURL command to put bedroom shades into the fully open position
curl -X PUT -H "Content-Type: application/json" -d '
{
  "positions": {
    "primary": 0.999
  }
}
' http://192.168.0.6/home/shades/positions?ids=33,22,29

I hope this helps someone else. I’m still debugging this and hope to maybe someday get this over to Hunter Douglas so they can fix their janky software bugs resulting in this issue. :sweat_smile:


Edit: Note that when using these slightly off floating points to set the open/closed state (i.e. 0.999 for open and 0.005 for closed) it does finally work to trigger changes, however, it unfortunately will not align precisely with scenes so the opened/closed scenes will not show as active (even though the shades are still effectively open or closed)

Blinds are installed and setup in the app (the person who installed it has to set them up and set up the remote as well).

Do you have guidance on how to get the “encryption” key? I am pretty handy using ESPs and whatnot.

IIUC you are working on this but it’s not in implemented in your [code(GitHub - patman15/hdpv_ble: A Home Assistant integration to support Hunter Douglas Powerview devices via Bluetooth) yet?