r-renato / ha-climacell-weather

Climacell weather provider integration is a custom component for Home Assistant. The climacell platform uses the Climacell API as a source for meteorological data for your location.
MIT License
46 stars 10 forks source link

Fields that prevent realtime or current (1m) updates from working #53

Open raetha opened 3 years ago

raetha commented 3 years ago

I had many of the reported issues with the v4 API that others have posted about resulting in sensors with a status of unknown and log messages with a 400 error from the API, or sensors seeing no data. Having worked with APIs in the past, I pointed Postman at the Climacell v4 API, and dropped in the same parameters in, mimicking the request captured in this components logs in HA.

What I found, in my case, was that at least the following fields are not usable when doing a timestep of "current" or "1m":

I had these carried over from my old config, where they must have worked with v3.

Rather than having to carefully document this, and hope people read the docs, would it be possible to simply modify the code to ignore those fields when configured with a timestep of "current" or "1m"?

Thought if nothing else I'd share my findings, as I know I saw some other references to sunrise and sunset.

nytram-md commented 3 years ago

I have had my v4 of the API working great till last night but my hourly entities are now Unknown for Percentage of Rain for next 6 hours and also the type of rain.

I upgraded to 2021.3.0 on Wednesday and it worked yesterday but stopped about 7pm UK time. I have upgraded to 2021.3.1 this morning and no change. Ive also reinstalled the Addon as this fixed it in the past at the time the API v4 was having issues but its been solid for last few weeks or so for me but it didnt work.

Martyn