#How to extract today's high temperature from a forecast?

1 messages · Page 1 of 1 (latest)

novel creek
#

Hi all, when I look at a forecast device, I can see today's low and high displayed next to the current temperature (see screenshot, top right)

Yet, I don't see those numbers anywhere in the attributes list for the forecast. How can I access the low and high temps programmatically? Can't write a template sensor if I don't know the attribute name!

temperature: 77
dew_point: 51
temperature_unit: °F
humidity: 41
cloud_coverage: 0
uv_index: 4.5
pressure: 30.06
pressure_unit: inHg
wind_bearing: 306.6
wind_speed: 5.16
wind_speed_unit: mph
visibility_unit: mi
precipitation_unit: in
attribution: Weather forecast from met.no, delivered by the Norwegian Meteorological Institute.
friendly_name: Forecast Home
supported_features: 3
novel creek
#

Anyone got any ideas here? Isn’t it weird that the high/low temps aren’t exposed? What about the daily forecasts?

rugged creek
novel creek
#

@rugged creek can such a sensor be configured via the UI? seems like the yaml might be the only way

rugged creek
#

I believe YAML will be the only way to do that currently

novel creek
#

What’s the reason for not exposing at least YAML editing in the UI for such things?

rugged creek
#

It just hasn't been built yet directly within HA. I'm not sure what HA install method you've got, but for HA OS you have options to allow YAML editing within the HA site itself via file editing add-ons.

novel creek
#

I’m using the docker container on a raspberry pi

cold dagger
#

You can use VS Code's remote functionality or install Code Server as another container.

novel creek
#

Yeah that’s what I’m doing. But it would be nice to have the same yaml editor I have in several other parts of HA

cold dagger