thomasloven / lovelace-layout-card

🔹 Get more control over the placement of lovelace cards.
MIT License
1.05k stars 125 forks source link

Show / Hide based on entity state #269

Open pacmac opened 8 months ago

pacmac commented 8 months ago

I have looked through the open and closed issues but did not find a similar request.

Is it possible to show / hide a card based on an entity state instead of media query, similar to card-mod ?

Thanks

Nick2253 commented 7 months ago

In theory, could show be extended to support a template option? That would allow for a much more robust options for showing/hiding cards.

https://github.com/thomasloven/lovelace-layout-card/blob/b63bf93daf166609ededbafc7b31a6e5d88037c3/src/layouts/base-layout.ts#L48