DBuit / Homekit-panel-card

Homekit panel card for home assistant
MIT License
304 stars 54 forks source link

Add support for showing current position for covers #114

Open jonasjeeliasson opened 3 years ago

jonasjeeliasson commented 3 years ago

Kept _renderCircleState default behaviour to use brightness for any type of entity, except for the new functionality for covers.

Examples with statePositionTop = true:

Screenshot 2021-05-06 at 13 16 09 Screenshot 2021-05-06 at 13 15 26 Screenshot 2021-05-06 at 13 15 06

Example with statePositionTop = false:

Screenshot 2021-05-06 at 13 16 02 Screenshot 2021-05-06 at 13 14 54
mattclair commented 2 years ago

Not exactly what you are requesting, but this can be accomplished.

icon: mdi:garage
offStates:
  - closed
offIcon: mdi:garage-closed
jonasjeeliasson commented 2 years ago

Not exactly what you are requesting, but this can be accomplished.

icon: mdi:garage
offStates:
  - closed
offIcon: mdi:garage-closed

Yeah that I figured out, it was used to generate the screenshots in the description as well :-)

What this PR adds is support for showing the precentage as well.