Lovelace: Simple Weather Card

Hello,
Hold action, not sure but could possibly add.

About precipitation, yes, could possibly add a fallback to check for the attribute inside the forecast if it’s missing.
If you want it right now you could override it with custom sensors.

Most missing attributes will display as 0 atm, that’s why you still see it, confusing… should probably display unknown or not show at all.

About pressure and visibility, sure I’ll add those, I need to map measurement and icon to attributes since this information isn’t available directly from the weather entity.

Thanks for the suggestions!

Precipitation is actually already grabbed from the first entry of the forecast, so you should be good!
Makes sense it’s in the forecast “How much does it rain?” versus “How much will it rain [today]?”.

yes, thought as much, simply didn’t understand how you did that :wink:

thanks for the other future options !

Hi,
Sorry if it was already raised.
Recently I noticed that high and low temperatures are the same.
I use Dark Sky as a source.
I was not this way before.

Here is my configuration:

- type: custom:simple-weather-card
  entity: weather.dark_sky
  name: " "
  backdrop:
     day: "var(--paper-card-background-color)"
     night: "var(--paper-card-background-color)"
  primary_info:
     - extrema
  secondary_info:
     - precipitation_probability

Here is how it looks:
simple_weather_card

What am I missing?
Thanks in advance.

Hello, this was fixed in the very latest release v0.7.2.

Actually I’m on 0.7.2
The issue is still there.
Tried to clean cache, still there.

Strange, is it possible that’s the value actually reported by your weather component? You can check this by navigating to developer tools -> states, in Home Assistant.

  • Low is grabbed from attributes -> forecast (first entry) -> templow
  • High is grabbed from attributes -> forecast (first entry) -> temperature

Otherwise, try reinstalling the card in HACS, and double check the resource reference.

Hi,
I checked the data that coming from weather.dark_sky and it seems to be fine.
Moreover I tried to set custom sensor for the high temperature and it as being totally ignored. The low temperature is being constantly displayed for both low and high.

Edit: Don’t know what happened, it just started working fine. Although I cleaned cache before many times…

Great, probably something related to HACS and the serving of the file, reinstalling the card usually helps I think.

Possible future request, make gab between icon and other stuff bigger, with my setup it´s overlaping :slight_smile:
Poznámka 2020-02-04 141811

Hello, that’s not this card, that’s another card.

My bad, i have both of them installed. :slight_smile:

Does anyone else have the problem, that the attribute “extrema” is just showing the minimum value? Somehow its showing two times the minimum value, and not the min and max (see picture below):

Bildschirmfoto 2020-03-03 um 14.31.55

Also as future request: Would it be possible to show somehow the time for sunrise and sunset?

Edit: I’ve just seen that this was discussed 5 posts before. Will try to clean cache and reinstall.

Okay, reinstalling fixed that. I totally uninstalled and installed it from scratch.

Still I would love to have this

Also as future request: Would it be possible to show somehow the time for sunrise and sunset?

I’m having trouble getting the action: call-service feature to work right.

Background: I use a vertical-stack-in-card to combine this fantastic card with a button card below it so that I can display some extra info in a third line. This is what they look like with one on top of the other.

Capture

Both the button-card and the simple-weather-card allow tap_action, so my goal is to make it so that no matter where I click on this frankenstein card, it will call the browser_mod.popup service to display a popup card with even more detailed weather.

