t1gr0u / rain-gauge-card

A Lovelace card that shows the rain gauge for Home Assistant
MIT License
43 stars 25 forks source link

Some Evolutions on rain-gauge-card, align to HA entity format & add Rain Storm #41

Open bernardpe opened 2 months ago

bernardpe commented 2 months ago

this allow now to round the values of rain and rain rate

Initial card : image

card updated : image

By default there is as before no round

fix as well when issue on hourly is is unknow image

Set 0 in case of unknow

bernardpe commented 2 months ago

Now using Format & Unit from entities using formatEntityState (Since Home Assistant Core 2023.9 release) back compatibility is managed ! Adding RainStorm (Optional) entity image

yaml file (no more necessary to use display precision, but if setted we do not use Entity format ! type: custom:rain-gauge-card entity: sensor.xx_rain_today language: fr show_warning: false show_error: false hourly_rate_entity: sensor.xx_rain_intensity rainstorm_entity: sensor.xx_rain_storm

Card : image

bernardpe commented 2 months ago

When RainStorm is 0 we do not display 0 we display -- this is more aligned with usual weather report.

image