Simple Weather Card
A minimalistic weather card for Home Assistant Lovelace UI, inspired by Google Material Design.
Instructions
Please visit the GitHub repository for installation and usage instructions.
A minimalistic weather card for Home Assistant Lovelace UI, inspired by Google Material Design.
Please visit the GitHub repository for installation and usage instructions.
- type: custom:simple-weather-card
entity: weather.smhi
name: " "
backdrop: true
how do you setup the weather entity ?
Iâm using Darksky
Ta
LeeB
Here is the documentation for the dark sky weather platform.
This is pretty neat!! Itâs exactly what Iâm looking for, but doesnât work with my weather.bom platform. Iâve setup darksky, and their values today are wrong.
Would it be possible to use our own sensors? Iâd like to use my personal weather station for the current temp, max/min and rain, and may as well for condition. Is this possible, or something that can be done down the track?
Thatâs weird, I thought all weather platforms would expose the same attributes, at least the basic ones.
Iâve honestly only tested this with the SMHI weather component.
Not possible right now, but could be implemented.
I guess not. This is what is exposed for my local weather station via the BOM platform
{
"humidity": 57,
"wind_bearing": 45,
"custom_ui_state_card": "state-card-custom-ui",
"wind_speed": 26,
"temperature": 27.7,
"attribution": "Data provided by the Australian Bureau of Meteorology",
"friendly_name": "BOM Albion Park",
"pressure": 1023.2
}
This is good news. Hopefully, sooner rather than later.
hmmmâŠ
what could I be doing wrongâŠ
- type: custom:simple-weather-card
entity: weather.woensdrecht
name: Woensdrecht
backdrop:
day: "var(--primary-color)"
night: "#40445a"
Do we need to download the icons? Or are they in the module.
Icons are bundled in, LitElement and lit-html is not.
Youâre missing the css from the looks of it, are you running an older version of HA?
Looks great and gives useful information. Very well done!
Suppose yes, ha 84.3 here, which is about a month or 2 âoldâ?
Thank you!
Okay, thatâs probably the reason, I decided to not bundle in LitElement and lit-html this time, like I do with my other (more serious) cards. So this card relies on an up to date HA setup.
lit-html and LitElement have been developed a lot during the last few months, lit-html is now released as v1.0.0, so major & breaking changes should be rarer from here on I guess.
Heya, the release is a .bundle.js (not sure if that makes a difference) but the file is much more condensed - and cant get it to work. with module or js.
Is it not required to copy the icons etc also?
Thanks
Error is unknown card type
Thatâs why I opted to go with a bundle, it includes all assets, including icons.
Itâs also minified to take up as small space as possible, thatâs why it looks funny.
What does your resource section look like, and the card configuration?
Itâs important to put custom in front of the card name.
- type: custom:simple-weather-card
entity: weather.example
Since I wonât update just yet that leaves me without this little card then ? Seems a bit overkill to update because of this small but very nice card alone.
Maybe you would reconsider including Lit?
Yep, looks exactly the same (although added backdrop and name) - will remove for testing.
Interesting I wasnât aware of the bundle format.
EDIT: shouldnt copy code at 2am - didnt add the extra folder in my local/ folder.
Works like a charm! thanks for sharing!
If you wanted to add another instance with a different location, iâm assuming you can add another dark_sky component and api key, and call that new weather.dark_sky_2 with a new custom:simple-weather-card ?
Absolutely.
Any chance to show Humidity on the card? This would be immensely useful for those of us in hotter regions.
Also this may go against the idea of a âsimpleâ weather card, but any chance in the future to change the size of this card to that of the default lovelace weather card? I really dig this style and customization but miss the additional information the default card has.
Yes, I think Iâll add an config option for the additional information displayed (precipitation right now), similar to the secondary_info option for entity-rows.
Might add the forecast to the bottom of the card (optional of course) in the future.
Added the option secondary_info
now, takes precipitation, humidity or wind_speed
# Show humidity
- type: custom:simple-weather-card
entity: weather.example
secondary_info: humidity
New release here: v0.2.0