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

Is it gonna rain today and how much? #12

Open damien67 opened 4 years ago

damien67 commented 4 years ago

Thanks a lot for your work on this! Just updated it and the amount of data is overwhelming!

I am going ESP8266/MQTT with my sprinklers, and want to use your component's data to enable, or not the watering automation.

From the realtime/hourly/daily configs, I get the followings:

sensor.cc_climat_precipitation = right now

sensor.cc_climat_precipitation_1h = now + 1h sensor.cc_climat_precipitation_2h = 1h + 1h after (now + 1h not added)

sensor.cc_climat_precipitation_max_1d = max precipitation tomorrow sensor.cc_climat_precipitation_max_2d = max precipitation day after tomorrow

What about today? Will it rain today and how much? Almost like a "_0d". Is one of the data received represents this, or creating a template adding like 12 hourly results the only way?

Thanks!!

r-renato commented 4 years ago

Hi, this is interesting, it is one of my goals to implement an irrigation management system.

can you better explain? what is your question? Thanks, Renato

damien67 commented 4 years ago

Yeah sorry...It is kinda confusing.

I looked at the data some more...and saw the "Observation time" attribute. For example, sensor.cc_climat_precipitation_accumulation_1d "observation_time: '2020-07-02'", so my understanding is that "cc_xxx_1d" is forecast for today, correct? "cc_xxx_2" is forecast tomorrow, etc. Right?

For your irrigation system, I would recommend you read this: https://community.home-assistant.io/t/mqtt-based-sprinkler-control/135585/8

This post from tom_l has a lot of very useful information.

MYeager1967 commented 3 years ago

There's an excellent integration called Smart Irrigation that will work perfectly with this component to do exactly what you're wanting to do. I know because I've been using it for a few months now with my own routine that pulled this data and created sensors. The only thing you'll need on top of this component is a high/low temp for the day that I've already asked the author to add.