this post was submitted on 19 Nov 2023
18 points (95.0% liked)

homeassistant

11833 readers
7 users here now

Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io

founded 1 year ago
MODERATORS
 

I want to add a switch to my dashboard. But I don't just want it to be a button. When I add a card and select by entity, I can see a "preview" of exactly what I want it to look like (see below). But I cannot add that as a card. It doesn't matter what card I choose, it always looks different. I noticed the same for all sorts of other entities. I know I was able to have such a button in my dashboard some years ago, when I first played around with it. After a break I'm coming back to homeassistant and this is really frustrating me. Any help would be greatly appreciated.

top 3 comments
sorted by: hot top controversial new old
[–] venoft@lemmy.world 1 points 10 months ago* (last edited 10 months ago)

I think that bottom image is when you press the more information button (3 dots). It's the same with light dimmers and thermostats, you get more info and a different card.

I wish that style was also available just in the dashboard and not hidden behind buttons.

[–] Lifebandit666@feddit.uk 1 points 10 months ago* (last edited 10 months ago) (1 children)

It's not what you're asking for because you literally want to have the "more information" as your card but I agree it can be annoying having all sorts of tapping and stroking needed to achieve something simple, like turning on a light.

So I present this

I used https://github.com/thomasloven/lovelace-fold-entity-row along with "auto-entities" and a lot of time playing in yaml to make these cards, but once I had one made for lights, it was easy to just copy it and switch the entities out to make one for switches and media players.

Basically it's all the ON devices, followed by a fold out for each floor, which then has fold outs for each room on the floor.

I don't use it a lot anymore but it's still there, one line in my Dash

Edit, this is obviously with the one line unfolded, it all folds up under "all lights" and the switch for all the lights

[–] Terces@lemmy.world 1 points 10 months ago

It is not quite what I had in mind, but I'll still poke around, because I see a lot of YAML in my future...

What I was after was having a switch just like the one shown in the screenshot as a card in the Dashboard. All I can add is a button that changes the color. I know I can YAML it, but it still feels weird that an obvious nice solution is not readily available.