I am trying to test out a template in the template editor under developer tools. I practically copy/pasted most of what I have in there from another topic here but I get the error “UndefinedError: ‘daily_forecast’ is undefined”
Am i not defining it here under “response_variable”?
Thanks for that tip. It looks like it was all working correctly I just couldn’t tell.
The end result is I would like to be able to get a speaker to announce the forecast when triggered. I have the detailed forecast now stored as an attribute (forecast_0 and forecast_1) of sensor.nws_dailly_forecast.
How do I call that in a message from the action Text to speech?
I have the following and it does not seem to work. I am not sure how to call the attribute into the announcement.
The function states() requires an entity ID string as an argument. You have provided… something else
Based on the sensor configuration in your previous post, you are trying to access a value store in the attributes property, so you should be using the state_attr() function. The first argument for that function should be the entity ID and the second should be the name of the attribute you want to retrieve: