Closed jhemak closed 7 months ago
Thanks for posting this! The issue is with your config UI, and makes me think we should change the defaults or make it more clear. You've selected that sensors should be created; however, didn't include any times for them. If you put something in either/both the hourly/ daily fields, then this should go away. Alternatively, you could uncheck the sensors button, which should fix this.
Thanks @alexander0042! The reason I set it up this way initially was that I needed the weather entity and was also interested in the "currently" sensors such as sensor_pirateweather.temperature, sensor_pirateweather.wind_speed, etc. (but not the daily/hourly ones). All of those sensors were created and have been working as expected. If I un-check "Sensors" then I have only the weather entity. If that configuration is not supported, that could probably be clarified in the documentation.
But in any case, I tried a few tests:
So, it seems the problem is related in some way to "Weather" and not "Sensors". This seems different than what you may have been expecting, so it might be good for someone else to try the same test to see if this is unique to my environment for some reason.
I have my HA integration setup like this:
I've tried manually reloading and I receive no errors in the log. I sometimes see warnings about sensors taking a long time to update and that's it.
Thanks, that was helpful in getting me to look at other explanations. Turns out, I caused this due to two of my trigger templates pulling daily and hourly forecasts using weather.get_forecasts. By editing my trigger to include the last two lines (not_to and not_from), I was able to make the errors go away on integration reload. Always something to learn!
- trigger:
- platform: state
entity_id: weather.pirateweather
not_from: "unavailable"
not_to: "unavailable"
Describe the bug
I am not sure if this is new since version 1.5 or just something I've not noticed until now. However, when HA starts up, the logs are clean. If I reload the PirateWeather integration, I receive these errors:
Expected behavior
Integration should reload without errors
Actual behavior
See above
Home Assistant version
2024.4.4
Integration version
1.5
Other details
Troubleshooting steps