home-assistant / ui-schema

A schema to define a user interface for Home Assistant.
Apache License 2.0
41 stars 6 forks source link

Allow picture-entity (or other) cards inside glance cards #133

Closed arsaboo closed 6 years ago

arsaboo commented 6 years ago

Glance cards allow dividing the row nicely in smaller groups. However, glance card is currently limited to only entities. It will be nice if we can allow using other cards inside glance. That will make something like the following possible (assuming the buttons can be assigned to service call): image

I tried picture-entity in a horizontal-stack and the result is not ideal (as they appear as separate cards): image

balloob commented 6 years ago

I don't think that we should abuse glance card for this. I also think that if the use case is only remotes, we should consider adding a remote card?

iantrich commented 6 years ago

Picture Elements solved this use case for me, but was not nearly as easy to create.

If we ever get to the point where we have a UI editor for picture elements that allows for drag and drop editing, which I would think is one of our end goals, I think a specific card is unnecessary

arsaboo commented 6 years ago

@balloob the remote was just an example. I think there are other uses for this. Consider another example, here's a glance card I created for one of my thermostats:

image

Instead of having just those entities, I would much rather have other custom cards, e.g,, a gauge card or a thermostat card. That will allow us to include cards such as: image

I am looking at the glance card as just a way to organize information. It is slightly better way to organize cards than the horizontal stack card (which results in unnecessary white space), but essentially has the same utility.

I understand if it is something we don't want to implement now. but I still feel there is some value to this functionality.

balloob commented 6 years ago

So like a horizontal stack but wrapped inside a card? I think the issue is that right now, we don't have any built in widgets that would work with. The examples you use are all custom ones.

arsaboo commented 6 years ago

Actually, we could even use picture-entity card inside Glance (for status or for controlling other entities). I think @helto even wrote a custom card to achieve something what I have in mind image

I was hoping that we should be able to do that with Glance.

helto4real commented 6 years ago

I totally support this idea too. Would be great to achieve this.

balloob commented 6 years ago

Stop calling it glance. Come up with a new proposal for a card.

balloob commented 6 years ago

I'm going to close this issue. In the current request, adding things to Glance, is not going to happen. The ideas in this issue are also all over the place, making this issue unusable. I'll close it and you can open a new one that is narrower scoped.