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

anyway to change the weather icon (condition) #12

Closed
rgogada opened this issue Jul 25, 2019 · 3 comments
Closed

anyway to change the weather icon (condition) #12

rgogada opened this issue Jul 25, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@rgogada
Copy link

rgogada commented Jul 25, 2019

I am from Australia and using BOM weather. Unfortunately the conditions they use are not complaint with HA conditions. eg: "Rain" instead of "rainy".

I have created an other template sensor to manipulate this condition to make it complaint with HA conditions but how can I override it on this card. I tried to set the custom state but it does not change the icon (does change the text though). anyway to change the icon? cheers.

@kalkih
Copy link
Owner

kalkih commented Jul 29, 2019

Not possible, could possibly add the ability to override the icon-state in the future, but imo the BOM component should be tweaked so that it follows the standard HA weather states

@kalkih kalkih added the enhancement New feature or request label Jul 29, 2019
@kflinderman
Copy link

Is it possible to just get the icon to follow whatever the state value is? I'm trying to create a forecast card, and I'm using a custom sensor with tomorrow's weather condition, but it looks like the icon follows what the original condition is.

@kalkih
Copy link
Owner

kalkih commented Aug 12, 2019

You can now override the variable the icon-state is based on with a custom sensor.

# example
- type: custom:simple-weather-card
  entity: weather.smhi_home
  custom:
    - icon-state: sensor.custom_state_sensor

Here are all the available icon states:

  • "clear-night"
  • cloudy
  • overcast
  • fog
  • hail
  • lightning
  • "lightning-rainy"
  • partlycloudy
  • pouring
  • rainy
  • snowy
  • "snowy-rainy"
  • sunny
  • windy
  • "windy-variant"
  • humidity

Is it possible to just get the icon to follow whatever the state value is? I'm trying to create a forecast card, and I'm using a custom sensor with tomorrow's weather condition, but it looks like the icon follows what the original condition is.

Yes, this is now possible if you follow the example above.

@kalkih kalkih closed this as completed Aug 12, 2019
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
None yet
Development

No branches or pull requests

3 participants