Someone published the Powerview API using this API I was able to get the state of the blinds rather than just calling the scenes.
Code to display the position of the Hunter Douglas Blinds below
But I would like to see a slider implemented so that you could set them in Home Assistant rather than set using Scenes.
sensors.yaml
- platform: rest
resource: http://<IP ADDRESS OF BLIND HUB>/api/shades
name: Shade Positions
json_attributes:
- shadeData
value_template: "{{ value_json.value }}"
scan_interval: 20
main_shade_position:
friendly_name: Main Shade Position
icon_template: mdi:blinds
value_template: >
{% if states.sensor.shade_positions.attributes.shadeData[1].positions.position1 == 65535 %}
Open
{% elif states.sensor.shade_positions.attributes.shadeData[1].positions.position1 == 0 %}
Closed
{% else %}
{{ ((1 - (states.sensor.shade_positions.attributes.shadeData[1].positions.position1 / 65535)) * 100) | round(0) }}%
{% endif %}
kitchen_shade_position:
friendly_name: Kitchen Shade Position
icon_template: mdi:blinds
value_template: >
{% if states.sensor.shade_positions.attributes.shadeData[0].positions.position1 == 65535 %}
Open
{% elif states.sensor.shade_positions.attributes.shadeData[0].positions.position1 == 0 %}
Closed
{% else %}
{{ ((1 - (states.sensor.shade_positions.attributes.shadeData[0].positions.position1 / 65535)) * 100) | round(0) }}%
{% endif %}