kalkih / simple-weather-card

Minimalistic weather card for Home Assistant
MIT License
285 stars 33 forks source link

Rain Probability #13

Closed eracknaphobia closed 4 years ago

eracknaphobia commented 5 years ago

It would be awesome if we could display the precipitation probability instead of amount.

kalkih commented 5 years ago

I could see that being useful!

I've not yet seen any weather component with support for rain probability though (haven't tried all). Does the one you use expose it?

eracknaphobia commented 5 years ago

Thanks for the quick response!. Yes, I use dark sky for weather:

 - platform: darksky
    api_key: !secret darksky_api_key
    scan_interval: '00:05:00'
    forecast:
      - 0
      - 1
      - 2
      - 3
      - 4
      - 5
      - 6
      - 7
    monitored_conditions:
      - summary
      - temperature
      - apparent_temperature
      - temperature_high
      - temperature_low
      - humidity
      - precip_probability
      - precip_intensity
      - precip_type
      - wind_speed
      - wind_bearing
      - pressure
      - icon
      - hourly_summary
      - daily_summary
      - nearest_storm_distance
      - nearest_storm_bearing
      - apparent_temperature_high
      - apparent_temperature_low
      - precip_accumulation
      - precip_intensity
      - precip_intensity_max
kalkih commented 5 years ago

Aaah, that's the dark sky sensor and not dark sky weather component, the weather component doesn't seem to support it unfortunately.

MatthewFlamm commented 4 years ago

The recently added nws integration supports precipitation probability. This is not currently a weather component supported key however, so if other integrations add it, there might be clashes.

https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/nws/weather.py#L53

kalkih commented 4 years ago

Cool, are you using that component? If so, would you mind sending me a screenshot of the attributes of that entity from /dev-state.

MatthewFlamm commented 4 years ago

I am using it, I am also the codeowner. Here is the requested screenshot of the attributes

Screenshot_20200117-200246

kalkih commented 4 years ago

Thanks, Alright so it's inside the forecast, I'll add support for it!

kalkih commented 4 years ago

I've now added this in the latest release, many thanks!

eracknaphobia commented 4 years ago

Awesome! Thanks @kalkih!

Btw, I was able to add my darksky sensor to the display by using the custom feature.

secondary_info: precipitation_probability
custom:
  - precipitation_probability: sensor.dark_sky_precip_probability_0d
kalkih commented 4 years ago

Nice!