Appreciate your work on this integration @MatthewFlamm!
Would you consider adding the name
attribute that the API outputs to your detailedForecast
attribute for the daily entity?
For example, the NWS API returns this for my local forecast:
"periods": [
{
"number": 1,
"name": "Today", <------------ THIS
"startTime": "2020-07-13T11:00:00-05:00",
"endTime": "2020-07-13T18:00:00-05:00",
"isDaytime": true,
"temperature": 101,
"temperatureUnit": "F",
"temperatureTrend": null,
"windSpeed": "10 mph",
"windDirection": "S",
"icon": "https://api.weather.gov/icons/land/day/hot?size=medium",
"shortForecast": "Sunny",
"detailedForecast": "Sunny, with a high near 101. Heat index values as high as 112. South wind around 10 mph."
},
{
"number": 2,
"name": "Tonight", <------------ THIS
"startTime": "2020-07-13T18:00:00-05:00",
"endTime": "2020-07-14T06:00:00-05:00",
"isDaytime": false,
"temperature": 76,
"temperatureUnit": "F",
"temperatureTrend": null,
"windSpeed": "5 to 15 mph",
"windDirection": "S",
"icon": "https://api.weather.gov/icons/land/night/few?size=medium",
"shortForecast": "Mostly Clear",
"detailedForecast": "Mostly clear, with a low around 76. Heat index values as high as 110. South wind 5 to 15 mph."
},
Sometimes the API returns special names like “Independence Day” or “Christmas Day”, so it would be great to have this in the entity’s attributes. Before you released the official integration, I had hacked together my own that had each forecast day as an entity, and I have a TTS automation that reads out the period name and the forecast, eg: “The forecast for Independence Day is …”
I can write some jinja to extract everything from the attributes available through your integration but I’d love to still be able to hear what the name attribute is in my TTS readouts!