Hi!
The blinds that we have installed at home work with Home Assistant, but only for Up/Down. It would be great if the integration can be extended to do the tilting too.
Using the (undocumented) API, I found out that getting the state of the cover includes the tilt position in the JSON response. Sending a request with the value adjusted, does indeed tilt the blinds.
PUT
to <powerview-hub>/api/shades/<shade-id>
:
Tilt one side (sun blocking):
{
"shade": {
"positions":{
"posKind1":1,
"position1":0,
"posKind2":3,
"position2":0
}
}
}
Tilt one side (let sun through):
{
"shade": {
"positions":{
"posKind1":1,
"position1":0,
"posKind2":3,
"position2":65535
}
}
}
Setting the position2
to 32767 makes the blinds tilt 50%.
The model that my shades are, seem to be indicated by "type": 51
in the JSON response. Not all blinds will support tilting, and I only have a single model available for testing. So identifying which models support Tilting is something I can not help with.
Unfortunately I am not experienced with the internals of Home Assistant, so adding support for tilting in the existing Hunter Douglas PowerView integration will be (too) time consuming. I am happy to try any enhancements (ideally available as container image), and am open to financially support a contributor to add the functionality upstream (make me a reasonable offer ).