Improved version of weather card to support new hourly forecasts in Home Assistant 2023 and forward. Also inspired by the fork Carte Lovelace Météo France.
This card uses the awesome animated SVG weather icons by amCharts.
You have 2 main options, HACS or manual.
Install this repo as a custom repository in HACS: https://github.com/SweVictor/v-weather-card.
Download the contents of the dist
folder to /config/www/community/v-weather-card/
. (or an other folder in /config/www/
)
Add the following to resources in your lovelace config (typically /config/lovelace.yaml
):
resources:
- url: /hacsfiles/v-weather-card/v-weather-card.js
type: module
And add a card with type custom:v-weather-card
:
type: custom:v:weather-card
entity: weather.yourweatherentity
name: Optional name
If you want to use your local icons add the location to the icons:
type: custom:v-weather-card
entity: weather.yourweatherentity
icons: "/local/custom-components/v-weather-card/icons/"
You can choose wich elements of the weather card you want to show:
The 3 different rows, being:
type: custom:v-weather-card
entity: weather.yourweatherentity
current: true
details: false
forecast: true
hourly_forecast: false
number_of_forecasts: 5
If you want to show the sunrise and sunset times, make sure the sun
component is enabled:
# Example configuration.yaml entry
sun:
When using Dark Sky you should put the mode to daily
if you want a daily forecast with highs and lows.
# Example configuration.yaml entry
weather:
- platform: darksky
api_key: YOUR_API_KEY
mode: daily
When using OpenWeather map you can select hourly(default) or daily forecast to show.
# Example configuration.yaml entry
weather:
- platform: openweathermap
api_key: YOUR_API_KEY