Weather Forecast Card not working in Lovelace

Following the documentation on the Weather Forecast Card:


I copied the following into my ui-lovelace.yaml:
views:
  - title: Weather
    icon: mdi:cloud-question
    cards:
      - type: weather-forecast
        entity: weather.dark_sky

In my configuration.yaml, i have darksky set up as a weather platform (not a sensor):

weather:
  - platform: darksky
    api_key: !secret darksky_apikey
    update_interval: '00:10:00'
    name: Weather
    monitored_conditions:
      - summary
      - icon
      ...

The card auto displays in the non-lovelace frontend fine, but in lovelace i get this red box:

07

I’ve noticed in another post:

the yaml for the card written slightly differently, however, this also does not seem to work.

- type: weather-forecast
  entity: weather.darksky_weather

56

In the red card, it mentions state. Does this imply that the entity weather.darksky_weather (or weather.dark_sky for that matter) are not defined? If so is there a way i can see what states might be defined?

OK, found out what i was doing wrong!

weather:
  - platform: darksky
    api_key: !secret darksky_apikey
    update_interval: '00:10:00'
    name: Weather `<-- This name must match`
    monitored_conditions:
      - summary
      - icon
      ...
views:
  - title: Weather
    icon: mdi:cloud-question
    cards:
      - type: weather-forecast
        entity: weather.weather `<-- This part after the dot and also be lower case`
1 Like