Closed anonymous64356 closed 1 year ago
Can you please ask about this in https://community.home-assistant.io/t/platinum-weather-card-support/449166/99 NWS can be a little special, but I'll try and tag someone in there that is all over it.
Thanks for responding! I ended up creating some template sensors that update at midnight. The YAML is below if others have this problem. Looking through your code, I wonder if you could the this._getForecastPropFromWeather
function if templow
is not given by the entity, but I'm not that knowledgable with TypeScript so I don't know. I'll close this issue anyway.
NWS template sensors:
template:
- trigger:
- platform: time_pattern
hours: 0
minutes: 0
sensor:
- name: "KMLI High Today"
unit_of_measurement: "°F"
state_class: 'measurement'
state: "{{ state_attr('weather.kmli_daynight', 'forecast')[1]['temperature'] }}"
- name: "KMLI Low Today"
unit_of_measurement: "°F"
state_class: 'measurement'
state: "{{ state_attr('weather.kmli_daynight', 'forecast')[2]['temperature'] }}"
Checklist:
Release with the issue: 1.0.4 Last working release (if known): n/a Browser and Operating System: Google Chrome Version 108.0.5359.125 (Official Build) (64-bit) Windows 11
Description of problem: When using the National Weather Service integration, the card is able to provide the forecasted maximum temperature, but not the minimum. The minimum and maximum of the next 5 days appear correctly.![Screenshot 2023-01-04 163750](https://user-images.githubusercontent.com/60198616/210663353-f4e798e8-2a94-426a-b9aa-ac7dba95281f.png)
Javascript errors shown in the web inspector (if applicable):
Additional information: Weather card configuration:
weather.kmli_daynight attributes:
Forecasted minimum should be 28 degrees (temperature in second forecast)