Dear anyone,
I have (basically through copy-pasting) added some current information to a dashboard in a Markdown card.
{{ state_attr('weather.forecast_myhome' , 'temperature') }} °C
results in 22.8 °C on the card
What I understand about this is that we need {{ }} to get a reference to a home assistant entity into the markdown card. and that state_attr makes the reference more specific into the attribute "temperature’ belonging to the entity "weather.forecast_myhome’
When I go to the Developer tools and look for the Forecast MyHome entity, it says the state is cloudy . (And I can find the names of many other attributes.
What I cannot do is find a way to reference the basic state of the entity into my markdown card.
I have tried about 50 ways to use ‘state_attr’, it just won’t work.
I have seen that another attribute is “forecast” which then has an additional list of sub-attributes like “condition” (which is still cloudy, but at a later time)
So I have tried to use “condition” as a “state_attr”
{{ state_attr('weather.forecast_myhome' , 'condition') }}
but it won’t work.
What is the syntax to get to the basic “state” of the entity ?
What is the syntax (if that is at all possible) to get to the states and attributes of the forecasts ?
Thanks