Q: How to bind door or cover to specific state?
Closed this issue · 3 comments
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.
- entity: binary_sensor.garazova_vrata_kontakt
type3d: hide
object_id:
hide:
state: 'on'
But how to provide the state to cover?
- entity: binary_sensor.garazova_vrata_kontakt
type3d: cover
object_id:
cover:
pane:
side: up
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.
Thank you for explanation.
And what are all the acceptable values for door and what for cover?
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