In the button card I’ve used

    tap_action:
      action: call-service
      service: browser_mod.popup
      service_data:
        card:
          type: 'custom:dark-sky-weather-card'
          entity_current_conditions: sensor.dark_sky_icon
          entity_temperature: sensor.dark_sky_temperature
          entity_forecast_high_temp_1: sensor.dark_sky_daytime_high_temperature_1d
          entity_forecast_high_temp_2: sensor.dark_sky_daytime_high_temperature_2d
          entity_forecast_high_temp_3: sensor.dark_sky_daytime_high_temperature_3d
          entity_forecast_high_temp_4: sensor.dark_sky_daytime_high_temperature_4d
          entity_forecast_high_temp_5: sensor.dark_sky_daytime_high_temperature_5d
          entity_forecast_icon_1: sensor.dark_sky_icon_1d
          entity_forecast_icon_2: sensor.dark_sky_icon_2d
          entity_forecast_icon_3: sensor.dark_sky_icon_3d
          entity_forecast_icon_4: sensor.dark_sky_icon_4d
          entity_forecast_icon_5: sensor.dark_sky_icon_5d
          entity_forecast_low_temp_1: sensor.dark_sky_overnight_low_temperature_0d
          entity_forecast_low_temp_2: sensor.dark_sky_overnight_low_temperature_1d
          entity_forecast_low_temp_3: sensor.dark_sky_overnight_low_temperature_2d
          entity_forecast_low_temp_4: sensor.dark_sky_overnight_low_temperature_3d
          entity_forecast_low_temp_5: sensor.dark_sky_overnight_low_temperature_4d
          entity_summary_1: sensor.dark_sky_summary_1d
          entity_summary_2: sensor.dark_sky_summary_2d
          entity_summary_3: sensor.dark_sky_summary_3d
          entity_summary_4: sensor.dark_sky_summary_4d
          entity_summary_5: sensor.dark_sky_summary_5d
          entity_sun: sun.sun
          entity_visibility: sensor.dark_sky_visibility
          entity_daytime_high: sensor.dark_sky_daytime_high_temperature_0d
          entity_wind_bearing: sensor.dark_sky_wind_bearing
          entity_wind_speed: sensor.dark_sky_wind_speed
          entity_humidity: sensor.dark_sky_humidity
          entity_pressure: sensor.dark_sky_pressure
          entity_apparent_temp: sensor.dark_sky_apparent_temperature
          entity_daily_summary: sensor.dark_sky_daily_summary
          entity_pop: sensor.dark_sky_precip_probability
          entity_pop_intensity: sensor.dark_sky_precip_intensity
          entity_pop_1: sensor.dark_sky_precip_probability_1d
          entity_pop_2: sensor.dark_sky_precip_probability_2d
          entity_pop_3: sensor.dark_sky_precip_probability_3d
          entity_pop_4: sensor.dark_sky_precip_probability_4d
          entity_pop_5: sensor.dark_sky_precip_probability_5d

and it works great. I’ve tried to fiddle around with the syntax in your card but cannot get the service to call. I must be totally misreading the doc for how to use call-service

Thanks for any help anyone is able to offer!

Uncaught (in promise) TypeError: Cannot read property 'isNight' of undefined
    at HTMLElement.render (simple-weather-card-bundle.js?v=0.8.0:1)
    at HTMLElement.update (bootstrap:2)
    at HTMLElement.performUpdate (bootstrap:2)
    at HTMLElement._enqueueUpdate (bootstrap:2)

Hey, thank you for this card :smiley:, it’s really great.
I have some questions about changing it’s appearance though;

Is it possible to set the height / font-size parameters manually?
Also, since we have a standard weather-forecast card, is it possible to use those icon’s with your card?

how do you use this card if you do not have a Weather (domain) Entity ? ie entity: weather.dark_sky
all my weather information is coming via sensors ie BOM (Australian)

The latest BOM integration by Brendan does include the weather domain sensors as well.

I’m using "The latest BOM integration by Brendan " all working ok

not sure how i would reference the weather domain. Checked the development tools --> states , no reference to weather …

include refence in my lovelace card(simple-weather-card) to weather.jandakot and weather.harrisdale with no luck.

type: custom:simple-weather-card
entity:  weather.harrisdale
name: Harrisdale
custom:
  - temp: sensor.jandakot_temperature
  - high: sensor.harrisdale_max_0
  - low: sensor.harrisdale_min_0
  - humidity:  sensor.jandakot_humidity
  - wind_speed: sensor.jandakot_wind_speed

any ideas ?

Ta
Leeb