so this looks good, but did you actually configure ‘0:00’ for the update? if so, then we have found the issue because at 00:00 the Hourly ART is 0 as there is no data yet, so the Daily ART is set to 0. Set the auto update to 23:59 or leave on the standard 23:00 (11 PM) and you should see the Daily ART being updated with the hourly ART.
correct. the numbers in the bucket do not reflect actual inches or cm lost. it’s just an index.
Ill do 23:59 and report back if issues
So this looks weird, It went up and worked. but then dropped shortly after. I know the sprinkler did not run. They are set to run on activation command(sunrise). Currently have it set to 11:59PM for schedule automatic refresh.
Any idea why it would do this?
logs:
2022-06-07 00:00:00 INFO (MainThread) [custom_components.smart_irrigation] Updating for last time today, calculating adjusted run time for next irrigation time!
2022-06-07 00:00:01 INFO (MainThread) [custom_components.smart_irrigation] ENTERING _update_last_of_day. bucket is 1.5239999512320015
2022-06-07 00:00:01 INFO (MainThread) [custom_components.smart_irrigation] using OWM for precipitation: False
2022-06-07 00:00:01 INFO (MainThread) [custom_components.smart_irrigation] precip set to 0.0, which is last item of hourly_precipitation_list: [1.39, 1.39, 0.0, 0.0]
2022-06-07 00:00:01 INFO (MainThread) [custom_components.smart_irrigation] since we are calculating, evapotranspiration set to 2.8012097596025205, which is average of hourly_evapotranspiration_list: [3.344695219065242, 3.344695219065242, 2.257724300139799, 2.257724300139799]
2022-06-07 00:00:01 INFO (MainThread) [custom_components.smart_irrigation] bucket_delta set to -2.8012097596025205, which is the difference between precipitation and evapotranspiration
2022-06-07 00:00:01 INFO (MainThread) [custom_components.smart_irrigation] Updating bucket: 1.5239999512320015 with bucket_delta: -2.8012097596025205
2022-06-07 00:00:01 INFO (MainThread) [custom_components.smart_irrigation] hourly_precipitation_list and hourly_evapotranspiration_list are now empty, bucket is -1.277209808370519
2022-06-07 00:00:01 INFO (MainThread) [custom_components.smart_irrigation] Bucket for today is: -1.277209808370519 mm
2022-06-07 00:00:01 INFO (SyncWorker_10) [custom_components.smart_irrigation.sensor] _bucket_updated, received bucket value -1.277209808370519 from event_dict: {'event_type': 'Front_Lawn_bucketUpd', 'data': {'bucket': -1.277209808370519}, 'origin': 'LOCAL', 'time_fired': '2022-06-07T05:00:01.121139+00:00', 'context': {'id': '01G4Y8HD71J1JG6WTQPPEBXGVW', 'parent_id': None, 'user_id': None}}
2022-06-07 00:00:01 INFO (SyncWorker_10) [custom_components.smart_irrigation.sensor] updated_adjusted_run_time_from_event called.
2022-06-07 00:00:01 INFO (SyncWorker_10) [custom_components.smart_irrigation.sensor] Calculated water_budget = 0.2793547351796222 and adjusted_run_time: 209 for type: Daily Adjusted Run Time. Bucket value was: -1.277209808370519, and base schedule index is: 748.0519185980178, force mode is: False, force mode duration is: 0, lead_time is: 0, maximum_duration: -1, change percentage: 1.0, type: Daily Adjusted Run Time
2022-06-07 00:00:01 INFO (SyncWorker_10) [custom_components.smart_irrigation.sensor] updated_adjusted_run_time_from_event: got result: {'wb': 0.2793547351796222, 'art': 209}. Setting attributes of daily adjusted run time (including result['wb']) and state == result['art']
2022-06-07 00:00:01 INFO (SyncWorker_9) [custom_components.smart_irrigation.sensor] _bucket_updated, received bucket value -1.277209808370519 from event_dict: {'event_type': 'Front_Lawn_bucketUpd', 'data': {'bucket': -1.277209808370519}, 'origin': 'LOCAL', 'time_fired': '2022-06-07T05:00:01.121139+00:00', 'context': {'id': '01G4Y8HD71J1JG6WTQPPEBXGVW', 'parent_id': None, 'user_id': None}}
2022-06-07 00:00:01 INFO (SyncWorker_9) [custom_components.smart_irrigation.sensor] updated_adjusted_run_time_from_event called.
2022-06-07 00:00:01 INFO (SyncWorker_9) [custom_components.smart_irrigation.sensor] Calculated water_budget = 0.2793547351796222 and adjusted_run_time: 209 for type: Daily Adjusted Run Time. Bucket value was: -1.277209808370519, and base schedule index is: 748.0519185980178, force mode is: False, force mode duration is: 0, lead_time is: 0, maximum_duration: -1, change percentage: 1.0, type: Daily Adjusted Run Time
2022-06-07 00:00:01 INFO (SyncWorker_9) [custom_components.smart_irrigation.sensor] updated_adjusted_run_time_from_event: got result: {'wb': 0.2793547351796222, 'art': 209}. Setting attributes of daily adjusted run time (including result['wb']) and state == result['art']
2022-06-07 00:00:01 INFO (SyncWorker_10) [custom_components.smart_irrigation.sensor] sun_rise: 2022-06-07 10:36:06.788971+00:00
2022-06-07 00:00:01 INFO (SyncWorker_10) [custom_components.smart_irrigation.sensor] Front_Lawn_start will fire at 2022-06-07 10:32:37.788971+00:00
2022-06-07 00:00:01 INFO (SyncWorker_9) [custom_components.smart_irrigation.sensor] sun_rise: 2022-06-07 10:36:06.788971+00:00
2022-06-07 00:00:01 INFO (SyncWorker_9) [custom_components.smart_irrigation.sensor] Front_Lawn_start will fire at 2022-06-07 10:32:37.788971+00:00
2022-06-07 00:00:49 INFO (MainThread) [custom_components.smart_irrigation] Updating Smart Irrigation Data
2022-06-07 00:00:56 DEBUG (MainThread) [custom_components.smart_irrigation] Finished fetching Front_Lawn data in 7.791 seconds (success: True)
2022-06-07 00:00:56 INFO (MainThread) [custom_components.smart_irrigation.sensor] update_state for type: Base Schedule Index
2022-06-07 00:00:56 INFO (MainThread) [custom_components.smart_irrigation.sensor] update_state for type: Base Schedule Index
2022-06-07 00:00:56 INFO (MainThread) [custom_components.smart_irrigation.sensor] update_state for type: Hourly Adjusted Run Time
2022-06-07 00:00:56 INFO (MainThread) [custom_components.smart_irrigation.sensor] update_state USING A SENSOR for instance Front_Lawn, type: Hourly Adjusted Run Time, sensor: sensor_precipitation, entity: sensor.rainmidwestdaily, sensor_state: <state sensor.rainmidwestdaily=0; state_class=measurement, unit_of_measurement=in, friendly_name=RainMidwestDaily @ 2022-06-06T13:21:41.400829-05:00>
2022-06-07 00:00:56 INFO (MainThread) [custom_components.smart_irrigation.sensor] update_state USING A SENSOR for instance Front_Lawn, type: Hourly Adjusted Run Time, sensor: sensor_temperature, entity: sensor.katy_temperature, sensor_state: <state sensor.katy_temperature=61.0; state_class=measurement, unit_of_measurement=°F, attribution=Data from National Weather Service/NOAA, device_class=temperature, friendly_name=KATY Temperature @ 2022-06-06T22:12:54.891759-05:00>
2022-06-07 00:00:56 INFO (MainThread) [custom_components.smart_irrigation.sensor] update_state USING A SENSOR for instance Front_Lawn, type: Hourly Adjusted Run Time, sensor: sensor_dewpoint, entity: sensor.katy_dew_point, sensor_state: <state sensor.katy_dew_point=50.0; state_class=measurement, unit_of_measurement=°F, attribution=Data from National Weather Service/NOAA, device_class=temperature, friendly_name=KATY Dew Point @ 2022-06-06T23:13:00.599469-05:00>
2022-06-07 00:00:56 INFO (MainThread) [custom_components.smart_irrigation.sensor] update_state USING A SENSOR for instance Front_Lawn, type: Hourly Adjusted Run Time, sensor: sensor_pressure, entity: sensor.katy_sea_level_pressure, sensor_state: <state sensor.katy_sea_level_pressure=29.86; state_class=measurement, unit_of_measurement=inHg, attribution=Data from National Weather Service/NOAA, device_class=pressure, friendly_name=KATY Sea Level Pressure @ 2022-06-06T23:13:00.626177-05:00>
2022-06-07 00:00:56 INFO (MainThread) [custom_components.smart_irrigation.sensor] update_state USING A SENSOR for instance Front_Lawn, type: Hourly Adjusted Run Time, sensor: sensor_humidity, entity: sensor.katy_relative_humidity, sensor_state: <state sensor.katy_relative_humidity=67; state_class=measurement, unit_of_measurement=%, attribution=Data from National Weather Service/NOAA, device_class=humidity, friendly_name=KATY Relative Humidity @ 2022-06-06T23:13:00.611566-05:00>
2022-06-07 00:00:56 INFO (MainThread) [custom_components.smart_irrigation.sensor] update_state USING A SENSOR for instance Front_Lawn, type: Hourly Adjusted Run Time, sensor: sensor_windspeed, entity: sensor.katy_wind_speed, sensor_state: <state sensor.katy_wind_speed=8; state_class=measurement, unit_of_measurement=mph, attribution=Data from National Weather Service/NOAA, icon=mdi:weather-windy, friendly_name=KATY Wind Speed @ 2022-06-06T23:13:00.618683-05:00>
2022-06-07 00:00:56 INFO (MainThread) [custom_components.smart_irrigation.sensor] update_state USING A SENSOR for instance Front_Lawn, type: Hourly Adjusted Run Time, sensor: sensor_solar_radiation, entity: sensor.katy_solarradiation, sensor_state: <state sensor.katy_solarradiation=0; state_class=measurement, unit_of_measurement=kW/m2, friendly_name=KATY SolarRadiation @ 2022-06-06T22:21:41.279877-05:00>
2022-06-07 00:00:56 INFO (MainThread) [custom_components.smart_irrigation.sensor] rain: 0.0, snow: 0.0
2022-06-07 00:00:56 INFO (MainThread) [custom_components.smart_irrigation.sensor] calculated evapotranspiration: 1.468879560509401
2022-06-07 00:00:56 INFO (MainThread) [custom_components.smart_irrigation.sensor] Calculated water_budget = 0.3212772544867775 and adjusted_run_time: 240 for type: Hourly Adjusted Run Time. Bucket value was: -1.468879560509401, and base schedule index is: 748.0519185980178, force mode is: False, force mode duration is: 0, lead_time is: 0, maximum_duration: -1, change percentage: 1.0, type: Hourly Adjusted Run Time
2022-06-07 00:00:56 INFO (MainThread) [custom_components.smart_irrigation.sensor] update_state: just updated hourly_precipitation_list: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0] and hourly_evapotranspiration_list: [2.257724300139799, 2.257724300139799, 2.257724300139799, 2.257724300139799, 2.257724300139799, 2.257724300139799, 2.257724300139799, 2.257724300139799, 2.259899182989712, 2.259899182989712, 2.841268955439181, 2.841268955439181, 2.563421665082678, 2.563421665082678, 3.185728057581075, 3.185728057581075, 2.655697269169611, 2.655697269169611, 2.3291181352074997, 2.3291181352074997, 3.0048828492177817, 3.0048828492177817, 2.256118642455251, 2.256118642455251, 2.0897295442514463, 2.0897295442514463, 1.9798657215699924, 1.9798657215699924, 1.468879560509401]
2022-06-07 00:00:56 INFO (MainThread) [custom_components.smart_irrigation.sensor] update_state for type: Hourly Adjusted Run Time
2022-06-07 00:00:56 INFO (MainThread) [custom_components.smart_irrigation.sensor] update_state USING A SENSOR for instance Front_Lawn, type: Hourly Adjusted Run Time, sensor: sensor_precipitation, entity: sensor.rainmidwestdaily, sensor_state: <state sensor.rainmidwestdaily=0; state_class=measurement, unit_of_measurement=in, friendly_name=RainMidwestDaily @ 2022-06-06T13:21:41.400829-05:00>
2022-06-07 00:00:56 INFO (MainThread) [custom_components.smart_irrigation.sensor] update_state USING A SENSOR for instance Front_Lawn, type: Hourly Adjusted Run Time, sensor: sensor_temperature, entity: sensor.katy_temperature, sensor_state: <state sensor.katy_temperature=61.0; state_class=measurement, unit_of_measurement=°F, attribution=Data from National Weather Service/NOAA, device_class=temperature, friendly_name=KATY Temperature @ 2022-06-06T22:12:54.891759-05:00>
2022-06-07 00:00:56 INFO (MainThread) [custom_components.smart_irrigation.sensor] update_state USING A SENSOR for instance Front_Lawn, type: Hourly Adjusted Run Time, sensor: sensor_dewpoint, entity: sensor.katy_dew_point, sensor_state: <state sensor.katy_dew_point=50.0; state_class=measurement, unit_of_measurement=°F, attribution=Data from National Weather Service/NOAA, device_class=temperature, friendly_name=KATY Dew Point @ 2022-06-06T23:13:00.599469-05:00>
2022-06-07 00:00:56 INFO (MainThread) [custom_components.smart_irrigation.sensor] update_state USING A SENSOR for instance Front_Lawn, type: Hourly Adjusted Run Time, sensor: sensor_pressure, entity: sensor.katy_sea_level_pressure, sensor_state: <state sensor.katy_sea_level_pressure=29.86; state_class=measurement, unit_of_measurement=inHg, attribution=Data from National Weather Service/NOAA, device_class=pressure, friendly_name=KATY Sea Level Pressure @ 2022-06-06T23:13:00.626177-05:00>
2022-06-07 00:00:56 INFO (MainThread) [custom_components.smart_irrigation.sensor] update_state USING A SENSOR for instance Front_Lawn, type: Hourly Adjusted Run Time, sensor: sensor_humidity, entity: sensor.katy_relative_humidity, sensor_state: <state sensor.katy_relative_humidity=67; state_class=measurement, unit_of_measurement=%, attribution=Data from National Weather Service/NOAA, device_class=humidity, friendly_name=KATY Relative Humidity @ 2022-06-06T23:13:00.611566-05:00>
2022-06-07 00:00:56 INFO (MainThread) [custom_components.smart_irrigation.sensor] update_state USING A SENSOR for instance Front_Lawn, type: Hourly Adjusted Run Time, sensor: sensor_windspeed, entity: sensor.katy_wind_speed, sensor_state: <state sensor.katy_wind_speed=8; state_class=measurement, unit_of_measurement=mph, attribution=Data from National Weather Service/NOAA, icon=mdi:weather-windy, friendly_name=KATY Wind Speed @ 2022-06-06T23:13:00.618683-05:00>
2022-06-07 00:00:56 INFO (MainThread) [custom_components.smart_irrigation.sensor] update_state USING A SENSOR for instance Front_Lawn, type: Hourly Adjusted Run Time, sensor: sensor_solar_radiation, entity: sensor.katy_solarradiation, sensor_state: <state sensor.katy_solarradiation=0; state_class=measurement, unit_of_measurement=kW/m2, friendly_name=KATY SolarRadiation @ 2022-06-06T22:21:41.279877-05:00>
2022-06-07 00:00:56 INFO (MainThread) [custom_components.smart_irrigation.sensor] rain: 0.0, snow: 0.0
2022-06-07 00:00:56 INFO (MainThread) [custom_components.smart_irrigation.sensor] calculated evapotranspiration: 1.468879560509401
2022-06-07 00:00:56 INFO (MainThread) [custom_components.smart_irrigation.sensor] Calculated water_budget = 0.3212772544867775 and adjusted_run_time: 240 for type: Hourly Adjusted Run Time. Bucket value was: -1.468879560509401, and base schedule index is: 748.0519185980178, force mode is: False, force mode duration is: 0, lead_time is: 0, maximum_duration: -1, change percentage: 1.0, type: Hourly Adjusted Run Time
2022-06-07 00:00:56 INFO (MainThread) [custom_components.smart_irrigation.sensor] update_state: just updated hourly_precipitation_list: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0] and hourly_evapotranspiration_list: [2.257724300139799, 2.257724300139799, 2.257724300139799, 2.257724300139799, 2.257724300139799, 2.257724300139799, 2.257724300139799, 2.257724300139799, 2.259899182989712, 2.259899182989712, 2.841268955439181, 2.841268955439181, 2.563421665082678, 2.563421665082678, 3.185728057581075, 3.185728057581075, 2.655697269169611, 2.655697269169611, 2.3291181352074997, 2.3291181352074997, 3.0048828492177817, 3.0048828492177817, 2.256118642455251, 2.256118642455251, 2.0897295442514463, 2.0897295442514463, 1.9798657215699924, 1.9798657215699924, 1.468879560509401, 1.468879560509401]
2022-06-07 00:00:56 INFO (MainThread) [custom_components.smart_irrigation.sensor] update_state for type: Daily Adjusted Run Time
2022-06-07 00:00:56 INFO (MainThread) [custom_components.smart_irrigation.sensor] Calculated water_budget = 0 and adjusted_run_time: 0 for type: Daily Adjusted Run Time. Bucket value was: 1.5239999512320015, and base schedule index is: 748.0519185980178, force mode is: False, force mode duration is: 0, lead_time is: 0, maximum_duration: -1, change percentage: 1.0, type: Daily Adjusted Run Time
2022-06-07 00:00:56 INFO (MainThread) [custom_components.smart_irrigation.sensor] calculating wb and art for daily adjusted run time, result: {'wb': 0, 'art': 0}
2022-06-07 00:00:56 INFO (MainThread) [custom_components.smart_irrigation.sensor] update_state for type: Daily Adjusted Run Time
2022-06-07 00:00:56 INFO (MainThread) [custom_components.smart_irrigation.sensor] Calculated water_budget = 0 and adjusted_run_time: 0 for type: Daily Adjusted Run Time. Bucket value was: 1.5239999512320015, and base schedule index is: 748.0519185980178, force mode is: False, force mode duration is: 0, lead_time is: 0, maximum_duration: -1, change percentage: 1.0, type: Daily Adjusted Run Time
2022-06-07 00:00:56 INF
not sure why it goes back to 0 at 00:00:56. Maybe move it forward a bit more? Like, do the update at 11:00 PM?
I was idiot. First I put 11:59 so that would be AM. Updating to 23:00
Second The reason i go so close to midnight is because the rain sensor resets at midnight. Not sure if that makes a different since it would just get calculated into the next day?
think about this: how much is the precipitation in one hour going to change the total/average precipitation over the whole day? Now do the same for evapotranspiration. IMO 11:00 PM is good enough, hence the default.
Uhm…like…a lot, surely? A seasonal thunderstorm might dump a whole bunch of water in the space of 10 mins.
I’m still struggling with the differences between hourly and daily run times, and why you’d ever use the daily one.
I also don’t understand why today for example, daily says 8 minutes, hourly says 3 minutes. The forecast has not changed all week and has been accurate (i.e. no precipitation).
Hourly is hourly updates what has happened. Example sun, rain , wind, ETC over 24 hours. at 11pm each day Its moved to the daily. The sprinkler on time is pulled from Daily. Daily is a stored value from 11pm till you run the sprinkler again so that value is not lost.
Ah understood now, thank you!
When sprinkler runs in the morning. It will reset daily back to zero.
I seem to have gotten this on point, the only issues I face are how can I water more than the net evapotranspiration? The current model assumes you don’t any any irrigation beyond that but it is not the case for everything.
Finally how can I set Costal to true? I tried to edit .storage/core.config_entries
but it must have not been in the correct place.
Go to integrations smart irrigation and you can edit and add time
That doesn’t seem to suit my need, what if I add to the daily Et value? If I currently have .21 and want to water 1.0 inch a week I would adjust Et to .35
Or adjust the flow of water GPM per sprinkler. Could also adjust the “Lead Time” and adjust. That would be best bet IMO.
btw in the integrations > smart irrigation you can adjust the coastal setting.
The fao56-penman-monteith equation calculates the water evaporation for 1 day. This is called ET and the unit is mm or - which is the same - l/m². So if the ET is 3, this means that your garden lost 3 liters of water per square meter and hence you have to irrigate 3 liters of water per m².
Since the equation calculates the ET value for one day, the input parameters must also be the values for one day. You cannot use actual sensor values. Example: over the day, the wind was 15 m/s, in the evening it is 5 m/s. It is clear now that it does not make sense to feed the 5 m/s wind speed into the algorithm.
For wind speed and temperature, you have to feed in the mean value for that day. You can get this with the time-moving-mean filter from HA. For solar radiation, you have to use the daily total of radiation in MJ/m². You can calculate this from the daily mean lux value by dividing it by 1389.
For the barometric pressure you can use a hardcoded value, for example 1000 hPa for an elevation of 100m. The influence of the pressure is very small.
No one measures soil moisture?
I want to doublecheck something: On our roof terrace I’ve a couple of planters with a total area of 1.1 square meters. I have a sprinkler every 0,3 square meter where 0,2 liters of water flows through per minute.
I configured this integration as such, so with 11 sprinklers, flowing 0,2 liters per minute with a total throughput of 2,2 liters per minute.
Do you guys think I did this right, based on your expertise/experience?
If I set a different GPM it will not help. The issue is I am getting large bucket accumulation. Therefore it will not even attempt to irrigate for several weeks
It seems like Smart Irrigation assumes if there is 0.20 ET and 0.20 the net is 0.00 and no irrigation is required, but this does not take into account the plant’s consumption.
So let’s say that I want to water 0.75 a week. If it rains 2.0 of course I do not want to irrigate, but if it rains 0.2 a day and the ET is 0.20 a day I do need to irrigate. So if I add 0.10 to the calculated ET would this not solve my issue?
@jeroenterheerdt Short of deleting and reconfiguring, is there a way to change parameters for a given sprinkler? I’ve mistakenly put in the wrong GPH and would like to find the file to change rather than set things up again.
One other question, I’m setting up a new system and no nothing about irrigation. In the few videos I’ve watched on the subject, they are suggesting a certain amount of water per week for my grass type (St. Augustine/Southern Louisiana). Does this component target a certain moisture level rather than a water amount? How do I know if that’s right for my grass type?
Thanks for the great work on this project!