Adding precipitation Probability in Darksky Weather component

It would be nice to add the precipitation probability to the Darksky Weather component.
The component has currently the info about the precipitation intensity for both daily and hourly forecast.

Checking the dev doc of darksky the info is available inside the currently block and also in the daily and hourly block.

"data": [{
              //...
             "icon": "partly-cloudy-day",
             "precipIntensity": 0.0007,
             "precipProbability": 0.1,
            },
        ...
        ]

It would be nice to add the:

ATTR_FORECAST_PRECIPITATION_PROBABILITY:
        entry.d.get('precipProbability),

In this way it can be easily added to custom cards as:

I was under the impression the option is there already:
https://www.home-assistant.io/components/darksky/#precip_probability.

monitored_conditions
(list)(Required)Conditions to display in the frontend.

...

precip_probability
The probability of precipitation occurring, in percents.

Isn’t that what you want?

No sorry.
It is about the Dark Sky Sensor.
I am talking about the Dark Sky Weather component. They use the same darksky service but are different components.

These cards (as the official one) work with the weather component.

Ah. Withdrawn then :slight_smile:

I have a custom component for which I display precipitation probability in a modified stock weather card.

Ive used the logic: if precipitation amount doesnt exist but precipitation probability does, display the %. This logic leads it to never be displayed for dark sky. It is not hard to just add the probability as an attribute, harder to figure out how to display in the UI with the stock card.

Are you just looking for the info to be available, or displayed in addition?

Oh I see I also misread, there are custom cards that can utilize it.

I would also love to have this. Even created another post for it until I found this one…

PS: Apart from this enhancement request: Is there a reason, that the DarkSky weather component does not provide all available data in its attributes? And maybe there is a work-around already?