sander76 / aio-powerview-api

Async PowerView api wrapper for Python
BSD 3-Clause "New" or "Revised" License
12 stars 16 forks source link

Duette Duolite support #20

Closed lilyball closed 2 years ago

lilyball commented 2 years ago

I have Duette Duolite shades. These are different shades than the ones referenced in issue #10. My shades are functionally identical to type 8 top-down/bottom-up shades except they have a second fabric extending from the middle rail up to the top rail. I also have a type 8 tdbu and AFAIK my type 8 and type 9 shades control identically. I played with the API as well and the shades match the documented behavior for tdbu shades. Also the information returned by the API for Duette Duolite shades are identical to that returned for my Duette TDBU shade (except for the type value).

Given that I'm pretty sure that the only thing that needs to be done to support this is to declare ShadeTdbu as including type 9, "Duette, Duolite".

kingy444 commented 2 years ago

Can you please expand how the shades function with the api commands - The JSON for most blinds only accepts poskind1 and poskind2 from my experience

These shades efectively have 3 positions availalbe

Can you post the example api commands and what the position ends up being - ideally all positions are always in the API JSON so we can store them in HA for you see current branch pre-commit avaialble here https://community.home-assistant.io/t/adding-tilt-to-the-hunter-douglas-powerview-cover-integration-luxaflex/233720/99?u=kingy444

You can edit line 123 of cover.py to enable type 9 shades as tdbu and test the current code against this - i suspect your vane will not work Can you post some examples of the API commands you send and the resulting positions -

kingy444 commented 2 years ago

Assuming

Given that I'm pretty sure that the only thing that needs to be done to support this is to declare ShadeTdbu as including type 9, "Duette, Duolite".

I've hacked together as part of my current work to test functionality for you - could you test the custom component from here: https://community.home-assistant.io/t/adding-tilt-to-the-hunter-douglas-powerview-cover-integration-luxaflex/233720/99?u=kingy444