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
45 stars 10 forks source link

Accumulated Rain Sensor #49

Open MYeager1967 opened 3 years ago

MYeager1967 commented 3 years ago

Several versions ago, the accumulated rain sensor disappeared. I haven't tried to run this again since as I've been busy and it was easier to simply shut down the automations that needed that sensor. Is (or has) this sensor been restored? It is needed for the Smart Irrigation integration as well as others that used it and a few of my personal automations.

jazzyisj commented 3 years ago

These are the data layers available in the free v4 ClimaCell API. Precipitation Accumulation looks like it is included. Have you updated your config to work with v4 of the API?

https://www.climacell.co/data-catalog/core

jcgoette commented 3 years ago

I don't think it's included in v4 API.

https://docs.climacell.co/reference/data-layers-precipitation

jazzyisj commented 3 years ago

@jcgoette Huh. Pretty sure the page I linked is the v4 doc. I found it through the API signup. I never noticed it wasn't in the API reference, I don't use it. But I did just try adding it into my config. No errors but no sensor either.

So point taken.

Perhaps it will be added in? It's a pretty basic weather stat.

MYeager1967 commented 3 years ago

I'll get into it and make sure I'm updated to the new API key and have a look at it. I can't imagine they dropped it as it's used by a lot of things and it is a pretty basic stat. Wish it updated more than once a day, which is what I believe it updated under v3, but it is what it is. I get an error in the log... 2021-02-06 16:48:28 ERROR (SyncWorker_4) [custom_components.climacell.sensor] Invalid field: precipitation_accumulation I'm not finding it in the v4 docs either. I may have to go to another weather provider. That would suck as this one is better than OpenWeather by a long shot...

MYeager1967 commented 3 years ago

I got a response from ClimaCell that it's still in the v4 API, but I'm waiting for them to tell me where. I've looked and I don't see it either.