Open ZTHawk opened 1 year ago
The wind gust is available
From the screenshot you posted, it's available as an attribute of an entity, not as an entity. That's why you can't pick it.
But you can easily create a template sensor in HA, something like this (replace sensor.metno
with the name of the real sensor you're using):
template:
- sensor:
- name: "metno wind gust speed"
unique_id: metno_wind_gust_speed
device_class: wind_speed
state_class: measurement
unit_of_measurement: km/h
state: '{{ state_attr('sensor.metno', 'wind_gust_speed') }}'
Once you reload the template sensors (or restart HA), you'll have a sensor.metno_wind_gust_speed
that you can pick from the listbox of the card.
You can use the same approach for all the attributes shown in the screenshot of your OP (wind_bearing, etc.). It would be cool if the dev would let users pick entity AND attribute, so there would be no need to create template sensors.
Hope it helps. :)
Hello, yes it is available as an attribute, but the same goes to all the other properties. They are only available as attributes and are used correctly.
entity_forecast_icon: weather.home
entity_forecast_icon_1: weather.home
entity_forecast_max: weather.home
entity_forecast_max_1: weather.home
entity_forecast_min: weather.home
entity_forecast_min_1: weather.home
entity_humidity: weather.home
entity_pop: weather.home
entity_pop_1: weather.home
entity_pos: weather.home
entity_pos_1: weather.home
entity_pressure: weather.home
entity_summary_1: weather.home
entity_sun: sun.sun
entity_temperature: weather.home
entity_visibility: weather.home
entity_wind_bearing: weather.home
entity_wind_gust: weather.home
entity_wind_speed: weather.home
As you can see I have only two entities: weather.home
and sun.sun
. All required info is extracted from the attributes except wind gust.
So I prefeer this to be fixed instead of creating a new sensor.
That's interesting: I fed specific sensors from my weather stations, I used the weather entity only for forecast ones.
I agree, it would be better if it looked in the attributes automatically.
Checklist:
Release with the issue: 1.0.5
Browser and Operating System: Windows 10 Firefox (latest)
Description of problem:
Wind gust is not displayed and no weather entity can be used from the dropdown list. I use the Weather forecast from met.no. The wind gust is available:
I tried to add it manually to YAML
![grafik](https://github.com/Makin-Things/platinum-weather-card/assets/23618799/22b93a21-2f2e-4c97-bbd9-6207dbea31b0)
entity_wind_gust: weather.home
but with no success.