jeroenterheerdt / HAsmartirrigation

Smart Irrigation custom component for Home Assistant
MIT License
326 stars 49 forks source link

Integration does not appear to be accounting for rainfall correctly #399

Open david-j-duran opened 4 weeks ago

david-j-duran commented 4 weeks ago

What happened?

Per this thread after a few heavy rains my bucket value continues to decrease as if no rain occurred.

On recent summer days I would see -0.1-0.15" bucket decrease. Despite receiving >0.5" of rain on June 6, the bucket still decreased (10pm on June 6th). The increase at midnight June 6th is me resetting the bucket to zero.

image

I have tried "helping" the calculations by providing specific sensors for 24hr rainfall and solar irradiance but unclear if this is helping or hurting. Not sure how to debug and test it without waiting for a sizable rainstorm to come through.

image

How to reproduce

It rains. Bucket continues to decrease. Cannot make sense of the log file to tell what, if any, rain has been factored into calculation.

home-assistant_smart_irrigation_2024-06-07T13-41-22.454Z redact.log

Relevant log output

see attached

Which version are you running?

v2024.6.1

Diagnostics file

Additional information

Was running 2024.4.x when issue occurred. Tried reinstalling with 2024.6 but not sure if that is helping until it rains again.

jeroenterheerdt commented 3 weeks ago

Closing. ➡️ FAQ #400

david-j-duran commented 3 weeks ago

Apologies I didn't appreciate the distinction between the log and the diagnostic file. Managed to download now and attached here. Is it possible to reopen this ticket?

I had same issue again yesterday where it rained 0.1" but bucket still decreased the usual 0.1-0.15" it does most days. Appears to not be taking the rain into account but I cannot see where this is calculated in the log file to check it.

image

config_entry-smart_irrigation-f8a72475389b606bc1dec281f0ae6495.json

jeroenterheerdt commented 3 weeks ago

Thanks for providing the requested info. The values look good. Keep in mind that bucket and rainfall are not directly linked. If you want to get all the details on how it's calculated you need to enable debug logging.

Two things to check : do all sensors provide values in the units you specified? I also noticed just four data points, I'd recommend increasing your update speed to capture more of the actual pattern. What's you're seeing however is likely one of the reasons we're are doing the betas to capture info continously, although that is not bug free yet.

david-j-duran commented 3 weeks ago

Really appreciate the quick responses. Couple things.

  1. When you say "increasing update speed", do you mean this "Update sensor every __ hours" setting? I've noticed with OWM for a while it was only providing "hourly" forecast in 3 hr blocks. Now seems to be every hour. Should I set this to every hour?
