This repository was initially a fork of a nice weather card that I wanted to tweak and adapt quite a lot. For various reasons I've turned this into its own project, but please do visit the original to see if it better suits your needs.
If you don't know about HACS (Home Assistant Community Store), you should check it out. It is by far the best current method of finding, installing and maintaining plugins. Presently this repository is not in HACS (I do plan to add it when I have time), but you can add this repository manually.
- In HASS, navigate to Community -> Settings.
- Add this repository to the custom repositories, as a plugin.
- Navigate to Community -> Store.
- Find the
weather with graph
card in the plugins section. Install. - In Lovelace UI config:
- url: /local/weather-with-graph.js
type: module
- Copy dist/weather-with-graph.js into HASS
config/www
folder. - In Lovelace UI config:
- url: /local/weather-with-graph.js
type: module
- type: 'custom:weather-with-graph'
weather: weather.openweathermap
This card will display temperature not from the weather entity but from a separate temperature sensor.
- type: 'custom:weather-with-graph'
weather: weather.openweathermap
temp: sensor.frontdoor_temperature
number_of_forecasts: 5
Name | Optional | Description |
---|---|---|
type | No | Should be 'custom:weather-with-graph' . |
weather | No | An entity_id with the weather domain. |
title | Yes | Card title, defaults to friendly_name if no title is set. |
temp | Yes | Entity_id of the temperature sensor. Show temperature value from sensor instead. |
mode | Yes | Default value: daily . Set mode to hourly to display hours instead weekdays on the chart. |
number_of_forecasts | Yes | Number of forecast recordings to show, min 3 max 9. |
chart_only | Yes | Display the chart without displaying the header information. Boolean. |