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

Can the mdi icon be exposed on the weather entity #279

Open
3 tasks done
Intecpsp opened this issue Aug 9, 2024 · 3 comments
Open
3 tasks done

Can the mdi icon be exposed on the weather entity #279

Intecpsp opened this issue Aug 9, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@Intecpsp
Copy link

Intecpsp commented Aug 9, 2024

Describe the feature

I see it is exposed on things like Precip Probability, Wind Gust, and Wind Speed. I also see an Icon setting I can configure, but this doesn't seem to match up to an mdi icon that I can use.

Home Assistant version

No response

Integration version

No response

Acknowledgements

  • I have searched this repository and API Repository to see if the feature has already been requested.
  • This featre request is sepecific to the HA Integration.
  • I have written an informative title.
@alexander0042
Copy link
Collaborator

Hi, thanks for opening this issue and using Pirate Weather!

I see your challenge here, and unfortunately the Home Assistant Weather Entity is somewhat limited in this regard. However, would using the "icon" sensor work? You can add it in using this integration, and might be exactly what you're looking for here. It doesn't correspond to the mdi iconsl however, the code to translate them is here, so that could be dropped into a template, depending on your use case.

@Intecpsp
Copy link
Author

I found that translation previously and had the template thought, but wanted to ask if it could be exposed on the weather entity for easier use. Could the Icon sensor expose the mdi as well? Or would I just need to stick to a template sensor?

@alexander0042
Copy link
Collaborator

This is a good one, but I'm not sure if it's supported by Home Assistant. The issue is that the weather entity uses a standard HA one , and so I don't know if it's supported for me to add additional properties to it? I'll give it a try and see what works.

In the meantime, the sensor entities really are made for this exact sort of situation! Icon is one of the properties exposed by the integration, so you can create icon sensors for current conditions, hourly, and daily forecasts!

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

No branches or pull requests

3 participants