Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Home Assistant (MDI) icons in template widgets #4135

Open
mthmulders opened this issue Jan 14, 2024 · 8 comments
Open

Support for Home Assistant (MDI) icons in template widgets #4135

mthmulders opened this issue Jan 14, 2024 · 8 comments
Labels
enhancement New feature or request widget

Comments

@mthmulders
Copy link

Is your feature request related to a problem? Please describe.
I would like to have a compact widget on my homescreen, with as much information as possible. Now, I "lose" quite some real estate because of text (labels).

Describe the solution you'd like
I feel it might be nice if we could include icons in the home screen widget, e.g. using <ha-icon icon="mdi:{{ states('sensor.weather_icon') }}"></ha-icon>.

Describe alternatives you've considered, if any
A larger widget - eventually, the screen size of the phone is finite :-).

Additional context

@mthmulders mthmulders added the enhancement New feature or request label Jan 14, 2024
@jpelgrom
Copy link
Member

Just to clarify: are you talking about the template widget, and/or other widgets?

If so, there is already a very similar request for Wear OS: #3702 (though technically the tile is quite different so not a duplicate). Also something you may not have considered: you can also use emoji in the template tile.

@mthmulders
Copy link
Author

Ah, good question! I meant the template widget, where I can create some HTML and have it rendered on the home screen.

Also something you may not have considered: you can also use emoji in the template tile.

Didn't consider that one indeed, as I wasn't aware of the possibility. It could be of partial help, but I guess that having the same icons as elsewhere in Home Assistant provides a more streamlined experience, right?

@jpelgrom jpelgrom changed the title Support for Home Assistant icons in Android Home Screen widgets Support for Home Assistant (MDI) icons in template widgets Jan 14, 2024
@dunxd
Copy link

dunxd commented Jul 19, 2024

Also interested in this. Emojis are a sort of workaround, but the design is often not nice. It would be nice if the template tile supported the ha-icon tag like the markdown card.

<ha-icon icon="mdi:home-assistant"></ha-icon>

@Lesquishy
Copy link

I'm all for this. Aside from Emojis, has anyone found a 3rd party app or workaround for this? Would love a mini info dashboard on my home screen so I don't have to open the app.

@dunxd
Copy link

dunxd commented Jul 23, 2024

The MDI icons assigned to entities are already shown in the Shortcuts tile, so it is possible to display them in a tile.

@DJ-CrossFade
Copy link

Just to clarify: are you talking about the template widget, and/or other widgets?

If so, there is already a very similar request for Wear OS: #3702 (though technically the tile is quite different so not a duplicate). Also something you may not have considered: you can also use emoji in the template tile.

Actually I think what he's asking for what be great on the service call widget as well. If we could template the icon on the service call widget so the icon can follow a state that would be phenomenal.

@dshokouhi
Copy link
Member

Actually I think what he's asking for

the OP already answered that in #4135 (comment)

for your other request (which is unrelated to this one) I thnk you want to follow #1013

@dreimer1986
Copy link

Regardless if template or entity state widget, I have a nice example for a use case here.

Before I used Nightscout on my NAS and xDrip on my phone to track my blood sugar values. xDrip connected to LibreView and passed it to Nightscout for a way to get it into HA. On my watch I had the companion app or xDrip itself to show the values on my watch face, both with value and trend as symbol.

Recently I added Freestyle LibreLink as custom component to Home Assistant and show my blood sugar value on my watch and phone by widget now. As already mentioned on watch I have the entity icon which shows an arrow with the trend of my value, so a perfect and way silmpler replacement for this monstrosity I used before.

On Android this seems to not work, but really would be a nice to have. Even better would be a lil diagram as widget or notification as xDrip was able to, but this is nothing for this report here. The symbol alone would be a real milestone to use the widget for this purpose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request widget
Projects
None yet
Development

No branches or pull requests

7 participants