adizanni / floor3d-card

Your Home Digital Twin: aka floor3d-card. Visualize Home Assistant state and perform actions using objects in a 3D home model based on Three.js.
https://github.com/adizanni/floor3d-card
MIT License
448 stars 65 forks source link

Q: How to bind door or cover to specific state? #178

Closed keeema closed 4 months ago

keeema commented 5 months ago

Hi,

I am configuring garage door and gate and I would like to use cover functionality but I don't see any way how to control when it is open and when close.

Type hidden has hide.state for this purpose, e.g.

But how to provide the state to cover?

adizanni commented 5 months ago

Hello @keeema, when you define a cover you need to put an entity of the cover domain (not binary_sensor). If you use the cover domain, the card will automatically retrieve the state from the cover object open/close/percentage open, etc.

keeema commented 5 months ago

Thank you for explanation. And what are all the acceptable values for door and what for cover?

adizanni commented 4 months ago

Door is always associated to a binary sensor so, values are on and off. Cover is always associated to a cover entity and it uses the percentage open attribute to position the cover object at the right place