restriction-card
restriction-card copied to clipboard
[FR] Support auto-entities card
Is your feature request related to a problem? Please describe. Cannot combine restriction-card with auto-entities card
Describe the solution you'd like Been able to lock a row from a list generated by auto-entities
Describe alternatives you've considered None so far
Additional context
@iantrich, do you may consider the proposed FR ?
Simone
To use this card with auto-entities you can leverage this.entity_id
:
This for example creates a grid of restricted light cards for all you lights:
type: custom:auto-entities
card:
type: grid
columns: 3
card_param: cards
filter:
include:
- domain: light
options:
type: custom:restriction-card
card:
type: light
entity: this.entity_id
exclude:
- state: unavailable
- state: unknown
Ref: https://github.com/thomasloven/lovelace-auto-entities#entity-options
Finally found the tie to test your suggestion and with a bit of work I got it working as expected. Thank you very much for your help !
Simone