Hey friends! I’m a new user and have the same problem as @iz3man,
Base Schedule Index
and Hourly Adjusted Run Time
look good but daily adjusted run time
stays at 0s permanently.
Screenshots taken at 23:45 local time (beware, this is a micro drip use case):
Here is a copy&paste of relevant log lines:
2023-07-06 23:50:06.897 INFO (MainThread) [custom_components.smart_irrigation]
-------------------------------------------------------------------
Smart Irrigation
Version: 0.0.79
If you have any issues with this you need to open an issue here:
https://github.com/jeroenterheerdt/HASmartIrrigation/issues
-------------------------------------------------------------------
2023-07-06 23:50:06.897 INFO (MainThread) [custom_components.smart_irrigation] Smart Irrigation Gemischtes Beet sensors: {'sensor_et': 'sensor.weather_station_evapotranspiration_dailysensor_mm', 'sensor_precipitation': 'sensor.weather_station_dayrain_mm'}
2023-07-06 23:50:06.897 INFO (MainThread) [custom_components.smart_irrigation] Auto refresh is enabled. Scheduling for 23:00.
2023-07-06 23:50:06.898 INFO (MainThread) [custom_components.smart_irrigation] Initial update scheduled for 2023-07-06 23:55:06.897974+02:00
2023-07-06 23:50:06.898 INFO (MainThread) [custom_components.smart_irrigation] Updating Smart Irrigation Data
2023-07-06 23:50:06.898 DEBUG (MainThread) [custom_components.smart_irrigation] Finished fetching Smart_Irrigation_Gemischtes_Beet data in 0.000 seconds (success: True)
2023-07-06 23:50:14.828 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.smart_irrigation
2023-07-06 23:50:14.828 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.energy
2023-07-06 23:50:14.829 INFO (MainThread) [custom_components.smart_irrigation.sensor] sensor __init__ for current_adjusted_run_time. bucket_delta=0
2023-07-06 23:50:14.829 INFO (MainThread) [custom_components.smart_irrigation.sensor] sensor __init__ for adjusted_run_time. bucket=0
2023-07-06 23:50:14.833 INFO (MainThread) [custom_components.smart_irrigation] registering: type: Base Schedule Index, entity: sensor.smart_irrigation_base_schedule_index
2023-07-06 23:50:14.833 INFO (MainThread) [custom_components.smart_irrigation.sensor] async_added_t_hass type: Base Schedule Index state: 3661.0, attributes: {'number_of_sprinklers': 1.0, 'flow': '4.13 l', 'throughput': '4.13 l/min', 'reference_evapotranspiration': '[1.24, 1.46, 3.06, 4.19, 5.26, 5.76, 6.0, 4.51, 2.95, 1.84, 1.08, 0.84] mm', 'peak_evapotranspiration': '6.0 mm', 'area': '42.0 m2', 'precipitation_rate': '5.9 mm/hr', 'base_schedule_index_minutes': '61.02 min', 'auto_refresh': True, 'auto_refresh_time': '23:00', 'initial_update_delay': '300 s', 'coastal': False, 'estimate_solrad_from_temp': True, 'unit_of_measurement': 's', 'icon': 'mdi:sprinkler', 'friendly_name': 'Base Schedule Index'}
2023-07-06 23:50:14.833 INFO (MainThread) [custom_components.smart_irrigation.sensor] update_state for type: Base Schedule Index
2023-07-06 23:50:14.833 INFO (MainThread) [custom_components.smart_irrigation.sensor] update_state for type: Base Schedule Index
2023-07-06 23:50:14.834 INFO (MainThread) [custom_components.smart_irrigation] registering: type: Hourly Adjusted Run Time, entity: sensor.smart_irrigation_hourly_adjusted_run_time
2023-07-06 23:50:14.834 INFO (MainThread) [custom_components.smart_irrigation.sensor] async_added_t_hass type: Hourly Adjusted Run Time state: 405, attributes: {'rain': '0.0 mm', 'snow': '0.0 mm', 'precipitation': '0.0 mm', 'evapotranspiration': '0.66 mm', 'netto_precipitation': '-0.66 mm', 'water_budget': '11.08 %', 'adjusted_run_time_minutes': '6.75 min', 'unit_of_measurement': 's', 'icon': 'mdi:sprinkler', 'friendly_name': 'Hourly Adjusted Run Time'}
2023-07-06 23:50:14.834 INFO (MainThread) [custom_components.smart_irrigation.sensor] async_added_t_hass type: Hourly Adjusted Run Time, attribute: evapotranspiration, attribute_value: 0.66 mm, numeric_part: 0.66, show_units: True, a_val was str or contained ' ': True
2023-07-06 23:50:14.834 INFO (MainThread) [custom_components.smart_irrigation.sensor] async_added_t_hass type: Hourly Adjusted Run Time, attribute: netto_precipitation, attribute_value: -0.66 mm, numeric_part: -0.66, show_units: True, a_val was str or contained ' ': True
2023-07-06 23:50:14.834 INFO (MainThread) [custom_components.smart_irrigation.sensor] async_added_to_hass restoring state, setting netto precipitation / bucket_delta to: -0.66
2023-07-06 23:50:14.834 INFO (MainThread) [custom_components.smart_irrigation.sensor] async_added_t_hass type: Hourly Adjusted Run Time, attribute: precipitation, attribute_value: 0.0 mm, numeric_part: 0.0, show_units: True, a_val was str or contained ' ': True
2023-07-06 23:50:14.834 INFO (MainThread) [custom_components.smart_irrigation.sensor] async_added_t_hass type: Hourly Adjusted Run Time, attribute: rain, attribute_value: 0.0 mm, numeric_part: 0.0, show_units: True, a_val was str or contained ' ': True
2023-07-06 23:50:14.834 INFO (MainThread) [custom_components.smart_irrigation.sensor] async_added_t_hass type: Hourly Adjusted Run Time, attribute: snow, attribute_value: 0.0 mm, numeric_part: 0.0, show_units: True, a_val was str or contained ' ': True
2023-07-06 23:50:14.834 INFO (MainThread) [custom_components.smart_irrigation.sensor] async_added_t_hass type: Hourly Adjusted Run Time, attribute: water_budget, attribute_value: 11.08 %, numeric_part: 11.08, show_units: True, a_val was str or contained ' ': True
2023-07-06 23:50:14.834 INFO (MainThread) [custom_components.smart_irrigation.sensor] async_added_t_hass type: Hourly Adjusted Run Time, attribute: adjusted_run_time_minutes, attribute_value: 6.75 min, numeric_part: 6.75, show_units: True, a_val was str or contained ' ': True
2023-07-06 23:50:14.834 INFO (MainThread) [custom_components.smart_irrigation.sensor] update_state for type: Hourly Adjusted Run Time
2023-07-06 23:50:14.837 INFO (MainThread) [custom_components.smart_irrigation.sensor] update_state USING A SENSOR for instance Smart_Irrigation_Gemischtes_Beet, type: Hourly Adjusted Run Time, sensor: sensor_et, entity: sensor.weather_station_evapotranspiration_dailysensor_mm, sensor_state: <state sensor.weather_station_evapotranspiration_dailysensor_mm=0.66452; sensor=sensor.weather_station_evapotranspiration_mm, operation=sum, interval=30, unit_of_measurement=mm, auto_reset=True, icon=mdi:timetable, friendly_name=Ventus W830 EvapoTranspiration (ET) (DailySensor) @ 2023-07-06T23:50:14.830930+02:00>
2023-07-06 23:50:14.837 INFO (MainThread) [custom_components.smart_irrigation.sensor] update_state USING A SENSOR for instance Smart_Irrigation_Gemischtes_Beet, type: Hourly Adjusted Run Time, sensor: sensor_precipitation, entity: sensor.weather_station_dayrain_mm, sensor_state: None
2023-07-06 23:50:14.837 INFO (MainThread) [custom_components.smart_irrigation.sensor] rain: 0, snow: 0
2023-07-06 23:50:14.837 INFO (MainThread) [custom_components.smart_irrigation.sensor] skipped calculating evapotranspiration, got the following value from a sensor: 0.66452
2023-07-06 23:50:14.837 INFO (MainThread) [custom_components.smart_irrigation.sensor] Calculated water_budget = 0.11075333333333333 and adjusted_run_time: 405 for type: Hourly Adjusted Run Time. Bucket value was: -0.66452, and base schedule index is: 3661.016949152543, 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
2023-07-06 23:50:14.837 INFO (MainThread) [custom_components.smart_irrigation.sensor] update_state: just updated hourly_precipitation_list: [0.0] and hourly_evapotranspiration_list: [0.66452]
2023-07-06 23:50:14.837 INFO (MainThread) [custom_components.smart_irrigation.sensor] update_state for type: Hourly Adjusted Run Time
2023-07-06 23:50:14.837 INFO (MainThread) [custom_components.smart_irrigation.sensor] update_state USING A SENSOR for instance Smart_Irrigation_Gemischtes_Beet, type: Hourly Adjusted Run Time, sensor: sensor_et, entity: sensor.weather_station_evapotranspiration_dailysensor_mm, sensor_state: <state sensor.weather_station_evapotranspiration_dailysensor_mm=0.66452; sensor=sensor.weather_station_evapotranspiration_mm, operation=sum, interval=30, unit_of_measurement=mm, auto_reset=True, icon=mdi:timetable, friendly_name=Ventus W830 EvapoTranspiration (ET) (DailySensor) @ 2023-07-06T23:50:14.830930+02:00>
2023-07-06 23:50:14.838 INFO (MainThread) [custom_components.smart_irrigation.sensor] update_state USING A SENSOR for instance Smart_Irrigation_Gemischtes_Beet, type: Hourly Adjusted Run Time, sensor: sensor_precipitation, entity: sensor.weather_station_dayrain_mm, sensor_state: None
2023-07-06 23:50:14.838 INFO (MainThread) [custom_components.smart_irrigation.sensor] rain: 0, snow: 0
2023-07-06 23:50:14.839 INFO (MainThread) [custom_components.smart_irrigation.sensor] skipped calculating evapotranspiration, got the following value from a sensor: 0.66452
2023-07-06 23:50:14.839 INFO (MainThread) [custom_components.smart_irrigation.sensor] Calculated water_budget = 0.11075333333333333 and adjusted_run_time: 405 for type: Hourly Adjusted Run Time. Bucket value was: -0.66452, and base schedule index is: 3661.016949152543, 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
2023-07-06 23:50:14.839 INFO (MainThread) [custom_components.smart_irrigation.sensor] update_state: just updated hourly_precipitation_list: [0.0, 0.0] and hourly_evapotranspiration_list: [0.66452, 0.66452]
2023-07-06 23:50:14.839 INFO (MainThread) [custom_components.smart_irrigation] registering: type: Daily Adjusted Run Time, entity: sensor.smart_irrigation_daily_adjusted_run_time
2023-07-06 23:50:14.839 INFO (MainThread) [custom_components.smart_irrigation.sensor] async_added_t_hass type: Daily Adjusted Run Time state: 0, attributes: {'water_budget': '0.0 %', 'bucket': '1.23 mm', 'lead_time': '0 s', 'maximum_duration': '-1 s', 'adjusted_run_time_minutes': '0.0 min', 'force_mode_duration': 0, 'force_mode_enabled': False, 'unit_of_measurement': 's', 'icon': 'mdi:sprinkler'}
2023-07-06 23:50:14.839 INFO (MainThread) [custom_components.smart_irrigation.sensor] async_added_t_hass type: Daily Adjusted Run Time, attribute: water_budget, attribute_value: 0.0 %, numeric_part: 0.0, show_units: True, a_val was str or contained ' ': True
2023-07-06 23:50:14.840 INFO (MainThread) [custom_components.smart_irrigation.sensor] async_added_t_hass type: Daily Adjusted Run Time, attribute: bucket, attribute_value: 1.23 mm, numeric_part: 1.23, show_units: True, a_val was str or contained ' ': True
2023-07-06 23:50:14.840 INFO (MainThread) [custom_components.smart_irrigation.sensor] async_added_to_hass restoring state, settting bucket to: 1.23
2023-07-06 23:50:14.840 INFO (MainThread) [custom_components.smart_irrigation.sensor] async_added_t_hass type: Daily Adjusted Run Time, attribute: adjusted_run_time_minutes, attribute_value: 0.0 min, numeric_part: 0.0, show_units: True, a_val was str or contained ' ': True
2023-07-06 23:50:14.840 INFO (MainThread) [custom_components.smart_irrigation.sensor] update_state for type: Daily Adjusted Run Time
2023-07-06 23:50:14.840 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.23, and base schedule index is: 3661.016949152543, 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
2023-07-06 23:50:14.840 INFO (MainThread) [custom_components.smart_irrigation.sensor] calculating wb and art for daily adjusted run time, result: {'wb': 0, 'art': 0}
2023-07-06 23:50:14.840 INFO (MainThread) [custom_components.smart_irrigation.sensor] update_state for type: Daily Adjusted Run Time
2023-07-06 23:50:14.840 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.23, and base schedule index is: 3661.016949152543, 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
2023-07-06 23:50:14.840 INFO (MainThread) [custom_components.smart_irrigation.sensor] calculating wb and art for daily adjusted run time, result: {'wb': 0, 'art': 0}
2023-07-06 23:52:19.448 INFO (MainThread) [custom_components.smart_irrigation] Calculate Daily Adjusted Run Time service called, calculating now.
2023-07-06 23:52:19.448 INFO (MainThread) [custom_components.smart_irrigation] ENTERING _update_last_of_day. bucket is 1.23
2023-07-06 23:52:19.448 INFO (MainThread) [custom_components.smart_irrigation] using OWM for precipitation: False
2023-07-06 23:52:19.448 INFO (MainThread) [custom_components.smart_irrigation] precip set to 0.0, which is last item of hourly_precipitation_list: [0.0, 0.0]
2023-07-06 23:52:19.448 INFO (MainThread) [custom_components.smart_irrigation] since we use a sensor, evapotranspiration set to 0.66452, which is last item of hourly_evapotranspiration_list: [0.66452, 0.66452]
2023-07-06 23:52:19.448 INFO (MainThread) [custom_components.smart_irrigation] bucket_delta set to -0.66452, which is the difference between precipitation and evapotranspiration
2023-07-06 23:52:19.448 INFO (MainThread) [custom_components.smart_irrigation] Updating bucket: 1.23 with bucket_delta: -0.66452
2023-07-06 23:52:19.448 INFO (MainThread) [custom_components.smart_irrigation] hourly_precipitation_list and hourly_evapotranspiration_list are now empty, bucket is 0.56548
2023-07-06 23:52:19.452 INFO (SyncWorker_10) [custom_components.smart_irrigation.sensor] _bucket_updated, received bucket value 0.56548 from event_dict: {'event_type': 'Smart_Irrigation_Gemischtes_Beet_bucketUpd', 'data': {'bucket': 0.56548}, 'origin': 'LOCAL', 'time_fired': '2023-07-06T21:52:19.451139+00:00', 'context': {'id': '01H4PK25ZV4CEVNNJ06JFT8BQW', 'parent_id': None, 'user_id': None}}
2023-07-06 23:52:19.452 INFO (SyncWorker_10) [custom_components.smart_irrigation.sensor] updated_adjusted_run_time_from_event called.
2023-07-06 23:52:19.452 INFO (SyncWorker_10) [custom_components.smart_irrigation.sensor] Calculated water_budget = 0 and adjusted_run_time: 0 for type: Daily Adjusted Run Time. Bucket value was: 0.56548, and base schedule index is: 3661.016949152543, 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
2023-07-06 23:52:19.452 INFO (SyncWorker_10) [custom_components.smart_irrigation.sensor] updated_adjusted_run_time_from_event: got result: {'wb': 0, 'art': 0}. Setting attributes of daily adjusted run time (including result['wb']) and state == result['art']
2023-07-06 23:52:19.457 INFO (SyncWorker_10) [custom_components.smart_irrigation.sensor] sun_rise: 2023-07-07 03:07:05.218769+00:00
2023-07-06 23:52:19.457 INFO (SyncWorker_10) [custom_components.smart_irrigation.sensor] Smart_Irrigation_Gemischtes_Beet_start will fire at 2023-07-07 03:07:05.218769+00:00
2023-07-06 23:52:21.645 INFO (MainThread) [homeassistant.components.websocket_api.http.connection] [281472349973200] Received unknown command: cloud/status
2023-07-06 23:52:26.909 INFO (MainThread) [homeassistant.components.websocket_api.http.connection] [281472349973200] Received unknown command: cloud/status
2023-07-06 23:52:29.007 INFO (MainThread) [homeassistant.components.websocket_api.http.connection] [281472349973200] Received unknown command: cloud/status
Why doesn’t my setup calculate a daily adjusted run time? Any help would be appreciated!