Smart Irrigation - save water by precisely watering your lawn/garden

Hi, I’m just starting with this add-on, but it looks very promising, thanks to the author. My problem is that I have two zones, “Linia” and “Trawnik,” and after resetting the bucket for the Linia zone, the data points for the Trawnik zone are deleted. I understand that this is wrong because the data is not taken into account in the calculations for the Trawnik zone. When I reset the bucket for the Trawnik zone, the data points for the Linia zone remain unchanged.

that is a bug, most likely. can you please open an issue on GitHub and provide the diagnostic file required?

Hi folks,

I have been fiddling with this integration a few weeks and thought it was working ok (e.g., I would get evaporation of 0.05 - 0.1" on a typical summer day here in NJ, USA). But, I have noticed a few times now, we get a lot of rain, and yet the bucket still goes down. Yesterday received over 1/2" of rain, and yet, the bucket dropped about 0.05". Tried to copy the relevant log details below. I have also created my own rainfall sensor based on OWM that shows accurately the last 24 hrs rain. That seems to be working (4th line in log overrides the OWM data, but they were pretty close in any case).

Difficult to debug as I need some significant rain to fall to confirm if SmartIrrigation is calculating correctly.

Any help appreciated.

2024-06-06 23:10:10.345 DEBUG (SyncWorker_1) [custom_components.smart_irrigation.OWMClient] OWMClient get_data called API https://api.openweathermap.org/data/3.0/onecall?units=metric&lat=40.769414725297196&lon=-74.41468692196707&appid=01c51d3d375eeb4b423bb77745f112aa and received {'lat': 40.7694, 'lon': -74.4147, 'timezone': 'America/New_York', 'timezone_offset': -14400, 'current': {'dt': 1717729810, 'sunrise': 1717666009, 'sunset': 1717719981, 'temp': 20.12, 'feels_like': 20.56, 'pressure': 1001, 'humidity': 91, 'dew_point': 18.6, 'uvi': 0, 'clouds': 40, 'visibility': 10000, 'wind_speed': 1.54, 'wind_deg': 180, 'weather': [{'id': 701, 'main': 'Mist', 'description': 'mist', 'icon': '50n'}]}, 'minutely': [{'dt': 1717729860, 'precipitation': 0}, {'dt': 1717729920, 'precipitation': 0}, {'dt': 1717729980, 'precipitation': 0}, {'dt': 1717730040, 'precipitation': 0}, {'dt': 1717730100, 'precipitation': 0}, {'dt': 1717730160, 'precipitation': 0}, {'dt': 1717730220, 'precipitation': 0}, {'dt': 1717730280, 'precipitation': 0}, {'dt': 1717730340, 'precipitation': 0}, {'dt': 1717730400, 'precipitation': 0}, {'dt': 1717730460, 'precipitation': 0}, {'dt': 1717730520, 'precipitation': 0}, {'dt': 1717730580, 'precipitation': 0}, {'dt': 1717730640, 'precipitation': 0}, {'dt': 1717730700, 'precipitation': 0}, {'dt': 1717730760, 'precipitation': 0}, {'dt': 1717730820, 'precipitation': 0}, {'dt': 1717730880, 'precipitation': 0}, {'dt': 1717730940, 'precipitation': 0}, {'dt': 1717731000, 'precipitation': 0}, {'dt': 1717731060, 'precipitation': 0}, {'dt': 1717731120, 'precipitation': 0}, {'dt': 1717731180, 'precipitation': 0}, {'dt': 1717731240, 'precipitation': 0}, {'dt': 1717731300, 'precipitation': 0}, {'dt': 1717731360, 'precipitation': 0}, {'dt': 1717731420, 'precipitation': 0}, {'dt': 1717731480, 'precipitation': 0}, {'dt': 1717731540, 'precipitation': 0}, {'dt': 1717731600, 'precipitation': 0}, {'dt': 1717731660, 'precipitation': 0}, {'dt': 1717731720, 'precipitation': 0}, {'dt': 1717731780, 'precipitation': 0}, {'dt': 1717731840, 'precipitation': 0}, {'dt': 1717731900, 'precipitation': 0}, {'dt': 1717731960, 'precipitation': 0}, {'dt': 1717732020, 'precipitation': 0}, {'dt': 1717732080, 'precipitation': 0}, {'dt': 1717732140, 'precipitation': 0}, {'dt': 1717732200, 'precipitation': 0}, {'dt': 1717732260, 'precipitation': 0}, {'dt': 1717732320, 'precipitation': 0}, {'dt': 1717732380, 'precipitation': 0}, {'dt': 1717732440, 'precipitation': 0}, {'dt': 1717732500, 'precipitation': 0}, {'dt': 1717732560, 'precipitation': 0}, {'dt': 1717732620, 'precipitation': 0}, {'dt': 1717732680, 'precipitation': 0}, {'dt': 1717732740, 'precipitation': 0}, {'dt': 1717732800, 'precipitation': 0}, {'dt': 1717732860, 'precipitation': 0}, {'dt': 1717732920, 'precipitation': 0}, {'dt': 1717732980, 'precipitation': 0}, {'dt': 1717733040, 'precipitation': 0}, {'dt': 1717733100, 'precipitation': 0}, {'dt': 1717733160, 'precipitation': 0}, {'dt': 1717733220, 'precipitation': 0}, {'dt': 1717733280, 'precipitation': 0}, {'dt': 1717733340, 'precipitation': 0}, {'dt': 1717733400, 'precipitation': 0}], 'hourly': [{'dt': 1717729200, 'temp': 20.12, 'feels_like': 20.56, 'pressure': 1001, 'humidity': 91, 'dew_point': 18.6, 'uvi': 0, 'clouds': 40, 'visibility': 10000, 'wind_speed': 2.95, 'wind_deg': 334, 'wind_gust': 10.58, 'weather': [{'id': 802, 'main': 'Clouds', 'description': 'scattered clouds', 'icon': '03n'}], 'pop': 0.71}, {'dt': 1717732800, 'temp': 20.01, 'feels_like': 20.42, 'pressure': 1001, 'humidity': 90, 'dew_point': 18.32, 'uvi': 0, 'clouds': 32, 'visibility': 10000, 'wind_speed': 2.61, 'wind_deg': 336, 'wind_gust': 9.98, 'weather': [{'id': 802, 'main': 'Clouds', 'description': 'scattered clouds', 'icon': '03n'}], 'pop': 0.8}, {'dt': 1717736400, 'temp': 19.71, 'feels_like': 20.06, 'pressure': 1001, 'humidity': 89, 'dew_point': 17.85, 'uvi': 0, 'clouds': 26, 'visibility': 10000, 'wind_speed': 2.83, 'wind_deg': 329, 'wind_gust': 10.07, 'weather': [{'id': 802, 'main': 'Clouds', 'description': 'scattered clouds', 'icon': '03n'}], 'pop': 0.63}, {'dt': 1717740000, 'temp': 19.2, 'feels_like': 19.47, 'pressure': 1001, 'humidity': 88, 'dew_point': 17.17, 'uvi': 0, 'clouds': 20, 'visibility': 10000, 'wind_speed': 1.81, 'wind_deg': 334, 'wind_gust': 5.78, 'weather': [{'id': 801, 'main': 'Clouds', 'description': 'few clouds', 'icon': '02n'}], 'pop': 0.47}, {'dt': 1717743600, 'temp': 18.42, 'feels_like': 18.59, 'pressure': 1001, 'humidity': 87, 'dew_point': 16.22, 'uvi': 0, 'clouds': 10, 'visibility': 10000, 'wind_speed': 1.44, 'wind_deg': 314, 'wind_gust': 1.28, 'weather': [{'id': 800, 'main': 'Clear', 'description': 'clear sky', 'icon': '01n'}], 'pop': 0}, {'dt': 1717747200, 'temp': 17.46, 'feels_like': 17.53, 'pressure': 1001, 'humidity': 87, 'dew_point': 14.95, 'uvi': 0, 'clouds': 3, 'visibility': 10000, 'wind_speed': 1.89, 'wind_deg': 303, 'wind_gust': 1.91, 'weather': [{'id': 800, 'main': 'Clear', 'description': 'clear sky', 'icon': '01n'}], 'pop': 0}, {'dt': 1717750800, 'temp': 17.23, 'feels_like': 17.28, 'pressure': 1001, 'humidity': 87, 'dew_point': 14.61, 'uvi': 0, 'clouds': 18, 'visibility': 10000, 'wind_speed': 1.73, 'wind_deg': 304, 'wind_gust': 2.16, 'weather': [{'id': 801, 'main': 'Clouds', 'description': 'few clouds', 'icon': '02n'}], 'pop': 0}, {'dt': 1717754400, 'temp': 16.75, 'feels_like': 16.78, 'pressure': 1002, 'humidity': 88, 'dew_point': 14.44, 'uvi': 0, 'clouds': 15, 'visibility': 10000, 'wind_speed': 1.86, 'wind_deg': 300, 'wind_gust': 3.55, 'weather': [{'id': 801, 'main': 'Clouds', 'description': 'few clouds', 'icon': '02d'}], 'pop': 0}, {'dt': 1717758000, 'temp': 18.5, 'feels_like': 18.57, 'pressure': 1002, 'humidity': 83, 'dew_point': 15.43, 'uvi': 0.28, 'clouds': 12, 'visibility': 10000, 'wind_speed': 1.36, 'wind_deg': 292, 'wind_gust': 3.74, 'weather': [{'id': 801, 'main': 'Clouds', 'description': 'few clouds', 'icon': '02d'}], 'pop': 0}, {'dt': 1717761600, 'temp': 21.04, 'feels_like': 21.03, 'pressure': 1002, 'humidity': 70, 'dew_point': 15.12, 'uvi': 1.42, 'clouds': 11, 'visibility': 10000, 'wind_speed': 1.89, 'wind_deg': 279, 'wind_gust': 3.91, 'weather': [{'id': 801, 'main': 'Clouds', 'description': 'few clouds', 'icon': '02d'}], 'pop': 0}, {'dt': 1717765200, 'temp': 23.33, 'feels_like': 23.1, 'pressure': 1003, 'humidity': 53, 'dew_point': 13.05, 'uvi': 2.98, 'clouds': 0, 'visibility': 10000, 'wind_speed': 2.77, 'wind_deg': 271, 'wind_gust': 5.26, 'weather': [{'id': 800, 'main': 'Clear', 'description': 'clear sky', 'icon': '01d'}], 'pop': 0}, {'dt': 1717768800, 'temp': 25.13, 'feels_like': 24.72, 'pressure': 1002, 'humidity': 39, 'dew_point': 10.06, 'uvi': 4.83, 'clouds': 0, 'visibility': 10000, 'wind_speed': 3.06, 'wind_deg': 264, 'wind_gust': 6.91, 'weather': [{'id': 800, 'main': 'Clear', 'description': 'clear sky', 'icon': '01d'}], 'pop': 0}, {'dt': 1717772400, 'temp': 26.2, 'feels_like': 26.2, 'pressure': 1002, 'humidity': 34, 'dew_point': 9.16, 'uvi': 6.95, 'clouds': 0, 'visibility': 10000, 'wind_speed': 3.98, 'wind_deg': 257, 'wind_gust': 7.23, 'weather': [{'id': 800, 'main': 'Clear', 'description': 'clear sky', 'icon': '01d'}], 'pop': 0}, {'dt': 1717776000, 'temp': 26.91, 'feels_like': 26.44, 'pressure': 1002, 'humidity': 32, 'dew_point': 8.89, 'uvi': 8.42, 'clouds': 0, 'visibility': 10000, 'wind_speed': 4.9, 'wind_deg': 252, 'wind_gust': 7.61, 'weather': [{'id': 800, 'main': 'Clear', 'description': 'clear sky', 'icon': '01d'}], 'pop': 0}, {'dt': 1717779600, 'temp': 27.36, 'feels_like': 26.78, 'pressure': 1001, 'humidity': 33, 'dew_point': 9.78, 'uvi': 5.69, 'clouds': 0, 'visibility': 10000, 'wind_speed': 5.23, 'wind_deg': 249, 'wind_gust': 8.53, 'weather': [{'id': 800, 'main': 'Clear', 'description': 'clear sky', 'icon': '01d'}], 'pop': 0}, {'dt': 1717783200, 'temp': 27.78, 'feels_like': 27.13, 'pressure': 1001, 'humidity': 34, 'dew_point': 10.31, 'uvi': 7.56, 'clouds': 2, 'visibility': 10000, 'wind_speed': 5.82, 'wind_deg': 243, 'wind_gust': 9.14, 'weather': [{'id': 800, 'main': 'Clear', 'description': 'clear sky', 'icon': '01d'}], 'pop': 0}, {'dt': 1717786800, 'temp': 27.76, 'feels_like': 27.17, 'pressure': 1001, 'humidity': 35, 'dew_point': 10.72, 'uvi': 4.51, 'clouds': 21, 'visibility': 10000, 'wind_speed': 6.42, 'wind_deg': 247, 'wind_gust': 9.33, 'weather': [{'id': 801, 'main': 'Clouds', 'description': 'few clouds', 'icon': '02d'}], 'pop': 0}, {'dt': 1717790400, 'temp': 26.73, 'feels_like': 26.63, 'pressure': 1001, 'humidity': 39, 'dew_point': 11.46, 'uvi': 3.19, 'clouds': 34, 'visibility': 10000, 'wind_speed': 6.44, 'wind_deg': 267, 'wind_gust': 8.81, 'weather': [{'id': 802, 'main': 'Clouds', 'description': 'scattered clouds', 'icon': '03d'}], 'pop': 0}, {'dt': 1717794000, 'temp': 23.93, 'feels_like': 23.66, 'pressure': 1002, 'humidity': 49, 'dew_point': 12.17, 'uvi': 0.95, 'clouds': 59, 'visibility': 10000, 'wind_speed': 4.47, 'wind_deg': 267, 'wind_gust': 9.46, 'weather': [{'id': 803, 'main': 'Clouds', 'description': 'broken clouds', 'icon': '04d'}], 'pop': 0}, {'dt': 1717797600, 'temp': 25.29, 'feels_like': 25.05, 'pressure': 1001, 'humidity': 45, 'dew_point': 12.35, 'uvi': 0.32, 'clouds': 48, 'visibility': 10000, 'wind_speed': 4.89, 'wind_deg': 258, 'wind_gust': 9.68, 'weather': [{'id': 802, 'main': 'Clouds', 'description': 'scattered clouds', 'icon': '03d'}], 'pop': 0}, {'dt': 1717801200, 'temp': 22.99, 'feels_like': 22.68, 'pressure': 1003, 'humidity': 51, 'dew_point': 12.02, 'uvi': 0.2, 'clouds': 55, 'visibility': 10000, 'wind_speed': 5.54, 'wind_deg': 279, 'wind_gust': 9.55, 'weather': [{'id': 803, 'main': 'Clouds', 'description': 'broken clouds', 'icon': '04d'}], 'pop': 0}, {'dt': 1717804800, 'temp': 20.92, 'feels_like': 20.53, 'pressure': 1003, 'humidity': 56, 'dew_point': 11.58, 'uvi': 0, 'clouds': 56, 'visibility': 10000, 'wind_speed': 3.5, 'wind_deg': 294, 'wind_gust': 10, 'weather': [{'id': 803, 'main': 'Clouds', 'description': 'broken clouds', 'icon': '04d'}], 'pop': 0}, {'dt': 1717808400, 'temp': 19.05, 'feels_like': 18.58, 'pressure': 1004, 'humidity': 60, 'dew_point': 10.87, 'uvi': 0, 'clouds': 0, 'visibility': 10000, 'wind_speed': 3.09, 'wind_deg': 304, 'wind_gust': 8.44, 'weather': [{'id': 800, 'main': 'Clear', 'description': 'clear sky', 'icon': '01n'}], 'pop': 0}, {'dt': 1717812000, 'temp': 17.83, 'feels_like': 17.31, 'pressure': 1005, 'humidity': 63, 'dew_point': 10.43, 'uvi': 0, 'clouds': 0, 'visibility': 10000, 'wind_speed': 2.98, 'wind_deg': 314, 'wind_gust': 9.14, 'weather': [{'id': 800, 'main': 'Clear', 'description': 'clear sky', 'icon': '01n'}], 'pop': 0}, {'dt': 1717815600, 'temp': 16.97, 'feels_like': 16.42, 'pressure': 1005, 'humidity': 65, 'dew_point': 10.01, 'uvi': 0, 'clouds': 0, 'visibility': 10000, 'wind_speed': 2.99, 'wind_deg': 309, 'wind_gust': 9.7, 'weather': [{'id': 800, 'main': 'Clear', 'description': 'clear sky', 'icon': '01n'}], 'pop': 0}, {'dt': 1717819200, 'temp': 16.14, 'feels_like': 15.59, 'pressure': 1006, 'humidity': 68, 'dew_point': 9.82, 'uvi': 0, 'clouds': 0, 'visibility': 10000, 'wind_speed': 2.75, 'wind_deg': 300, 'wind_gust': 9.13, 'weather': [{'id': 800, 'main': 'Clear', 'description': 'clear sky', 'icon': '01n'}], 'pop': 0}, {'dt': 1717822800, 'temp': 15.39, 'feels_like': 14.84, 'pressure': 1006, 'humidity': 71, 'dew_point': 9.91, 'uvi': 0, 'clouds': 0, 'visibility': 10000, 'wind_speed': 2.38, 'wind_deg': 288, 'wind_gust': 7.52, 'weather': [{'id': 800, 'main': 'Clear', 'description': 'clear sky', 'icon': '01n'}], 'pop': 0}, {'dt': 1717826400, 'temp': 14.7, 'feels_like': 14.18, 'pressure': 1006, 'humidity': 75, 'dew_point': 10.02, 'uvi': 0, 'clouds': 1, 'visibility': 10000, 'wind_speed': 2.34, 'wind_deg': 278, 'wind_gust': 7.67, 'weather': [{'id': 800, 'main': 'Clear', 'description': 'clear sky', 'icon': '01n'}], 'pop': 0}, {'dt': 1717830000, 'temp': 14.16, 'feels_like': 13.67, 'pressure': 1006, 'humidity': 78, 'dew_point': 9.99, 'uvi': 0, 'clouds': 50, 'visibility': 10000, 'wind_speed': 2.5, 'wind_deg': 279, 'wind_gust': 8.54, 'weather': [{'id': 802, 'main': 'Clouds', 'description': 'scattered clouds', 'icon': '03n'}], 'pop': 0}, {'dt': 1717833600, 'temp': 13.5, 'feels_like': 13.02, 'pressure': 1006, 'humidity': 81, 'dew_point': 9.86, 'uvi': 0, 'clouds': 30, 'visibility': 10000, 'wind_speed': 2.53, 'wind_deg': 273, 'wind_gust': 8.75, 'weather': [{'id': 802, 'main': 'Clouds', 'description': 'scattered clouds', 'icon': '03n'}], 'pop': 0}, {'dt': 1717837200, 'temp': 12.97, 'feels_like': 12.46, 'pressure': 1006, 'humidity': 82, 'dew_point': 9.71, 'uvi': 0, 'clouds': 22, 'visibility': 10000, 'wind_speed': 2.46, 'wind_deg': 272, 'wind_gust': 8.32, 'weather': [{'id': 801, 'main': 'Clouds', 'description': 'few clouds', 'icon': '02n'}], 'pop': 0}, {'dt': 1717840800, 'temp': 12.88, 'feels_like': 12.36, 'pressure': 1006, 'humidity': 82, 'dew_point': 9.47, 'uvi': 0, 'clouds': 17, 'visibility': 10000, 'wind_speed': 2.67, 'wind_deg': 276, 'wind_gust': 9.57, 'weather': [{'id': 801, 'main': 'Clouds', 'description': 'few clouds', 'icon': '02d'}], 'pop': 0}, {'dt': 1717844400, 'temp': 14.55, 'feels_like': 14.02, 'pressure': 1007, 'humidity': 75, 'dew_point': 9.75, 'uvi': 0.42, 'clouds': 14, 'visibility': 10000, 'wind_speed': 3.28, 'wind_deg': 281, 'wind_gust': 9.74, 'weather': [{'id': 801, 'main': 'Clouds', 'description': 'few clouds', 'icon': '02d'}], 'pop': 0}, {'dt': 1717848000, 'temp': 16.64, 'feels_like': 16.06, 'pressure': 1008, 'humidity': 65, 'dew_point': 9.66, 'uvi': 1.21, 'clouds': 12, 'visibility': 10000, 'wind_speed': 4.72, 'wind_deg': 289, 'wind_gust': 9.9, 'weather': [{'id': 801, 'main': 'Clouds', 'description': 'few clouds', 'icon': '02d'}], 'pop': 0}, {'dt': 1717851600, 'temp': 18.47, 'feels_like': 17.83, 'pressure': 1008, 'humidity': 56, 'dew_point': 9.13, 'uvi': 2.55, 'clouds': 0, 'visibility': 10000, 'wind_speed': 5.25, 'wind_deg': 286, 'wind_gust': 8.58, 'weather': [{'id': 800, 'main': 'Clear', 'description': 'clear sky', 'icon': '01d'}], 'pop': 0}, {'dt': 1717855200, 'temp': 19.99, 'feels_like': 19.35, 'pressure': 1008, 'humidity': 50, 'dew_point': 9.03, 'uvi': 4.34, 'clouds': 0, 'visibility': 10000, 'wind_speed': 5.34, 'wind_deg': 284, 'wind_gust': 8.32, 'weather': [{'id': 800, 'main': 'Clear', 'description': 'clear sky', 'icon': '01d'}], 'pop': 0}, {'dt': 1717858800, 'temp': 21.51, 'feels_like': 20.87, 'pressure': 1008, 'humidity': 44, 'dew_point': 8.67, 'uvi': 5.4, 'clouds': 0, 'visibility': 10000, 'wind_speed': 5.4, 'wind_deg': 281, 'wind_gust': 8.29, 'weather': [{'id': 800, 'main': 'Clear', 'description': 'clear sky', 'icon': '01d'}], 'pop': 0}, {'dt': 1717862400, 'temp': 22.43, 'feels_like': 21.8, 'pressure': 1008, 'humidity': 41, 'dew_point': 8.37, 'uvi': 5.16, 'clouds': 9, 'visibility': 10000, 'wind_speed': 5.2, 'wind_deg': 283, 'wind_gust': 7.92, 'weather': [{'id': 800, 'main': 'Clear', 'description': 'clear sky', 'icon': '01d'}], 'pop': 0}, {'dt': 1717866000, 'temp': 22.41, 'feels_like': 21.78, 'pressure': 1008, 'humidity': 41, 'dew_point': 8.46, 'uvi': 6.97, 'clouds': 23, 'visibility': 10000, 'wind_speed': 5.09, 'wind_deg': 284, 'wind_gust': 8.19, 'weather': [{'id': 801, 'main': 'Clouds', 'description': 'few clouds', 'icon': '02d'}], 'pop': 0}, {'dt': 1717869600, 'temp': 22.27, 'feels_like': 21.65, 'pressure': 1008, 'humidity': 42, 'dew_point': 8.52, 'uvi': 7.46, 'clouds': 36, 'visibility': 10000, 'wind_speed': 5.17, 'wind_deg': 281, 'wind_gust': 8.3, 'weather': [{'id': 802, 'main': 'Clouds', 'description': 'scattered clouds', 'icon': '03d'}], 'pop': 0}, {'dt': 1717873200, 'temp': 22.21, 'feels_like': 21.64, 'pressure': 1008, 'humidity': 44, 'dew_point': 9.18, 'uvi': 5.54, 'clouds': 100, 'visibility': 10000, 'wind_speed': 5.17, 'wind_deg': 279, 'wind_gust': 8.81, 'weather': [{'id': 804, 'main': 'Clouds', 'description': 'overcast clouds', 'icon': '04d'}], 'pop': 0}, {'dt': 1717876800, 'temp': 23.25, 'feels_like': 22.68, 'pressure': 1008, 'humidity': 40, 'dew_point': 8.71, 'uvi': 3.95, 'clouds': 91, 'visibility': 10000, 'wind_speed': 5.8, 'wind_deg': 291, 'wind_gust': 10.09, 'weather': [{'id': 804, 'main': 'Clouds', 'description': 'overcast clouds', 'icon': '04d'}], 'pop': 0}, {'dt': 1717880400, 'temp': 23.97, 'feels_like': 23.39, 'pressure': 1007, 'humidity': 37, 'dew_point': 8.07, 'uvi': 1.91, 'clouds': 62, 'visibility': 10000, 'wind_speed': 5, 'wind_deg': 293, 'wind_gust': 10.94, 'weather': [{'id': 803, 'main': 'Clouds', 'description': 'broken clouds', 'icon': '04d'}], 'pop': 0}, {'dt': 1717884000, 'temp': 24.2, 'feels_like': 23.69, 'pressure': 1007, 'humidity': 39, 'dew_point': 9.05, 'uvi': 1.19, 'clouds': 46, 'visibility': 10000, 'wind_speed': 3.71, 'wind_deg': 284, 'wind_gust': 10.89, 'weather': [{'id': 802, 'main': 'Clouds', 'description': 'scattered clouds', 'icon': '03d'}], 'pop': 0}, {'dt': 1717887600, 'temp': 23.18, 'feels_like': 22.78, 'pressure': 1008, 'humidity': 47, 'dew_point': 10.97, 'uvi': 0.42, 'clouds': 37, 'visibility': 10000, 'wind_speed': 2.19, 'wind_deg': 282, 'wind_gust': 6.03, 'weather': [{'id': 802, 'main': 'Clouds', 'description': 'scattered clouds', 'icon': '03d'}], 'pop': 0}, {'dt': 1717891200, 'temp': 20.4, 'feels_like': 19.93, 'pressure': 1008, 'humidity': 55, 'dew_point': 10.6, 'uvi': 0, 'clouds': 31, 'visibility': 10000, 'wind_speed': 2.2, 'wind_deg': 321, 'wind_gust': 4.38, 'weather': [{'id': 802, 'main': 'Clouds', 'description': 'scattered clouds', 'icon': '03d'}], 'pop': 0}, {'dt': 1717894800, 'temp': 18.4, 'feels_like': 17.73, 'pressure': 1009, 'humidity': 55, 'dew_point': 8.94, 'uvi': 0, 'clouds': 0, 'visibility': 10000, 'wind_speed': 2.09, 'wind_deg': 319, 'wind_gust': 7.15, 'weather': [{'id': 800, 'main': 'Clear', 'description': 'clear sky', 'icon': '01n'}], 'pop': 0}, {'dt': 1717898400, 'temp': 17.28, 'feels_like': 16.53, 'pressure': 1009, 'humidity': 56, 'dew_point': 8.18, 'uvi': 0, 'clouds': 0, 'visibility': 10000, 'wind_speed': 2.05, 'wind_deg': 306, 'wind_gust': 7.96, 'weather': [{'id': 800, 'main': 'Clear', 'description': 'clear sky', 'icon': '01n'}], 'pop': 0}], 'daily': [{'dt': 1717689600, 'sunrise': 1717666009, 'sunset': 1717719981, 'moonrise': 1717664580, 'moonset': 1717722780, 'moon_phase': 0, 'summary': 'Expect a day of partly cloudy with rain', 'temp': {'day': 25.29, 'min': 20.12, 'max': 26.1, 'night': 20.12, 'eve': 25.5, 'morn': 20.9}, 'feels_like': {'day': 25.78, 'night': 20.56, 'eve': 26.27, 'morn': 21.6}, 'pressure': 1001, 'humidity': 73, 'dew_point': 19.83, 'wind_speed': 4.37, 'wind_deg': 224, 'wind_gust': 10.75, 'weather': [{'id': 501, 'main': 'Rain', 'description': 'moderate rain', 'icon': '10d'}], 'clouds': 93, 'pop': 1, 'rain': 9.67, 'uvi': 6.88}, {'dt': 1717776000, 'sunrise': 1717752394, 'sunset': 1717806417, 'moonrise': 1717754160, 'moonset': 1717812780, 'moon_phase': 0.04, 'summary': 'Expect a day of partly cloudy with clear spells', 'temp': {'day': 26.91, 'min': 16.75, 'max': 27.78, 'night': 16.97, 'eve': 25.29, 'morn': 16.75}, 'feels_like': {'day': 26.44, 'night': 16.42, 'eve': 25.05, 'morn': 16.78}, 'pressure': 1002, 'humidity': 32, 'dew_point': 8.89, 'wind_speed': 6.44, 'wind_deg': 267, 'wind_gust': 10.07, 'weather': [{'id': 800, 'main': 'Clear', 'description': 'clear sky', 'icon': '01d'}], 'clouds': 0, 'pop': 0.8, 'uvi': 8.42}, {'dt': 1717862400, 'sunrise': 1717838782, 'sunset': 1717892851, 'moonrise': 1717844220, 'moonset': 1717902180, 'moon_phase': 0.07, 'summary': 'Expect a day of partly cloudy with clear spells', 'temp': {'day': 22.43, 'min': 12.88, 'max': 24.2, 'night': 16.55, 'eve': 24.2, 'morn': 12.88}, 'feels_like': {'day': 21.8, 'night': 15.78, 'eve': 23.69, 'morn': 12.36}, 'pressure': 1008, 'humidity': 41, 'dew_point': 8.37, 'wind_speed': 5.8, 'wind_deg': 291, 'wind_gust': 10.94, 'weather': [{'id': 800, 'main': 'Clear', 'description': 'clear sky', 'icon': '01d'}], 'clouds': 9, 'pop': 0, 'uvi': 7.46}, {'dt': 1717948800, 'sunrise': 1717925171, 'sunset': 1717979285, 'moonrise': 1717934580, 'moonset': 1717990920, 'moon_phase': 0.11, 'summary': 'Expect a day of partly cloudy with rain', 'temp': {'day': 16.71, 'min': 14.62, 'max': 24.49, 'night': 16.49, 'eve': 23.84, 'morn': 14.89}, 'feels_like': {'day': 16.68, 'night': 15.89, 'eve': 23.4, 'morn': 14.21}, 'pressure': 1007, 'humidity': 86, 'dew_point': 14.15, 'wind_speed': 4.44, 'wind_deg': 291, 'wind_gust': 10.4, 'weather': [{'id': 500, 'main': 'Rain', 'description': 'light rain', 'icon': '10d'}], 'clouds': 99, 'pop': 0.69, 'rain': 0.3, 'uvi': 8.18}, {'dt': 1718035200, 'sunrise': 1718011562, 'sunset': 1718065716, 'moonrise': 1718025000, 'moonset': 0, 'moon_phase': 0.14, 'summary': 'Expect a day of partly cloudy with clear spells', 'temp': {'day': 23.31, 'min': 13.31, 'max': 23.79, 'night': 15.5, 'eve': 23.79, 'morn': 13.31}, 'feels_like': {'day': 22.79, 'night': 14.88, 'eve': 23.35, 'morn': 12.65}, 'pressure': 1007, 'humidity': 42, 'dew_point': 9.43, 'wind_speed': 4.54, 'wind_deg': 310, 'wind_gust': 9.97, 'weather': [{'id': 800, 'main': 'Clear', 'description': 'clear sky', 'icon': '01d'}], 'clouds': 5, 'pop': 0, 'uvi': 7.07}, {'dt': 1718121600, 'sunrise': 1718097955, 'sunset': 1718152146, 'moonrise': 1718115360, 'moonset': 1718079120, 'moon_phase': 0.17, 'summary': 'Expect a day of partly cloudy with rain', 'temp': {'day': 20.4, 'min': 13.11, 'max': 22.09, 'night': 18.01, 'eve': 22.09, 'morn': 13.11}, 'feels_like': {'day': 19.88, 'night': 18.45, 'eve': 21.84, 'morn': 12.46}, 'pressure': 1015, 'humidity': 53, 'dew_point': 10.21, 'wind_speed': 4.89, 'wind_deg': 126, 'wind_gust': 11.48, 'weather': [{'id': 501, 'main': 'Rain', 'description': 'moderate rain', 'icon': '10d'}], 'clouds': 80, 'pop': 1, 'rain': 8.38, 'uvi': 1.27}, {'dt': 1718208000, 'sunrise': 1718184350, 'sunset': 1718238574, 'moonrise': 1718205600, 'moonset': 1718167020, 'moon_phase': 0.2, 'summary': 'There will be rain today', 'temp': {'day': 22.45, 'min': 18.85, 'max': 22.96, 'night': 18.85, 'eve': 22.57, 'morn': 19.28}, 'feels_like': {'day': 23.23, 'night': 19.3, 'eve': 23.39, 'morn': 19.85}, 'pressure': 1009, 'humidity': 95, 'dew_point': 21.27, 'wind_speed': 4.49, 'wind_deg': 190, 'wind_gust': 11.38, 'weather': [{'id': 501, 'main': 'Rain', 'description': 'moderate rain', 'icon': '10d'}], 'clouds': 100, 'pop': 1, 'rain': 14.61, 'uvi': 2}, {'dt': 1718294400, 'sunrise': 1718270747, 'sunset': 1718325001, 'moonrise': 1718295600, 'moonset': 1718254740, 'moon_phase': 0.23, 'summary': 'Expect a day of partly cloudy with clear spells', 'temp': {'day': 22.87, 'min': 14.72, 'max': 25.11, 'night': 18, 'eve': 25.11, 'morn': 14.72}, 'feels_like': {'day': 22.67, 'night': 17.71, 'eve': 24.88, 'morn': 14.68}, 'pressure': 1013, 'humidity': 56, 'dew_point': 13.27, 'wind_speed': 4.08, 'wind_deg': 300, 'wind_gust': 8.12, 'weather': [{'id': 800, 'main': 'Clear', 'description': 'clear sky', 'icon': '01d'}], 'clouds': 0, 'pop': 0.24, 'uvi': 2}]}
2024-06-06 23:10:10.353 DEBUG (SyncWorker_1) [custom_components.smart_irrigation.OWMClient] OWMCLIENT daily rain: 9.67
2024-06-06 23:10:10.353 DEBUG (SyncWorker_1) [custom_components.smart_irrigation.OWMClient] OWMCLIENT daily precipitation: 9.67
2024-06-06 23:10:10.387 DEBUG (MainThread) [custom_components.smart_irrigation] merge_weatherdata_and_sensor_values, overriding Precipitation value 9.67 from OWM with 15.392399999999999 from sensors
2024-06-06 23:10:10.387 DEBUG (MainThread) [custom_components.smart_irrigation] merge_weatherdata_and_sensor_values, adding Solar Radiation value 0.0864 from sensors
2024-06-06 23:10:10.387 DEBUG (MainThread) [custom_components.smart_irrigation] async_update_all for mapping 0 new mapping_data: {'Windspeed': 1.151844655758634, 'Pressure': 1001.0, 'Humidity': 91, 'Temperature': 20.12, 'Dewpoint': 18.6, 'Precipitation': 15.392399999999999, 'Solar Radiation': 0.0864, 'retrieved': datetime.datetime(2024, 6, 6, 23, 10, 10, 387782)}
2024-06-06 23:10:10.391 DEBUG (MainThread) [custom_components.smart_irrigation] calling register start event from async_update_zone_config
2024-06-06 23:10:10.398 INFO (MainThread) [custom_components.smart_irrigation] Start irrigation event smart_irrigation_start_irrigation_all_zones will fire at 1302 seconds before sunrise
2024-06-06 23:10:12.205 INFO (MainThread) [custom_components.smart_irrigation] Calculating all zones
2024-06-06 23:10:12.205 INFO (MainThread) [custom_components.smart_irrigation] Calculating all automatic zones
2024-06-06 23:10:12.206 DEBUG (MainThread) [custom_components.smart_irrigation] Calculating zone {'id': 0, 'name': 'Back yard', 'size': 2000.0, 'throughput': 5.5, 'state': 'automatic', 'bucket': -0.09576259761108623, 'old_bucket': 0, 'delta': 0, 'duration': 1302, 'module': 0, 'multiplier': 1.0, 'explanation': None, 'mapping': 0, 'lead_time': 0.0, 'maximum_duration': 3600.0, 'maximum_bucket': 50, 'last_calculated': '2024-06-06T22:01:00.542710', 'last_updated': datetime.datetime(2024, 6, 6, 23, 10, 10, 388014), 'number_of_data_points': 1}
2024-06-06 23:10:12.373 DEBUG (SyncWorker_4)

Hey, I’m also in NJ and noticed the same thing after yesterday’s rain. I was looking forward to seeing how it affected my watering requirements and was surprised to see that the rainfall didn’t seem to be accounted for. I’d be happy to provide logs if that’d be helpful in debugging.

1 Like

please open an issue on Github and provide the diag file. Keep in mind rainfall != bucket increase. Wind speed, solar radiation, temperature for example will influence this heavily.

also, same for @djd .

thanks!

Hello
I have only been using this integration
for a short time and so far I agree with the irrigation values provided.
I have a doubt, however, about what happened tonight.
I set the automatic calculation to 2:58 a.m.
I put all the entities of the echowitt weather station in the sensor groups
the rainfall value is taken from the rain of the day, which is reset at 3:00.
I have obviously entered the maximum value as aggregator
Last night at midnight it started raining.
At 1am it was already almost 20mm and at 3am 29mm.


Why is the watering time set to more than 600 seconds?
Did I make a wrong setting?

what is that Pioggio Giornaliera in the third screenshot? it seems to drop just before calculation time, so maybe it was just missed? If you had debug logging on you should be able to see exactly what values are entered into the calculation cycle.

“Pioggia giornaliera” is the Rain Day value of the ecowitt weather station. I set the reset at 3:00 while the calculation at 2:58.

In any case already two hours earlier 20 mm of rain had fallen
Since I set the aggregation to maximum shouldn’t it have taken the highest value among all those recorded?

yes, max or last should have grabbed the right values. I’d recommend moving the times further apart: do the calc at 2:50 and then reset everything at 3:00. It might just be that the calculation didn’t quite start on time and therefore didn’t finish on time.
There is no way to tell unless you enable debug mode and look at the logs.

Debug mode is enabled but if I click on Download Diagnostics log nothing happens

OK, so what is in the logs?

This is what I get if I disable debug logging.
I’m sorry, but I can’t understand much about it. :sweat_smile:

I hope there is something useful

Hi, i solved the problem by deleting the smart_irrigation.storage file in the hidden .storage directory

Hey,

I’m also struggeling with the calculations too. Have a look at the screenshot. This shows the rain in bars and the bucket as line. The yellow lines is when I switched on the irrigation. Which in total can deliver 6mm before I have to switch it of because the well needs to refill.

What can be clearly seen is that the bucket basically constantly drops even after rain events. At best it stays constant a little bit after rainy days. And then there are periods where it goes up but not much rain happened. I really can’t imagine that at these days dew is responsible if rain >20mm can’t increase the bucket.

I checked all the sensors and they seem to be correct. E.g. that the daily rain sensor uses the max value vs all the other sensors use average setting. Data from Openweather Map is collected every hour and calculation happens at 23:00 and data is deleted at 23:59.
Solar radiation is set to estimate from sun hours and forecast set to 3 days.

The gras is still perfectly fine with that little irrigation vs the bucket being at -58mm or so.

The soil moisture sensor represents rain and irrigation quite ok on the other hand.

What am I doing wrong?

Thanks!

Looks like with forecast enabled this would take the average of (today’s ETO + forecasted days’ ETOs) and update the bucket with this average value.

This basically means for a given day, the ETO change is the average of (the actual ETO for the day + forecasted ETOs for the day calculated from past). When the forecast data is not accurate, this would mess up the bucket value. And the more the forecast days, the less accurate the bucket is.

IMO we shouldn’t be using the forecast data to update the bucket, instead we should have an additional attribute “forecasted bucket change” which calculate the ETO change of the forecasted days. And in the automation we can read this attribute to decide whether or not to irrigate.

2 Likes

Stop using this integration :smiling_face::man_shrugging: I have also given up

I’m still using 0.81 and I’m very happy with it

I can’t help it that the math is correct. So yeah, sure you can give up or use an older version that has bugs that give you the behavior you want. Likely you are using owm with not high enough frequency of data collection and or have varying weather patterns. Those are the issues people have hence why I am working on continuous data collection version.

That makes sense, I can look into this

You are using owm or have varying weather patterns. That’s your problem. It’s not often not correct. Use another more correct service, bump up the frequency of data collection or better use a weatherstation.