image
  1. Appreciate bucket != rain but FWIW after a few weeks of use I have consistently seen 0.1-0.15" decreases in bucket, dependent on temps & sun. But even when it rains, sometimes a lot (>0.5" like in initial issue), the bucket still decreases the 0.1-0.15". So I'm pretty sure it is not including the rainfall but can't work out if this is because of OWM, my custom sensor, or something else.

  2. I've turned debug logging back on and notice a lot of these:

    2024-06-15 11:51:25.237 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open inside the event loop by custom integration 'smart_irrigation' at custom_components/smart_irrigation/calcmodules/localize.py, line 23: with open(os.path.join(main_path, LANGUAGE_FILES_DIR+os.sep+"en.json")) as f: (offender: /config/custom_components/smart_irrigation/calcmodules/localize.py, line 23: with open(os.path.join(main_path, LANGUAGE_FILES_DIR+os.sep+"en.json")) as f:), please create a bug report at https://github.com/jeroenterheerdt/HASmartIrrigation/issues
    2024-06-15 11:51:36.148 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open inside the event loop by custom integration 'smart_irrigation' at custom_components/smart_irrigation/localize.py, line 24: with open(os.path.join(main_path, LANGUAGE_FILES_DIR+os.sep+"en.json")) as f: (offender: /config/custom_components/smart_irrigation/localize.py, line 24: with open(os.path.join(main_path, LANGUAGE_FILES_DIR+os.sep+"en.json")) as f:), please create a bug report at https://github.com/jeroenterheerdt/HASmartIrrigation/issues
    2024-06-15 12:01:16.968 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open inside the event loop by custom integration 'smart_irrigation' at custom_components/smart_irrigation/diagnostics.py, line 22: with open(storagefile) as f: (offender: /config/custom_components/smart_irrigation/diagnostics.py, line 22: with open(storagefile) as f:), please create a bug report at https://github.com/jeroenterheerdt/HASmartIrrigation/issues
  3. I do see some precipitation data in the log, which is consistent from yesterday's rain (it has been sunny/clear all day today). Is it possible there's a timing issue where the data wasn't included in last night's calculation, but will tonight?

    2024-06-15 11:51:25.568 DEBUG (SyncWorker_4) [custom_components.smart_irrigation.OWMClient] OWMClient get_data called API https://api.openweathermap.org/data/3.0/onecall?units=metric&lat=**REDACT**&lon=**REDACT**&appid=01c51d3d375eeb4b423bb77745f112aa and received {'lat': **REDACT**, 'lon': **REDACT**, 'timezone': 'America/New_York', 'timezone_offset': -14400, 'current': {'dt': 1718466685, 'sunrise': 1718443547, 'sunset': 1718497849, 'temp': 24.68, 'feels_like': 24.59, 'pressure': 1016, 'humidity': 53, 'dew_point': 14.47, 'uvi': 8.07, 'clouds': 40, 'visibility': 10000, 'wind_speed': 4.12, 'wind_deg': 50, 'wind_gust': 8.23, 'weather': [{'id': 802, 'main': 'Clouds', 'description': 'scattered clouds', 'icon': '03d'}]}, 'minutely': [{'dt': 1718466720, 'precipitation': 0}, {'dt': 1718466780, 'precipitation': 0}, {'dt': 1718466840, 'precipitation': 0}, {'dt': 1718466900, 'precipitation': 0}, {'dt': 1718466960, 'precipitation': 0}, {'dt': 1718467020, 'precipitation': 0}, {'dt': 1718467080, 'precipitation': 0}, {'dt': 1718467140, 'precipitation': 0}, {'dt': 1718467200, 'precipitation': 0}, {'dt': 1718467260, 'precipitation': 0}, {'dt': 1718467320, 'precipitation': 0}, {'dt': 1718467380, 'precipitation': 0}, {'dt': 1718467440, 'precipitation': 0}, {'dt': 1718467500, 'precipitation': 0}, {'dt': 1718467560, 'precipitation': 0}, {'dt': 1718467620, 'precipitation': 0}, {'dt': 1718467680, 'precipitation': 0}, {'dt': 1718467740, 'precipitation': 0}, {'dt': 1718467800, 'precipitation': 0}, {'dt': 1718467860, 'precipitation': 0}, {'dt': 1718467920, 'precipitation': 0}, {'dt': 1718467980, 'precipitation': 0}, {'dt': 1718468040, 'precipitation': 0}, {'dt': 1718468100, 'precipitation': 0}, {'dt': 1718468160, 'precipitation': 0}, {'dt': 1718468220, 'precipitation': 0}, {'dt': 1718468280, 'precipitation': 0}, {'dt': 1718468340, 'precipitation': 0}, {'dt': 1718468400, 'precipitation': 0}, {'dt': 1718468460, 'precipitation': 0}, {'dt': 1718468520, 'precipitation': 0}, {'dt': 1718468580, 'precipitation': 0}, {'dt': 1718468640, 'precipitation': 0}, {'dt': 1718468700, 'precipitation': 0}, {'dt': 1718468760, 'precipitation': 0}, {'dt': 1718468820, 'precipitation': 0}, {'dt': 1718468880, 'precipitation': 0}, {'dt': 1718468940, 'precipitation': 0}, {'dt': 1718469000, 'precipitation': 0}, {'dt': 1718469060, 'precipitation': 0}, {'dt': 1718469120, 'precipitation': 0}, {'dt': 1718469180, 'precipitation': 0}, {'dt': 1718469240, 'precipitation': 0}, {'dt': 1718469300, 'precipitation': 0}, {'dt': 1718469360, 'precipitation': 0}, {'dt': 1718469420, 'precipitation': 0}, {'dt': 1718469480, 'precipitation': 0}, {'dt': 1718469540, 'precipitation': 0}, {'dt': 1718469600, 'precipitation': 0}, {'dt': 1718469660, 'precipitation': 0}, {'dt': 1718469720, 'precipitation': 0}, {'dt': 1718469780, 'precipitation': 0}, {'dt': 1718469840, 'precipitation': 0}, {'dt': 1718469900, 'precipitation': 0}, {'dt': 1718469960, 'precipitation': 0}, {'dt': 1718470020, 'precipitation': 0}, {'dt': 1718470080, 'precipitation': 0}, {'dt': 1718470140, 'precipitation': 0}, {'dt': 1718470200, 'precipitation': 0}, {'dt': 1718470260, 'precipitation': 0}], 'hourly': [{'dt': 1718463600, 'temp': 24.71, 'feels_like': 24.57, 'pressure': 1016, 'humidity': 51, 'dew_point': 13.9, 'uvi': 6.81, 'clouds': 32, 'visibility': 10000, 'wind_speed': 3.38, 'wind_deg': 9, 'wind_gust': 4.24, 'weather': [{'id': 802, 'main': 'Clouds', 'description': 'scattered clouds', 'icon': '03d'}], 'pop': 0}, {'dt': 1718467200, 'temp': 24.68, 'feels_like': 24.59, 'pressure': 1016, 'humidity': 53, 'dew_point': 14.47, 'uvi': 8.07, 'clouds': 40, 'visibility': 10000, 'wind_speed': 3.57, 'wind_deg': 5, 'wind_gust': 4.28, 'weather': [{'id': 802, 'main': 'Clouds', 'description': 'scattered clouds', 'icon': '03d'}], 'pop': 0}, {'dt': 1718470800, 'temp': 25.13, 'feels_like': 24.95, 'pressure': 1016, 'humidity': 48, 'dew_point': 13.36, 'uvi': 8.38, 'clouds': 32, 'visibility': 10000, 'wind_speed': 3.46, 'wind_deg': 350, 'wind_gust': 4.98, 'weather': [{'id': 802, 'main': 'Clouds', 'description': 'scattered clouds', 'icon': '03d'}], 'pop': 0}, {'dt': 1718474400, 'temp': 25.89, 'feels_like': 25.66, 'pressure': 1016, 'humidity': 43, 'dew_point': 12.37, 'uvi': 7.88, 'clouds': 24, 'visibility': 10000, 'wind_speed': 3.77, 'wind_deg': 340, 'wind_gust': 5.16, 'weather': [{'id': 801, 'main': 'Clouds', 'description': 'few clouds', 'icon': '02d'}], 'pop': 0}, {'dt': 1718478000, 'temp': 26.72, 'feels_like': 26.49, 'pressure': 1015, 'humidity': 36, 'dew_point': 10.42, 'uvi': 6.5, 'clouds': 17, 'visibility': 10000, 'wind_speed': 3.95, 'wind_deg': 335, 'wind_gust': 5.58, 'weather': [{'id': 801, 'main': 'Clouds', 'description': 'few clouds', 'icon': '02d'}], 'pop': 0}, {'dt': 1718481600, 'temp': 27.52, 'feels_like': 26.8, 'pressure': 1015, 'humidity': 31, 'dew_point': 8.9, 'uvi': 4.66, 'clouds': 10, 'visibility': 10000, 'wind_speed': 3.98, 'wind_deg': 342, 'wind_gust': 5.38, 'weather': [{'id': 800, 'main': 'Clear', 'description': 'clear sky', 'icon': '01d'}], 'pop': 0}, {'dt': 1718485200, 'temp': 27.82, 'feels_like': 26.84, 'pressure': 1015, 'humidity': 27, 'dew_point': 6.74, 'uvi': 2.78, 'clouds': 4, 'visibility': 10000, 'wind_speed': 4.12, 'wind_deg': 348, 'wind_gust': 5.57, 'weather': [{'id': 800, 'main': 'Clear', 'description': 'clear sky', 'icon': '01d'}], 'pop': 0}, {'dt': 1718488800, 'temp': 26.96, 'feels_like': 26.39, 'pressure': 1016, 'humidity': 30, 'dew_point': 7.92, 'uvi': 1.29, 'clouds': 5, 'visibility': 10000, 'wind_speed': 4.35, 'wind_deg': 357, 'wind_gust': 5.07, 'weather': [{'id': 800, 'main': 'Clear', 'description': 'clear sky', 'icon': '01d'}], 'pop': 0}, {'dt': 1718492400, 'temp': 25.1, 'feels_like': 24.61, 'pressure': 1017, 'humidity': 36, 'dew_point': 8.66, 'uvi': 0.43, 'clouds': 9, 'visibility': 10000, 'wind_speed': 4.5, 'wind_deg': 359, 'wind_gust': 6.53, 'weather': [{'id': 800, 'main': 'Clear', 'description': 'clear sky', 'icon': '01d'}], 'pop': 0}, {'dt': 1718496000, 'temp': 22.5, 'feels_like': 21.98, 'pressure': 1017, 'humidity': 45, 'dew_point': 9.5, 'uvi': 0, 'clouds': 7, 'visibility': 10000, 'wind_speed': 3.21, 'wind_deg': 355, 'wind_gust': 7.85, 'weather': [{'id': 800, 'main': 'Clear', 'description': 'clear sky', 'icon': '01d'}], 'pop': 0}, {'dt': 1718499600, 'temp': 20.32, 'feels_like': 19.79, 'pressure': 1018, 'humidity': 53, 'dew_point': 10.06, 'uvi': 0, 'clouds': 0, 'visibility': 10000, 'wind_speed': 3.6, 'wind_deg': 352, 'wind_gust': 9.31, 'weather': [{'id': 800, 'main': 'Clear', 'description': 'clear sky', 'icon': '01n'}], 'pop': 0}, {'dt': 1718503200, 'temp': 19.2, 'feels_like': 18.51, 'pressure': 1019, 'humidity': 51, 'dew_point': 8.68, 'uvi': 0, 'clouds': 0, 'visibility': 10000, 'wind_speed': 3.86, 'wind_deg': 348, 'wind_gust': 10.02, 'weather': [{'id': 800, 'main': 'Clear', 'description': 'clear sky', 'icon': '01n'}], 'pop': 0}, {'dt': 1718506800, 'temp': 18.08, 'feels_like': 17.33, 'pressure': 1020, 'humidity': 53, 'dew_point': 8.07, 'uvi': 0, 'clouds': 0, 'visibility': 10000, 'wind_speed': 3.45, 'wind_deg': 353, 'wind_gust': 9.85, 'weather': [{'id': 800, 'main': 'Clear', 'description': 'clear sky', 'icon': '01n'}], 'pop': 0}, {'dt': 1718510400, 'temp': 16.95, 'feels_like': 16.11, 'pressure': 1021, 'humidity': 54, 'dew_point': 7.32, 'uvi': 0, 'clouds': 0, 'visibility': 10000, 'wind_speed': 2.64, 'wind_deg': 347, 'wind_gust': 7.7, 'weather': [{'id': 800, 'main': 'Clear', 'description': 'clear sky', 'icon': '01n'}], 'pop': 0}, {'dt': 1718514000, 'temp': 16.06, 'feels_like': 15.16, 'pressure': 1021, 'humidity': 55, 'dew_point': 6.89, 'uvi': 0, 'clouds': 13, 'visibility': 10000, 'wind_speed': 1.97, 'wind_deg': 347, 'wind_gust': 5.3, 'weather': [{'id': 801, 'main': 'Clouds', 'description': 'few clouds', 'icon': '02n'}], 'pop': 0}, {'dt': 1718517600, 'temp': 15.45, 'feels_like': 14.54, 'pressure': 1021, 'humidity': 57, 'dew_point': 6.73, 'uvi': 0, 'clouds': 28, 'visibility': 10000, 'wind_speed': 2.13, 'wind_deg': 8, 'wind_gust': 5.89, 'weather': [{'id': 802, 'main': 'Clouds', 'description': 'scattered clouds', 'icon': '03n'}], 'pop': 0}, {'dt': 1718521200, 'temp': 14.97, 'feels_like': 14.06, 'pressure': 1021, 'humidity': 59, 'dew_point': 6.73, 'uvi': 0, 'clouds': 100, 'visibility': 10000, 'wind_speed': 2.64, 'wind_deg': 11, 'wind_gust': 8.98, 'weather': [{'id': 804, 'main': 'Clouds', 'description': 'overcast clouds', 'icon': '04n'}], 'pop': 0}, {'dt': 1718524800, 'temp': 14.79, 'feels_like': 13.79, 'pressure': 1022, 'humidity': 56, 'dew_point': 5.83, 'uvi': 0, 'clouds': 100, 'visibility': 10000, 'wind_speed': 2.86, 'wind_deg': 20, 'wind_gust': 9.1, 'weather': [{'id': 804, 'main': 'Clouds', 'description': 'overcast clouds', 'icon': '04n'}], 'pop': 0}, {'dt': 1718528400, 'temp': 13.7, 'feels_like': 12.64, 'pressure': 1023, 'humidity': 58, 'dew_point': 5.25, 'uvi': 0, 'clouds': 80, 'visibility': 10000, 'wind_speed': 2.62, 'wind_deg': 13, 'wind_gust': 7.42, 'weather': [{'id': 803, 'main': 'Clouds', 'description': 'broken clouds', 'icon': '04n'}], 'pop': 0}, {'dt': 1718532000, 'temp': 13.17, 'feels_like': 12.11, 'pressure': 1023, 'humidity': 60, 'dew_point': 5.22, 'uvi': 0.09, 'clouds': 82, 'visibility': 10000, 'wind_speed': 2.01, 'wind_deg': 2, 'wind_gust': 4.7, 'weather': [{'id': 803, 'main': 'Clouds', 'description': 'broken clouds', 'icon': '04d'}], 'pop': 0}, {'dt': 1718535600, 'temp': 14.6, 'feels_like': 13.58, 'pressure': 1024, 'humidity': 56, 'dew_point': 5.65, 'uvi': 0.41, 'clouds': 85, 'visibility': 10000, 'wind_speed': 2.41, 'wind_deg': 22, 'wind_gust': 5.37, 'weather': [{'id': 804, 'main': 'Clouds', 'description': 'overcast clouds', 'icon': '04d'}], 'pop': 0}, {'dt': 1718539200, 'temp': 17.06, 'feels_like': 16.02, 'pressure': 1024, 'humidity': 46, 'dew_point': 5.23, 'uvi': 1.31, 'clouds': 75, 'visibility': 10000, 'wind_speed': 2.73, 'wind_deg': 41, 'wind_gust': 5.05, 'weather': [{'id': 803, 'main': 'Clouds', 'description': 'broken clouds', 'icon': '04d'}], 'pop': 0}, {'dt': 1718542800, 'temp': 19.25, 'feels_like': 18.25, 'pressure': 1025, 'humidity': 39, 'dew_point': 4.63, 'uvi': 2.42, 'clouds': 19, 'visibility': 10000, 'wind_speed': 2.77, 'wind_deg': 52, 'wind_gust': 3.91, 'weather': [{'id': 801, 'main': 'Clouds', 'description': 'few clouds', 'icon': '02d'}], 'pop': 0}, {'dt': 1718546400, 'temp': 21.25, 'feels_like': 20.29, 'pressure': 1024, 'humidity': 33, 'dew_point': 3.95, 'uvi': 4.32, 'clouds': 56, 'visibility': 10000, 'wind_speed': 2.61, 'wind_deg': 59, 'wind_gust': 2.74, 'weather': [{'id': 803, 'main': 'Clouds', 'description': 'broken clouds', 'icon': '04d'}], 'pop': 0}, {'dt': 1718550000, 'temp': 23.16, 'feels_like': 22.29, 'pressure': 1024, 'humidity': 29, 'dew_point': 3.94, 'uvi': 6.72, 'clouds': 68, 'visibility': 10000, 'wind_speed': 1.98, 'wind_deg': 75, 'wind_gust': 1.36, 'weather': [{'id': 803, 'main': 'Clouds', 'description': 'broken clouds', 'icon': '04d'}], 'pop': 0}, {'dt': 1718553600, 'temp': 24.78, 'feels_like': 23.99, 'pressure': 1023, 'humidity': 26, 'dew_point': 3.74, 'uvi': 8.5, 'clouds': 76, 'visibility': 10000, 'wind_speed': 1.68, 'wind_deg': 101, 'wind_gust': 1.18, 'weather': [{'id': 803, 'main': 'Clouds', 'description': 'broken clouds', 'icon': '04d'}], 'pop': 0}, {'dt': 1718557200, 'temp': 26.52, 'feels_like': 26.52, 'pressure': 1023, 'humidity': 23, 'dew_point': 3.47, 'uvi': 8.63, 'clouds': 81, 'visibility': 10000, 'wind_speed': 1.71, 'wind_deg': 111, 'wind_gust': 1.42, 'weather': [{'id': 803, 'main': 'Clouds', 'description': 'broken clouds', 'icon': '04d'}], 'pop': 0}, {'dt': 1718560800, 'temp': 26.65, 'feels_like': 26.65, 'pressure': 1022, 'humidity': 22, 'dew_point': 2.98, 'uvi': 8.37, 'clouds': 84, 'visibility': 10000, 'wind_speed': 2.36, 'wind_deg': 133, 'wind_gust': 1.82, 'weather': [{'id': 803, 'main': 'Clouds', 'description': 'broken clouds', 'icon': '04d'}], 'pop': 0}, {'dt': 1718564400, 'temp': 26.76, 'feels_like': 26, 'pressure': 1022, 'humidity': 22, 'dew_point': 3.3, 'uvi': 7.08, 'clouds': 100, 'visibility': 10000, 'wind_speed': 3.34, 'wind_deg': 142, 'wind_gust': 2.59, 'weather': [{'id': 804, 'main': 'Clouds', 'description': 'overcast clouds', 'icon': '04d'}], 'pop': 0}, {'dt': 1718568000, 'temp': 26.5, 'feels_like': 26.5, 'pressure': 1022, 'humidity': 24, 'dew_point': 3.99, 'uvi': 5.11, 'clouds': 83, 'visibility': 10000, 'wind_speed': 4.11, 'wind_deg': 141, 'wind_gust': 3.14, 'weather': [{'id': 803, 'main': 'Clouds', 'description': 'broken clouds', 'icon': '04d'}], 'pop': 0}, {'dt': 1718571600, 'temp': 25.64, 'feels_like': 24.94, 'pressure': 1022, 'humidity': 26, 'dew_point': 4.67, 'uvi': 3.09, 'clouds': 85, 'visibility': 10000, 'wind_speed': 4.56, 'wind_deg': 138, 'wind_gust': 3.84, 'weather': [{'id': 804, 'main': 'Clouds', 'description': 'overcast clouds', 'icon': '04d'}], 'pop': 0}, {'dt': 1718575200, 'temp': 24.1, 'feels_like': 23.4, 'pressure': 1022, 'humidity': 32, 'dew_point': 6.11, 'uvi': 1.42, 'clouds': 87, 'visibility': 10000, 'wind_speed': 4.55, 'wind_deg': 138, 'wind_gust': 4.81, 'weather': [{'id': 804, 'main': 'Clouds', 'description': 'overcast clouds', 'icon': '04d'}], 'pop': 0}, {'dt': 1718578800, 'temp': 21.72, 'feels_like': 20.94, 'pressure': 1022, 'humidity': 38, 'dew_point': 6.57, 'uvi': 0.46, 'clouds': 74, 'visibility': 10000, 'wind_speed': 4.12, 'wind_deg': 132, 'wind_gust': 5.29, 'weather': [{'id': 803, 'main': 'Clouds', 'description': 'broken clouds', 'icon': '04d'}], 'pop': 0}, {'dt': 1718582400, 'temp': 19.7, 'feels_like': 18.93, 'pressure': 1023, 'humidity': 46, 'dew_point': 7.48, 'uvi': 0, 'clouds': 66, 'visibility': 10000, 'wind_speed': 3.25, 'wind_deg': 136, 'wind_gust': 6.01, 'weather': [{'id': 803, 'main': 'Clouds', 'description': 'broken clouds', 'icon': '04d'}], 'pop': 0}, {'dt': 1718586000, 'temp': 18.21, 'feels_like': 17.52, 'pressure': 1023, 'humidity': 55, 'dew_point': 8.68, 'uvi': 0, 'clouds': 88, 'visibility': 10000, 'wind_speed': 2.89, 'wind_deg': 147, 'wind_gust': 6.87, 'weather': [{'id': 804, 'main': 'Clouds', 'description': 'overcast clouds', 'icon': '04n'}], 'pop': 0}, {'dt': 1718589600, 'temp': 17.35, 'feels_like': 16.79, 'pressure': 1023, 'humidity': 63, 'dew_point': 10.06, 'uvi': 0, 'clouds': 94, 'visibility': 10000, 'wind_speed': 2.23, 'wind_deg': 150, 'wind_gust': 6.09, 'weather': [{'id': 804, 'main': 'Clouds', 'description': 'overcast clouds', 'icon': '04n'}], 'pop': 0}, {'dt': 1718593200, 'temp': 16.73, 'feels_like': 16.29, 'pressure': 1023, 'humidity': 70, 'dew_point': 10.86, 'uvi': 0, 'clouds': 97, 'visibility': 10000, 'wind_speed': 1.51, 'wind_deg': 156, 'wind_gust': 4.09, 'weather': [{'id': 804, 'main': 'Clouds', 'description': 'overcast clouds', 'icon': '04n'}], 'pop': 0}, {'dt': 1718596800, 'temp': 16.15, 'feels_like': 15.78, 'pressure': 1023, 'humidity': 75, 'dew_point': 11.51, 'uvi': 0, 'clouds': 96, 'visibility': 10000, 'wind_speed': 1.21, 'wind_deg': 145, 'wind_gust': 3.25, 'weather': [{'id': 804, 'main': 'Clouds', 'description': 'overcast clouds', 'icon': '04n'}], 'pop': 0}, {'dt': 1718600400, 'temp': 15.97, 'feels_like': 15.71, 'pressure': 1023, 'humidity': 80, 'dew_point': 12.15, 'uvi': 0, 'clouds': 96, 'visibility': 10000, 'wind_speed': 0.88, 'wind_deg': 172, 'wind_gust': 1.05, 'weather': [{'id': 804, 'main': 'Clouds', 'description': 'overcast clouds', 'icon': '04n'}], 'pop': 0}, {'dt': 1718604000, 'temp': 15.83, 'feels_like': 15.66, 'pressure': 1023, 'humidity': 84, 'dew_point': 12.72, 'uvi': 0, 'clouds': 96, 'visibility': 10000, 'wind_speed': 0.96, 'wind_deg': 189, 'wind_gust': 1.11, 'weather': [{'id': 804, 'main': 'Clouds', 'description': 'overcast clouds', 'icon': '04n'}], 'pop': 0}, {'dt': 1718607600, 'temp': 15.43, 'feels_like': 15.33, 'pressure': 1023, 'humidity': 88, 'dew_point': 13.17, 'uvi': 0, 'clouds': 100, 'visibility': 10000, 'wind_speed': 0.86, 'wind_deg': 199, 'wind_gust': 0.93, 'weather': [{'id': 804, 'main': 'Clouds', 'description': 'overcast clouds', 'icon': '04n'}], 'pop': 0}, {'dt': 1718611200, 'temp': 15.29, 'feels_like': 15.22, 'pressure': 1023, 'humidity': 90, 'dew_point': 13.42, 'uvi': 0, 'clouds': 91, 'visibility': 10000, 'wind_speed': 0.77, 'wind_deg': 192, 'wind_gust': 0.84, 'weather': [{'id': 804, 'main': 'Clouds', 'description': 'overcast clouds', 'icon': '04n'}], 'pop': 0}, {'dt': 1718614800, 'temp': 15.77, 'feels_like': 15.75, 'pressure': 1023, 'humidity': 90, 'dew_point': 13.68, 'uvi': 0, 'clouds': 92, 'visibility': 10000, 'wind_speed': 1.09, 'wind_deg': 200, 'wind_gust': 1.92, 'weather': [{'id': 804, 'main': 'Clouds', 'description': 'overcast clouds', 'icon': '04n'}], 'pop': 0}, {'dt': 1718618400, 'temp': 16.97, 'feels_like': 16.92, 'pressure': 1023, 'humidity': 84, 'dew_point': 14, 'uvi': 0.1, 'clouds': 94, 'visibility': 10000, 'wind_speed': 0.69, 'wind_deg': 164, 'wind_gust': 1.93, 'weather': [{'id': 804, 'main': 'Clouds', 'description': 'overcast clouds', 'icon': '04d'}], 'pop': 0}, {'dt': 1718622000, 'temp': 17.97, 'feels_like': 17.91, 'pressure': 1023, 'humidity': 80, 'dew_point': 14.28, 'uvi': 0.53, 'clouds': 92, 'visibility': 10000, 'wind_speed': 1.17, 'wind_deg': 172, 'wind_gust': 2.76, 'weather': [{'id': 804, 'main': 'Clouds', 'description': 'overcast clouds', 'icon': '04d'}], 'pop': 0}, {'dt': 1718625600, 'temp': 19.63, 'feels_like': 19.55, 'pressure': 1023, 'humidity': 73, 'dew_point': 14.41, 'uvi': 1.56, 'clouds': 90, 'visibility': 10000, 'wind_speed': 2.09, 'wind_deg': 180, 'wind_gust': 4.74, 'weather': [{'id': 804, 'main': 'Clouds', 'description': 'overcast clouds', 'icon': '04d'}], 'pop': 0}, {'dt': 1718629200, 'temp': 22.83, 'feels_like': 22.68, 'pressure': 1023, 'humidity': 58, 'dew_point': 13.85, 'uvi': 3.27, 'clouds': 11, 'visibility': 10000, 'wind_speed': 2.82, 'wind_deg': 191, 'wind_gust': 6.21, 'weather': [{'id': 801, 'main': 'Clouds', 'description': 'few clouds', 'icon': '02d'}], 'pop': 0}, {'dt': 1718632800, 'temp': 25.1, 'feels_like': 25, 'pressure': 1022, 'humidity': 51, 'dew_point': 14.04, 'uvi': 5.28, 'clouds': 5, 'visibility': 10000, 'wind_speed': 3.78, 'wind_deg': 200, 'wind_gust': 6.26, 'weather': [{'id': 800, 'main': 'Clear', 'description': 'clear sky', 'icon': '01d'}], 'pop': 0}], 'daily': [{'dt': 1718467200, 'sunrise': 1718443547, 'sunset': 1718497849, 'moonrise': 1718475600, 'moonset': 1718429820, 'moon_phase': 0.29, 'summary': 'Expect a day of partly cloudy with rain', 'temp': {'day': 24.68, 'min': 15.5, 'max': 27.82, 'night': 18.08, 'eve': 26.96, 'morn': 15.5}, 'feels_like': {'day': 24.59, 'night': 17.33, 'eve': 26.39, 'morn': 15.43}, 'pressure': 1016, 'humidity': 53, 'dew_point': 14.47, 'wind_speed': 4.5, 'wind_deg': 359, 'wind_gust': 10.02, 'weather': [{'id': 500, 'main': 'Rain', 'description': 'light rain', 'icon': '10d'}], 'clouds': 40, 'pop': 0.49, 'rain': 0.12, 'uvi': 8.38}, {'dt': 1718553600, 'sunrise': 1718529950, 'sunset': 1718584271, 'moonrise': 1718565660, 'moonset': 1718517360, 'moon_phase': 0.32, 'summary': 'There will be clear sky until morning, then partly cloudy', 'temp': {'day': 24.78, 'min': 13.17, 'max': 26.76, 'night': 16.73, 'eve': 24.1, 'morn': 13.17}, 'feels_like': {'day': 23.99, 'night': 16.29, 'eve': 23.4, 'morn': 12.11}, 'pressure': 1023, 'humidity': 26, 'dew_point': 3.74, 'wind_speed': 4.56, 'wind_deg': 138, 'wind_gust': 9.1, 'weather': [{'id': 803, 'main': 'Clouds', 'description': 'broken clouds', 'icon': '04d'}], 'clouds': 76, 'pop': 0, 'uvi': 8.63}, {'dt': 1718640000, 'sunrise': 1718616355, 'sunset': 1718670690, 'moonrise': 1718655840, 'moonset': 1718604960, 'moon_phase': 0.36, 'summary': 'Expect a day of partly cloudy with clear spells', 'temp': {'day': 28.44, 'min': 15.29, 'max': 32.26, 'night': 23.86, 'eve': 31.57, 'morn': 16.97}, 'feels_like': {'day': 28.57, 'night': 24.34, 'eve': 32.75, 'morn': 16.92}, 'pressure': 1021, 'humidity': 46, 'dew_point': 15.43, 'wind_speed': 4.32, 'wind_deg': 246, 'wind_gust': 7.49, 'weather': [{'id': 801, 'main': 'Clouds', 'description': 'few clouds', 'icon': '02d'}], 'clouds': 14, 'pop': 0, 'uvi': 9.94}, {'dt': 1718726400, 'sunrise': 1718702761, 'sunset': 1718757108, 'moonrise': 1718746260, 'moonset': 1718692800, 'moon_phase': 0.39, 'summary': 'There will be clear sky until morning, then partly cloudy', 'temp': {'day': 31.02, 'min': 20, 'max': 34.69, 'night': 25.31, 'eve': 33.26, 'morn': 20.19}, 'feels_like': {'day': 32.27, 'night': 25.78, 'eve': 34.91, 'morn': 20.48}, 'pressure': 1022, 'humidity': 48, 'dew_point': 18.39, 'wind_speed': 2.93, 'wind_deg': 208, 'wind_gust': 9.01, 'weather': [{'id': 804, 'main': 'Clouds', 'description': 'overcast clouds', 'icon': '04d'}], 'clouds': 100, 'pop': 0, 'uvi': 9.33}, {'dt': 1718812800, 'sunrise': 1718789170, 'sunset': 1718843524, 'moonrise': 1718836680, 'moonset': 1718780940, 'moon_phase': 0.42, 'summary': 'There will be partly cloudy today', 'temp': {'day': 29.55, 'min': 21.18, 'max': 33.11, 'night': 23.63, 'eve': 33.11, 'morn': 21.18}, 'feels_like': {'day': 30.26, 'night': 23.8, 'eve': 34.18, 'morn': 21.44}, 'pressure': 1026, 'humidity': 49, 'dew_point': 17.41, 'wind_speed': 3.92, 'wind_deg': 214, 'wind_gust': 9.04, 'weather': [{'id': 804, 'main': 'Clouds', 'description': 'overcast clouds', 'icon': '04d'}], 'clouds': 100, 'pop': 0.04, 'uvi': 1.39}, {'dt': 1718899200, 'sunrise': 1718875580, 'sunset': 1718929938, 'moonrise': 1718927220, 'moonset': 1718869500, 'moon_phase': 0.45, 'summary': 'There will be partly cloudy today', 'temp': {'day': 29.21, 'min': 20.44, 'max': 33.09, 'night': 25.71, 'eve': 33.09, 'morn': 20.44}, 'feels_like': {'day': 29.94, 'night': 26.27, 'eve': 34.38, 'morn': 20.6}, 'pressure': 1026, 'humidity': 50, 'dew_point': 17.42, 'wind_speed': 3.88, 'wind_deg': 238, 'wind_gust': 7.88, 'weather': [{'id': 804, 'main': 'Clouds', 'description': 'overcast clouds', 'icon': '04d'}], 'clouds': 100, 'pop': 0, 'uvi': 2}, {'dt': 1718985600, 'sunrise': 1718961992, 'sunset': 1719016350, 'moonrise': 1719017460, 'moonset': 1718958660, 'moon_phase': 0.5, 'summary': 'The day will start with partly cloudy through the late morning hours, transitioning to rain', 'temp': {'day': 32.56, 'min': 22.4, 'max': 32.56, 'night': 22.7, 'eve': 24.95, 'morn': 22.4}, 'feels_like': {'day': 34.65, 'night': 23.51, 'eve': 25.82, 'morn': 22.89}, 'pressure': 1024, 'humidity': 47, 'dew_point': 19.66, 'wind_speed': 2.73, 'wind_deg': 253, 'wind_gust': 8.37, 'weather': [{'id': 500, 'main': 'Rain', 'description': 'light rain', 'icon': '10d'}], 'clouds': 100, 'pop': 1, 'rain': 4.74, 'uvi': 2}, {'dt': 1719072000, 'sunrise': 1719048406, 'sunset': 1719102761, 'moonrise': 1719107220, 'moonset': 1719048480, 'moon_phase': 0.52, 'summary': 'Expect a day of partly cloudy with rain', 'temp': {'day': 31, 'min': 21.09, 'max': 34.76, 'night': 23.31, 'eve': 34.41, 'morn': 21.09}, 'feels_like': {'day': 32.42, 'night': 23.92, 'eve': 35.88, 'morn': 21.79}, 'pressure': 1020, 'humidity': 49, 'dew_point': 19.01, 'wind_speed': 4.13, 'wind_deg': 230, 'wind_gust': 8.67, 'weather': [{'id': 500, 'main': 'Rain', 'description': 'light rain', 'icon': '10d'}], 'clouds': 29, 'pop': 1, 'rain': 3.36, 'uvi': 2}]}
    2024-06-15 11:51:25.568 DEBUG (SyncWorker_4) [custom_components.smart_irrigation.OWMClient] OWMCLIENT daily rain: 0.12
    2024-06-15 11:51:25.569 DEBUG (SyncWorker_4) [custom_components.smart_irrigation.OWMClient] OWMCLIENT daily precipitation: 0.12
    2024-06-15 11:51:25.589 DEBUG (MainThread) [custom_components.smart_irrigation] async_update_all for mapping 0 new mapping_data: {'Windspeed': 3.08155842969193, 'Pressure': 1016.0, 'Humidity': 53, 'Temperature': 24.68, 'Dewpoint': 14.47, 'Precipitation': 0.12, 'retrieved': datetime.datetime(2024, 6, 15, 11, 51, 25, 589284)}

Thanks again.

jeroenterheerdt commented 3 weeks ago
  1. I'd set it to every hour or even higher (although if OWM doesn't provide within the hour info for your location and you're getting your info from OWM going higher than 1 hour doesn't help)
  2. yeah, debug logging will help to figure that out - you will see what is happening on calculate
  3. interesting, that should not be there. I thought I fixed these. I will open an issue for these separately --> #414
  4. depends on your config. you calculate at 22:01 so if the data was not included at that time then it won't be taken into account. start by increasing the update speed.
jgillies commented 2 weeks ago

I'm the other person who commented in the thread that led to this issue being created. Apologies for the delay in providing my info. I've attached my diagnostics file, in case it'll be of any help (although I'm seeing that it doesn't include the days from a couple weeks ago where we had heavy rainfall).

I'll try increasing my update frequency as well.

config_entry-smart_irrigation-12936cd39bd4a3cfc2ee2b2c4302bcc2.json