Originally created for the old UI converted by @arsaboo and @ciotlosm to Lovelace and now converted to Lit to make it even better.
This card uses the awesome animated SVG weather icons by amCharts.
Thanks for all picking this card up.
Firefox < 66 does not support all the needed functions yet for the editor.
You change this by enabling javascript.options.dynamicImport
in about:config
.
Add the following to resources in your lovelace config:
resources:
- url: /hacsfiles/weather-card/weather-card.js
type: module
And add a card with type custom:weather-card
:
- type: custom:weather-card
entity: weather.yourweatherentity
name: Optional name
If you want to use your local icons add the location to the icons:
- type: custom:weather-card
entity: weather.yourweatherentity
icons: "/community_plugin/weather-card/icons/"
You can choose wich elements of the weather card you want to show:
The 3 different rows, being:
- The current weather icon, the current temperature and title
- The details about the current weather
- The 5 day forecast
type: custom:weather-card
entity: weather.yourweatherentity
current: true
details: false
forecast: true
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