springfall2008 / batpred

Home battery prediction and charging automation for Home Assistant, supporting many inverter types
https://springfall2008.github.io/batpred/
114 stars 39 forks source link

Lost wi-fi, Predbat didn't fail in a detectable way #826

Closed gcoan closed 5 months ago

gcoan commented 6 months ago

Describe the bug The wi-fi node in my garage lost connection this afternoon so the inverters went offline. Predbat started reporting errors with time being incorrect and REST failing & would be disabled, but because predbat.status changed every 5 minutes the script I have to detect a Predbat failure occuring for a period of time couldn't be triggered.

history of predbat.status: image image image and carries on like this for the next 2 hours image

Expected behavior

  1. Failure occurred reading from REST, Predbat says it will stop using REST, but 5 minutes later it tries again. If REST fails then Predbat should stop trying to use it (or at least stop for a decent time period, e.g. 30 minutes).
  2. Once an error occurs, leave the status showing the error, don't change it. This means an external automation to detect "predbat.status contains 'ERROR' for 10 minutes" can be triggered

I suspect the REST issue is what caused the second issue. Might be that the errors were coming from the balance inverter code?

Predbat version 7.16.3

Environment details HAOS, 2x 5kW hybrid inverters

Log file logfile extract:

15:25:01.729020 INFO pred_bat: WARN: Historical day 8 has 40 minutes of gap in the data, filled from 48.62 kWh to make new average 50.01 kWh (percent 97%)
2024-03-06 15:25:01.736723 INFO pred_bat: Historical days now [2, 4, 5, 6, 7, 8] weight [1, 1, 1, 1, 1, 1]
2024-03-06 15:25:01.763217 INFO pred_bat: Today's load divergence 76.36 % in-day adjustment 76.36 % damping 1.0x, Predicted so far 24.3 kWh with 0.0 kWh car excluded and 13.72 kWh import ignored and 0 forecast extra, Actual so far 16.13 kWh with 0.0 kWh car excluded and 5.03 kWh import ignored
2024-03-06 15:25:01.849895 INFO pred_bat: Inverter 0 using Rest API http://homeassistant.local:6345
2024-03-06 15:25:19.248758 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:25:19.269353 INFO pred_bat: WARN: Inverter control auto restart trigger: REST read failure
2024-03-06 15:25:19.271909 INFO pred_bat: Reserve min: 4.0% Battery_min:4.0%
2024-03-06 15:25:19.274717 INFO pred_bat: Inverter 0 with soc_max 10.0 kWh nominal_capacity 10.0 kWh battery rate raw 2600.0 w charge rate 2.6 kW discharge rate 2.6 kW battery_rate_min 0.0 w ac limit 5.0 kW export limit 5.0 kW reserve 4.0 % current_reserve 4.0 %
2024-03-06 15:25:30.390865 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:25:30.412633 INFO pred_bat: Inverter 0 SOC: 9.52 kW 95 % Current charge rate 2600.0 w Current discharge rate 0.0 w Current power 0.0 w Current voltage 52.0
2024-03-06 15:25:30.414881 INFO pred_bat: WARN: Inverter 0 unable to read charge window time as neither REST, charge_start_time or charge_start_hour are set
2024-03-06 15:25:30.415634 INFO pred_bat: ERROR: Exception raised cannot access local variable 'charge_start_time' where it is not associated with a value
2024-03-06 15:25:30.461134 INFO pred_bat: BALANCE: Enabled balance charge False discharge False crosscharge True threshold charge 1.0 discharge 1.0
2024-03-06 15:25:52.306228 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:25:52.324098 INFO pred_bat: WARN: Inverter control auto restart trigger: REST read failure
2024-03-06 15:25:52.326758 INFO pred_bat: Reserve min: 4.0% Battery_min:4.0%
2024-03-06 15:26:03.355603 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:26:03.384937 INFO pred_bat: WARN: Inverter 0 unable to read charge window time as neither REST, charge_start_time or charge_start_hour are set
2024-03-06 15:26:03.385538 INFO pred_bat: ERROR: Exception raised cannot access local variable 'charge_start_time' where it is not associated with a value
2024-03-06 15:26:15.008530 INFO pred_bat: BALANCE: Enabled balance charge False discharge False crosscharge True threshold charge 1.0 discharge 1.0
2024-03-06 15:26:26.105963 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:26:26.128181 INFO pred_bat: WARN: Inverter control auto restart trigger: REST read failure
2024-03-06 15:26:26.130998 INFO pred_bat: Reserve min: 4.0% Battery_min:4.0%
2024-03-06 15:26:37.209918 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:26:37.232383 INFO pred_bat: WARN: Inverter 0 unable to read charge window time as neither REST, charge_start_time or charge_start_hour are set
2024-03-06 15:26:37.232990 INFO pred_bat: ERROR: Exception raised cannot access local variable 'charge_start_time' where it is not associated with a value
2024-03-06 15:27:15.007148 INFO pred_bat: BALANCE: Enabled balance charge False discharge False crosscharge True threshold charge 1.0 discharge 1.0
2024-03-06 15:27:30.318548 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:27:30.342272 INFO pred_bat: WARN: Inverter control auto restart trigger: REST read failure
2024-03-06 15:27:30.345262 INFO pred_bat: Reserve min: 4.0% Battery_min:4.0%
2024-03-06 15:27:41.439419 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:27:41.460698 INFO pred_bat: WARN: Inverter 0 unable to read charge window time as neither REST, charge_start_time or charge_start_hour are set
2024-03-06 15:27:41.461634 INFO pred_bat: ERROR: Exception raised cannot access local variable 'charge_start_time' where it is not associated with a value
2024-03-06 15:28:15.007752 INFO pred_bat: BALANCE: Enabled balance charge False discharge False crosscharge True threshold charge 1.0 discharge 1.0
2024-03-06 15:28:34.662200 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:28:34.682252 INFO pred_bat: WARN: Inverter control auto restart trigger: REST read failure
2024-03-06 15:28:34.685500 INFO pred_bat: Reserve min: 4.0% Battery_min:4.0%
2024-03-06 15:28:45.815891 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:28:45.837641 INFO pred_bat: WARN: Inverter 0 unable to read charge window time as neither REST, charge_start_time or charge_start_hour are set
2024-03-06 15:28:45.838245 INFO pred_bat: ERROR: Exception raised cannot access local variable 'charge_start_time' where it is not associated with a value
2024-03-06 15:29:15.008233 INFO pred_bat: BALANCE: Enabled balance charge False discharge False crosscharge True threshold charge 1.0 discharge 1.0
2024-03-06 15:29:26.078280 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:29:26.096959 INFO pred_bat: WARN: Inverter control auto restart trigger: REST read failure
2024-03-06 15:29:26.099483 INFO pred_bat: Reserve min: 4.0% Battery_min:4.0%
2024-03-06 15:29:47.938600 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:29:47.959925 INFO pred_bat: WARN: Inverter 0 unable to read charge window time as neither REST, charge_start_time or charge_start_hour are set
2024-03-06 15:29:47.960501 INFO pred_bat: ERROR: Exception raised cannot access local variable 'charge_start_time' where it is not associated with a value
2024-03-06 15:30:00.006913 INFO pred_bat: --------------- PredBat - update at 2024-03-06 15:30:00.006166+00:00 with clock skew 0 minutes, minutes now 930
2024-03-06 15:30:00.008172 INFO pred_bat: Using cached GITHub data for https://api.github.com/repos/springfall2008/batpred/releases age 100.0 minutes
2024-03-06 15:30:00.009012 INFO pred_bat: Predbat /homeassistant/appdaemon/apps/batpred/predbat.py version v7.16.3 currently running, latest version is v7.16.3 latest beta v7.16.3
2024-03-06 15:30:00.010676 INFO pred_bat: Autoupdate: Currently up to date
2024-03-06 15:30:00.037982 INFO pred_bat: Inverter type GE forecast_hours 48 max_windows 96 num_cars 0 debug enable is False calculate_plan_every 10
2024-03-06 15:30:00.039501 INFO pred_bat: Predbat mode is set to Control charge & discharge
2024-03-06 15:30:00.332438 INFO pred_bat: Found 12961 load_today datapoints going back 9 days
2024-03-06 15:30:00.885422 INFO octoblock: Lowest average price for 1 hour block is: 13.82 p/kWh
2024-03-06 15:30:00.886930 INFO octoblock: Best priced 1 hour period starts at: 2024-03-06T22:00:00GMT
2024-03-06 15:30:00.966123 INFO octoblock: Lowest average price for 1.5 hour block is: 14.21 p/kWh
2024-03-06 15:30:00.968225 INFO octoblock: Best priced 1.5 hour period starts at: 2024-03-06T21:30:00GMT
2024-03-06 15:30:01.029641 INFO octoblock: Lowest average price for 2 hour block is: 14.63 p/kWh
2024-03-06 15:30:01.031151 INFO octoblock: Best priced 2 hour period starts at: 2024-03-06T21:00:00GMT
2024-03-06 15:30:01.573242 INFO pred_bat: Car charging hold False threshold 6.0
2024-03-06 15:30:01.575712 INFO pred_bat: Current data so far today: load 21.16 kWh import 20.3 kWh export 3.5 kWh pv 11.6 kWh
2024-03-06 15:30:01.583584 INFO pred_bat: Fetching futurerate data from https://www.nordpoolgroup.com/api/marketdata/page/325?currency=GBP
2024-03-06 15:30:01.589254 INFO pred_bat: Return cached futurerate data for https://www.nordpoolgroup.com/api/marketdata/page/325?currency=GBP age 290.0 minutes
2024-03-06 15:30:01.590934 INFO pred_bat: Future rates - peak rate is 960 - 1140 minutes premium import 14 export 6
2024-03-06 15:30:01.620506 INFO pred_bat: Loaded 192 datapoints of futurerate analysis
2024-03-06 15:30:01.640874 INFO pred_bat: Predicted future rates: ['03-06 15:00:00 => 16.06 / 6.61', '03-06 16:00:00 => 32.24 / 13.21', '03-06 17:00:00 => 36.38 / 14.92', '03-06 18:00:00 => 36.74 / 15.06', '03-06 19:00:00 => 18.51 / 7.61', '03-06 20:00:00 => 16.3 / 6.7', '03-06 21:00:00 => 15.83 / 6.51', '03-06 22:00:00 => 14.05 / 5.78', '03-06 23:00:00 => 14.44 / 5.94', '03-07 00:00:00 => 14.54 / 5.98', '03-07 01:00:00 => 14.43 / 5.93', '03-07 02:00:00 => 14.48 / 5.95', '03-07 03:00:00 => 14.32 / 5.89', '03-07 04:00:00 => 14.28 / 5.87', '03-07 05:00:00 => 16.87 / 6.94', '03-07 06:00:00 => 20.15 / 8.29', '03-07 07:00:00 => 21.04 / 8.65', '03-07 08:00:00 => 18.5 / 7.61', '03-07 09:00:00 => 16.16 / 6.64', '03-07 10:00:00 => 13.64 / 5.61', '03-07 11:00:00 => 13.65 / 5.61', '03-07 12:00:00 => 13.4 / 5.51', '03-07 13:00:00 => 13.41 / 5.51', '03-07 14:00:00 => 14.04 / 5.77', '03-07 15:00:00 => 14.69 / 6.04', '03-07 16:00:00 => 32.24 / 13.21', '03-07 17:00:00 => 34.82 / 14.27', '03-07 18:00:00 => 34.61 / 14.19', '03-07 19:00:00 => 17.23 / 7.09', '03-07 20:00:00 => 15.35 / 6.31']
2024-03-06 15:30:01.674018 INFO pred_bat: Standing charge is set to 0.0 p
2024-03-06 15:30:01.684325 INFO pred_bat: Adding rate {'date': '2024-02-29', 'start': '12:00:00', 'end': '15:30:00', 'rate': 0, 'load_scaling': 7.0} => 03-06 12:00:00 to 03-06 15:30:00 @ 0.0 date 2024-02-29 00:00:00 increment False
2024-03-06 15:30:02.162635 INFO pred_bat: Rate min forward looking: now 11.67 at end of forecast 11.67
2024-03-06 15:30:02.164628 INFO pred_bat: Import rates min 11.67 max 36.58 average 17.12
2024-03-06 15:30:02.173585 INFO pred_bat: Adding rate {'start': '16:00:00', 'end': '19:00:00', 'rate_increment': -5} => 03-06 16:00:00 to 03-06 19:00:00 @ -5.0 date None increment True
2024-03-06 15:30:02.177480 INFO pred_bat: Export rates min 10.0 max 15.0 average 14.38
2024-03-06 15:30:02.179438 INFO pred_bat: Rate thresholds (for charge/discharge) are import 36.08p (0.0) export 10.5p (0.0)
2024-03-06 15:30:02.191743 INFO pred_bat: High export rate found rates in range 15.0 to 15.0
2024-03-06 15:30:02.204278 INFO pred_bat: Low Import rate found rates in range 11.67 to 35.92
2024-03-06 15:30:02.245900 INFO pred_bat: Todays energy import 20.3 kWh export 3.5 kWh cost 224.49 p import 276.99 p export -52.5 p
2024-03-06 15:30:02.254178 INFO pred_bat: PV Data for pv_forecast_today total 14.0 kWh
2024-03-06 15:30:02.259456 INFO pred_bat: PV Data for pv_forecast_tomorrow total 21.81 kWh
2024-03-06 15:30:02.264698 INFO pred_bat: PV Data for pv_forecast_d3 total 26.13 kWh
2024-03-06 15:30:02.269197 INFO pred_bat: PV Data for pv_forecast_d4 total 24.59 kWh
2024-03-06 15:30:02.290189 INFO pred_bat: Historical data totals for days [2, 3, 4, 5, 6, 7, 8] are [55.82, 42.46, 47.79, 60.65, 57.89, 44.78, 48.64] - min 42.46
2024-03-06 15:30:02.294195 INFO pred_bat: Model filter enabled - Discarding day 3 as it is the lowest of the 7 datapoints
2024-03-06 15:30:02.297460 INFO pred_bat: WARN: Historical day 7 has 10 minutes of gap in the data, filled from 44.78 kWh to make new average 45.09 kWh (percent 99%)
2024-03-06 15:30:02.301574 INFO pred_bat: WARN: Historical day 8 has 40 minutes of gap in the data, filled from 48.64 kWh to make new average 50.03 kWh (percent 97%)
2024-03-06 15:30:02.308183 INFO pred_bat: Historical days now [2, 4, 5, 6, 7, 8] weight [1, 1, 1, 1, 1, 1]
2024-03-06 15:30:02.343871 INFO pred_bat: Today's load divergence 75.38 % in-day adjustment 75.38 % damping 1.0x, Predicted so far 24.57 kWh with 0.0 kWh car excluded and 13.72 kWh import ignored and 0 forecast extra, Actual so far 16.13 kWh with 0.0 kWh car excluded and 5.03 kWh import ignored
2024-03-06 15:30:02.414162 INFO pred_bat: Inverter 0 using Rest API http://homeassistant.local:6345
2024-03-06 15:30:19.135299 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:30:19.158992 INFO pred_bat: WARN: Inverter control auto restart trigger: REST read failure
2024-03-06 15:30:19.162412 INFO pred_bat: Reserve min: 4.0% Battery_min:4.0%
2024-03-06 15:30:19.164875 INFO pred_bat: Inverter 0 with soc_max 10.0 kWh nominal_capacity 10.0 kWh battery rate raw 2600.0 w charge rate 2.6 kW discharge rate 2.6 kW battery_rate_min 0.0 w ac limit 5.0 kW export limit 5.0 kW reserve 4.0 % current_reserve 4.0 %
2024-03-06 15:30:30.236471 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:30:30.258722 INFO pred_bat: Inverter 0 SOC: 9.52 kW 95 % Current charge rate 2600.0 w Current discharge rate 0.0 w Current power 0.0 w Current voltage 52.0
2024-03-06 15:30:30.260487 INFO pred_bat: WARN: Inverter 0 unable to read charge window time as neither REST, charge_start_time or charge_start_hour are set
2024-03-06 15:30:30.261368 INFO pred_bat: ERROR: Exception raised cannot access local variable 'charge_start_time' where it is not associated with a value
2024-03-06 15:30:30.295264 INFO pred_bat: BALANCE: Enabled balance charge False discharge False crosscharge True threshold charge 1.0 discharge 1.0
2024-03-06 15:30:52.423996 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:30:52.446268 INFO pred_bat: WARN: Inverter control auto restart trigger: REST read failure
2024-03-06 15:30:52.449036 INFO pred_bat: Reserve min: 4.0% Battery_min:4.0%
2024-03-06 15:31:03.525897 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:31:03.553075 INFO pred_bat: WARN: Inverter 0 unable to read charge window time as neither REST, charge_start_time or charge_start_hour are set
2024-03-06 15:31:03.553917 INFO pred_bat: ERROR: Exception raised cannot access local variable 'charge_start_time' where it is not associated with a value
2024-03-06 15:31:15.007635 INFO pred_bat: BALANCE: Enabled balance charge False discharge False crosscharge True threshold charge 1.0 discharge 1.0
2024-03-06 15:31:26.270902 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:31:26.292740 INFO pred_bat: WARN: Inverter control auto restart trigger: REST read failure
2024-03-06 15:31:26.295738 INFO pred_bat: Reserve min: 4.0% Battery_min:4.0%
2024-03-06 15:31:37.428926 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:31:37.450578 INFO pred_bat: WARN: Inverter 0 unable to read charge window time as neither REST, charge_start_time or charge_start_hour are set
2024-03-06 15:31:37.451162 INFO pred_bat: ERROR: Exception raised cannot access local variable 'charge_start_time' where it is not associated with a value
2024-03-06 15:32:15.007266 INFO pred_bat: BALANCE: Enabled balance charge False discharge False crosscharge True threshold charge 1.0 discharge 1.0
2024-03-06 15:32:30.736894 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:32:30.749812 INFO pred_bat: WARN: Inverter control auto restart trigger: REST read failure
2024-03-06 15:32:30.754268 INFO pred_bat: Reserve min: 4.0% Battery_min:4.0%
2024-03-06 15:32:41.849999 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:32:41.867904 INFO pred_bat: WARN: Inverter 0 unable to read charge window time as neither REST, charge_start_time or charge_start_hour are set
2024-03-06 15:32:41.869287 INFO pred_bat: ERROR: Exception raised cannot access local variable 'charge_start_time' where it is not associated with a value
2024-03-06 15:33:15.007379 INFO pred_bat: BALANCE: Enabled balance charge False discharge False crosscharge True threshold charge 1.0 discharge 1.0
2024-03-06 15:33:35.105732 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:33:35.123027 INFO pred_bat: WARN: Inverter control auto restart trigger: REST read failure
2024-03-06 15:33:35.125884 INFO pred_bat: Reserve min: 4.0% Battery_min:4.0%
2024-03-06 15:33:46.338791 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:33:46.369108 INFO pred_bat: WARN: Inverter 0 unable to read charge window time as neither REST, charge_start_time or charge_start_hour are set
2024-03-06 15:33:46.370653 INFO pred_bat: ERROR: Exception raised cannot access local variable 'charge_start_time' where it is not associated with a value
2024-03-06 15:34:15.014921 INFO pred_bat: BALANCE: Enabled balance charge False discharge False crosscharge True threshold charge 1.0 discharge 1.0
2024-03-06 15:34:25.913720 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:34:25.934021 INFO pred_bat: WARN: Inverter control auto restart trigger: REST read failure
2024-03-06 15:34:25.936177 INFO pred_bat: Reserve min: 4.0% Battery_min:4.0%
2024-03-06 15:34:47.877248 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:34:47.924504 INFO pred_bat: WARN: Inverter 0 unable to read charge window time as neither REST, charge_start_time or charge_start_hour are set
2024-03-06 15:34:47.925593 INFO pred_bat: ERROR: Exception raised cannot access local variable 'charge_start_time' where it is not associated with a value
2024-03-06 15:35:00.007404 INFO pred_bat: --------------- PredBat - update at 2024-03-06 15:35:00.006377+00:00 with clock skew 0 minutes, minutes now 935
2024-03-06 15:35:00.008281 INFO pred_bat: Using cached GITHub data for https://api.github.com/repos/springfall2008/batpred/releases age 105.0 minutes
2024-03-06 15:35:00.009683 INFO pred_bat: Predbat /homeassistant/appdaemon/apps/batpred/predbat.py version v7.16.3 currently running, latest version is v7.16.3 latest beta v7.16.3
2024-03-06 15:35:00.010526 INFO pred_bat: Autoupdate: Currently up to date
2024-03-06 15:35:00.035512 INFO pred_bat: Inverter type GE forecast_hours 48 max_windows 96 num_cars 0 debug enable is False calculate_plan_every 10
2024-03-06 15:35:00.037298 INFO pred_bat: Predbat mode is set to Control charge & discharge
2024-03-06 15:35:00.319368 INFO pred_bat: Found 12961 load_today datapoints going back 9 days
2024-03-06 15:35:00.960275 INFO pred_bat: Car charging hold False threshold 6.0
2024-03-06 15:35:00.962006 INFO pred_bat: Current data so far today: load 21.16 kWh import 20.3 kWh export 3.5 kWh pv 11.7 kWh
2024-03-06 15:35:00.962944 INFO pred_bat: Fetching futurerate data from https://www.nordpoolgroup.com/api/marketdata/page/325?currency=GBP
2024-03-06 15:35:00.964533 INFO pred_bat: Return cached futurerate data for https://www.nordpoolgroup.com/api/marketdata/page/325?currency=GBP age 295.0 minutes
2024-03-06 15:35:00.966000 INFO pred_bat: Future rates - peak rate is 960 - 1140 minutes premium import 14 export 6
2024-03-06 15:35:00.995792 INFO pred_bat: Loaded 192 datapoints of futurerate analysis
2024-03-06 15:35:01.023704 INFO pred_bat: Predicted future rates: ['03-06 15:00:00 => 16.06 / 6.61', '03-06 16:00:00 => 32.24 / 13.21', '03-06 17:00:00 => 36.38 / 14.92', '03-06 18:00:00 => 36.74 / 15.06', '03-06 19:00:00 => 18.51 / 7.61', '03-06 20:00:00 => 16.3 / 6.7', '03-06 21:00:00 => 15.83 / 6.51', '03-06 22:00:00 => 14.05 / 5.78', '03-06 23:00:00 => 14.44 / 5.94', '03-07 00:00:00 => 14.54 / 5.98', '03-07 01:00:00 => 14.43 / 5.93', '03-07 02:00:00 => 14.48 / 5.95', '03-07 03:00:00 => 14.32 / 5.89', '03-07 04:00:00 => 14.28 / 5.87', '03-07 05:00:00 => 16.87 / 6.94', '03-07 06:00:00 => 20.15 / 8.29', '03-07 07:00:00 => 21.04 / 8.65', '03-07 08:00:00 => 18.5 / 7.61', '03-07 09:00:00 => 16.16 / 6.64', '03-07 10:00:00 => 13.64 / 5.61', '03-07 11:00:00 => 13.65 / 5.61', '03-07 12:00:00 => 13.4 / 5.51', '03-07 13:00:00 => 13.41 / 5.51', '03-07 14:00:00 => 14.04 / 5.77', '03-07 15:00:00 => 14.69 / 6.04', '03-07 16:00:00 => 32.24 / 13.21', '03-07 17:00:00 => 34.82 / 14.27', '03-07 18:00:00 => 34.61 / 14.19', '03-07 19:00:00 => 17.23 / 7.09', '03-07 20:00:00 => 15.35 / 6.31']
2024-03-06 15:35:01.048190 INFO pred_bat: Standing charge is set to 0.0 p
2024-03-06 15:35:01.057554 INFO pred_bat: Adding rate {'date': '2024-02-29', 'start': '12:00:00', 'end': '15:30:00', 'rate': 0, 'load_scaling': 7.0} => 03-06 12:00:00 to 03-06 15:30:00 @ 0.0 date 2024-02-29 00:00:00 increment False
2024-03-06 15:35:01.484157 INFO pred_bat: Rate min forward looking: now 11.67 at end of forecast 11.67
2024-03-06 15:35:01.490853 INFO pred_bat: Import rates min 11.67 max 36.58 average 17.12
2024-03-06 15:35:01.503558 INFO pred_bat: Adding rate {'start': '16:00:00', 'end': '19:00:00', 'rate_increment': -5} => 03-06 16:00:00 to 03-06 19:00:00 @ -5.0 date None increment True
2024-03-06 15:35:01.513228 INFO pred_bat: Export rates min 10.0 max 15.0 average 14.38
2024-03-06 15:35:01.515185 INFO pred_bat: Rate thresholds (for charge/discharge) are import 36.08p (0.0) export 10.5p (0.0)
2024-03-06 15:35:01.526154 INFO pred_bat: High export rate found rates in range 15.0 to 15.0
2024-03-06 15:35:01.542944 INFO pred_bat: Low Import rate found rates in range 11.67 to 35.92
2024-03-06 15:35:01.606965 INFO pred_bat: Todays energy import 20.3 kWh export 3.5 kWh cost 224.49 p import 276.99 p export -52.5 p
2024-03-06 15:35:01.614825 INFO pred_bat: PV Data for pv_forecast_today total 14.0 kWh
2024-03-06 15:35:01.619915 INFO pred_bat: PV Data for pv_forecast_tomorrow total 21.81 kWh
2024-03-06 15:35:01.625422 INFO pred_bat: PV Data for pv_forecast_d3 total 26.13 kWh
2024-03-06 15:35:01.631417 INFO pred_bat: PV Data for pv_forecast_d4 total 24.59 kWh
2024-03-06 15:35:01.651473 INFO pred_bat: Historical data totals for days [2, 3, 4, 5, 6, 7, 8] are [55.5, 42.34, 48.09, 60.73, 57.86, 44.74, 48.74] - min 42.34
2024-03-06 15:35:01.656195 INFO pred_bat: Model filter enabled - Discarding day 3 as it is the lowest of the 7 datapoints
2024-03-06 15:35:01.658319 INFO pred_bat: WARN: Historical day 7 has 10 minutes of gap in the data, filled from 44.74 kWh to make new average 45.05 kWh (percent 99%)
2024-03-06 15:35:01.661822 INFO pred_bat: WARN: Historical day 8 has 40 minutes of gap in the data, filled from 48.74 kWh to make new average 50.13 kWh (percent 97%)
2024-03-06 15:35:01.669737 INFO pred_bat: Historical days now [2, 4, 5, 6, 7, 8] weight [1, 1, 1, 1, 1, 1]
2024-03-06 15:35:01.702548 INFO pred_bat: Today's load divergence 75.38 % in-day adjustment 75.38 % damping 1.0x, Predicted so far 24.57 kWh with 0.0 kWh car excluded and 13.72 kWh import ignored and 0 forecast extra, Actual so far 16.13 kWh with 0.0 kWh car excluded and 5.03 kWh import ignored
2024-03-06 15:35:01.763757 INFO pred_bat: Inverter 0 using Rest API http://homeassistant.local:6345
2024-03-06 15:35:08.622732 INFO AppDaemon: Reading config
2024-03-06 15:35:08.677777 INFO AppDaemon: /homeassistant/appdaemon/apps/batpred/config/apps.yaml added or modified
2024-03-06 15:35:08.679966 INFO AppDaemon: App 'pred_bat' changed
2024-03-06 15:35:08.684032 INFO AppDaemon: Found 3 active apps
2024-03-06 15:35:08.684215 INFO AppDaemon: Found 0 inactive apps
2024-03-06 15:35:08.684746 INFO AppDaemon: Found 0 global libraries
2024-03-06 15:35:08.692742 INFO AppDaemon: Terminating pred_bat
2024-03-06 15:35:08.695080 INFO AppDaemon: Reloading Module: /homeassistant/appdaemon/apps/batpred/predbat.py
2024-03-06 15:35:08.926640 INFO AppDaemon: Loading app pred_bat using class PredBat from module predbat
2024-03-06 15:35:08.929908 INFO AppDaemon: Calling initialize() for pred_bat
2024-03-06 15:35:08.933127 INFO pred_bat: Predbat: Startup predbat
2024-03-06 15:35:08.934127 INFO pred_bat: Sanity check:
2024-03-06 15:35:08.935960 INFO pred_bat: Sanity scan files in '/config' : ['dashboards', 'namespaces', 'www', 'compiled', 'appdaemon.yaml']
2024-03-06 15:35:08.942773 INFO pred_bat: Sanity: Got app_dir /homeassistant/appdaemon/apps
2024-03-06 15:35:08.943679 INFO pred_bat: Sanity: Scanning app_dirs: ['/homeassistant/appdaemon/apps']
2024-03-06 15:35:08.944347 INFO pred_bat: Sanity: Got apps.yaml in location /homeassistant/appdaemon/apps/apps.yaml
2024-03-06 15:35:08.945009 INFO pred_bat: Sanity: Got predbat.py in location /homeassistant/appdaemon/apps/batpred/predbat.py
2024-03-06 15:35:08.945667 INFO pred_bat: Sanity: Got apps.yaml in location /homeassistant/appdaemon/apps/batpred/config/apps.yaml
2024-03-06 15:35:08.964684 INFO pred_bat: Sanity: /homeassistant/appdaemon/apps/batpred/config/apps.yaml is a valid pred_bat configuration
2024-03-06 15:35:08.965734 INFO pred_bat: Sanity: Confirmed correct version v7.16.3 is in predbat.py
2024-03-06 15:35:08.968849 INFO pred_bat: Sanity check has passed
2024-03-06 15:35:09.008878 INFO pred_bat: Regular expression argument geserial matched ^sensor.g_(.+)_soc_kwh$ with sd2237g182
2024-03-06 15:35:09.010250 INFO pred_bat: Regular expression argument geserial2 matched ^sensor.h_(.+)_soc_kwh$ with sd2237g395
2024-03-06 15:35:09.011500 INFO pred_bat: Regular expression argument pv_forecast_today matched ^(sensor.(solcast_|)(pv_forecast_|)today)$ with sensor.solcast_pv_forecast_today
2024-03-06 15:35:09.012298 INFO pred_bat: Regular expression argument pv_forecast_tomorrow matched ^(sensor.(solcast_|)(pv_forecast_|)tomorrow)$ with sensor.solcast_pv_forecast_tomorrow
2024-03-06 15:35:09.013517 INFO pred_bat: Regular expression argument pv_forecast_d3 matched ^(sensor.(solcast_|)(pv_forecast_|)(day_3|d3))$ with sensor.solcast_pv_forecast_day_3
2024-03-06 15:35:09.014271 INFO pred_bat: Regular expression argument pv_forecast_d4 matched ^(sensor.(solcast_|)(pv_forecast_|)(day_4|d4))$ with sensor.solcast_pv_forecast_day_4
2024-03-06 15:35:09.015158 INFO pred_bat: Regular expression argument octopus_saving_session matched ^(binary_sensor.octopus_energy([0-9a-z_]+|)_saving_session(s|))$ with binary_sensor.octopus_energy_a_b09db615_octoplus_saving_sessions
2024-03-06 15:35:09.015824 INFO pred_bat: Regular expression argument metric_octopus_import matched ^(sensor.(octopus_energy_|)electricity_[0-9a-z]+_[0-9a-z]+_current_rate)$ with sensor.octopus_energy_electricity_22j0452464_1012444237400_current_rate
2024-03-06 15:35:09.017094 INFO pred_bat: Regular expression argument metric_octopus_export matched ^(sensor.(octopus_energy_|)electricity_[0-9a-z]+_[0-9a-z]+_export_current_rate)$ with sensor.octopus_energy_electricity_22j0452464_1050002821319_export_current_rate
2024-03-06 15:35:09.021344 INFO pred_bat: Updating HA config expert_mode to True
2024-03-06 15:35:09.037147 INFO pred_bat: Updating HA config active to True
2024-03-06 15:35:09.053739 INFO pred_bat: Updating HA config pv_metric10_weight to 0.3
2024-03-06 15:35:09.072035 INFO pred_bat: Updating HA config pv_scaling to 1.0
2024-03-06 15:35:09.081799 INFO pred_bat: Updating HA config load_scaling to 1.15
2024-03-06 15:35:09.096275 INFO pred_bat: Updating HA config load_scaling10 to 1.1
2024-03-06 15:35:09.107174 INFO pred_bat: Updating HA config load_scaling_saving to 0.1
2024-03-06 15:35:09.118865 INFO pred_bat: Updating HA config battery_rate_max_scaling to 1.0
2024-03-06 15:35:09.134859 INFO pred_bat: Updating HA config battery_rate_max_scaling_discharge to 1.0
2024-03-06 15:35:09.147322 INFO pred_bat: Updating HA config battery_loss to 0.05
2024-03-06 15:35:09.160512 INFO pred_bat: Updating HA config battery_loss_discharge to 0.05
2024-03-06 15:35:09.175451 INFO pred_bat: Updating HA config inverter_loss to 0.04
2024-03-06 15:35:09.186210 INFO pred_bat: Updating HA config inverter_hybrid to True
2024-03-06 15:35:09.200303 INFO pred_bat: Updating HA config inverter_soc_reset to False
2024-03-06 15:35:09.215407 INFO pred_bat: Updating HA config battery_capacity_nominal to False
2024-03-06 15:35:09.227044 INFO pred_bat: Updating HA config car_charging_energy_scale to 1.0
2024-03-06 15:35:09.243951 INFO pred_bat: Updating HA config car_charging_threshold to 6.0
2024-03-06 15:35:09.258183 INFO pred_bat: Updating HA config car_charging_rate to 7.4
2024-03-06 15:35:09.268828 INFO pred_bat: Updating HA config car_charging_loss to 0.08
2024-03-06 15:35:09.278825 INFO pred_bat: Updating HA config best_soc_min to 0.0
2024-03-06 15:35:09.289266 INFO pred_bat: Updating HA config best_soc_max to 0.0
2024-03-06 15:35:09.299556 INFO pred_bat: Updating HA config best_soc_keep to 0.5
2024-03-06 15:35:09.310071 INFO pred_bat: Updating HA config metric_min_improvement to 0.0
2024-03-06 15:35:09.321802 INFO pred_bat: Updating HA config metric_min_improvement_discharge to 0.2
2024-03-06 15:35:09.332167 INFO pred_bat: Updating HA config metric_battery_cycle to 0.0
2024-03-06 15:35:09.351848 INFO pred_bat: Updating HA config metric_battery_value_scaling to 1.0
2024-03-06 15:35:09.381755 INFO pred_bat: Updating HA config metric_future_rate_offset_import to 0.0
2024-03-06 15:35:09.406155 INFO pred_bat: Updating HA config metric_future_rate_offset_export to 0.0
2024-03-06 15:35:09.434655 INFO pred_bat: Updating HA config metric_inday_adjust_damping to 1.0
2024-03-06 15:35:09.456434 INFO pred_bat: Updating HA config metric_cloud_enable to True
2024-03-06 15:35:09.468548 INFO pred_bat: Set reset inverter true due to reset_inverter on item set_reserve_min
2024-03-06 15:35:09.469529 INFO pred_bat: Updating HA config set_reserve_min to 4.0
2024-03-06 15:35:09.481217 INFO pred_bat: Updating HA config rate_low_threshold to 0.0
2024-03-06 15:35:09.494929 INFO pred_bat: Updating HA config rate_high_threshold to 0.0
2024-03-06 15:35:09.507710 INFO pred_bat: Set reset inverter true due to reset_inverter on item car_charging_hold
2024-03-06 15:35:09.508820 INFO pred_bat: Updating HA config car_charging_hold to False
2024-03-06 15:35:09.517185 INFO pred_bat: Updating HA config car_charging_manual_soc to False
2024-03-06 15:35:09.533074 INFO pred_bat: Note: Disabled configuration item car_charging_manual_soc_kwh
2024-03-06 15:35:09.536852 INFO pred_bat: Updating HA config octopus_intelligent_charging to False
2024-03-06 15:35:09.550797 INFO pred_bat: Updating HA config octopus_intelligent_ignore_unplugged to False
2024-03-06 15:35:09.563501 INFO pred_bat: Updating HA config car_charging_plan_smart to False
2024-03-06 15:35:09.578353 INFO pred_bat: Set reset inverter true due to reset_inverter on item car_charging_from_battery
2024-03-06 15:35:09.581115 INFO pred_bat: Updating HA config car_charging_from_battery to False
2024-03-06 15:35:09.593260 INFO pred_bat: Updating HA config calculate_discharge_oncharge to True
2024-03-06 15:35:09.603880 INFO pred_bat: Updating HA config calculate_fast_plan to False
2024-03-06 15:35:09.615489 INFO pred_bat: Updating HA config calculate_second_pass to False
2024-03-06 15:35:09.629335 INFO pred_bat: Updating HA config calculate_tweak_plan to False
2024-03-06 15:35:09.640856 INFO pred_bat: Updating HA config calculate_regions to True
2024-03-06 15:35:09.655246 INFO pred_bat: Updating HA config calculate_inday_adjustment to True
2024-03-06 15:35:09.667707 INFO pred_bat: Updating HA config calculate_plan_every to 10.0
2024-03-06 15:35:09.677892 INFO pred_bat: Updating HA config combine_charge_slots to False
2024-03-06 15:35:09.687196 INFO pred_bat: Updating HA config combine_discharge_slots to False
2024-03-06 15:35:09.698733 INFO pred_bat: Updating HA config set_status_notify to True
2024-03-06 15:35:09.707548 INFO pred_bat: Updating HA config set_inverter_notify to False
2024-03-06 15:35:09.716544 INFO pred_bat: Set reset inverter true due to reset_inverter on item set_charge_freeze
2024-03-06 15:35:09.717280 INFO pred_bat: Updating HA config set_charge_freeze to True
2024-03-06 15:35:09.731431 INFO pred_bat: Set reset inverter true due to reset_inverter on item set_charge_low_power
2024-03-06 15:35:09.732430 INFO pred_bat: Updating HA config set_charge_low_power to False
2024-03-06 15:35:09.743117 INFO pred_bat: Set reset inverter true due to reset_inverter on item set_reserve_enable
2024-03-06 15:35:09.743883 INFO pred_bat: Updating HA config set_reserve_enable to True
2024-03-06 15:35:09.754673 INFO pred_bat: Set reset inverter true due to reset_inverter on item set_discharge_freeze_only
2024-03-06 15:35:09.755697 INFO pred_bat: Updating HA config set_discharge_freeze_only to False
2024-03-06 15:35:09.765619 INFO pred_bat: Updating HA config set_discharge_during_charge to False
2024-03-06 15:35:09.775876 INFO pred_bat: Set reset inverter true due to reset_inverter_force on item set_read_only
2024-03-06 15:35:09.776638 INFO pred_bat: Updating HA config set_read_only to False
2024-03-06 15:35:09.786996 INFO pred_bat: Updating HA config balance_inverters_enable to True
2024-03-06 15:35:09.799498 INFO pred_bat: Updating HA config balance_inverters_charge to False
2024-03-06 15:35:09.810253 INFO pred_bat: Updating HA config balance_inverters_discharge to False
2024-03-06 15:35:09.818406 INFO pred_bat: Updating HA config balance_inverters_crosscharge to True
2024-03-06 15:35:09.829460 INFO pred_bat: Updating HA config balance_inverters_threshold_charge to 1.0
2024-03-06 15:35:09.843642 INFO pred_bat: Updating HA config balance_inverters_threshold_discharge to 1.0
2024-03-06 15:35:09.856344 INFO pred_bat: Updating HA config debug_enable to False
2024-03-06 15:35:09.868620 INFO pred_bat: Updating HA config car_charging_plan_time to 07:00:00
2024-03-06 15:35:09.879605 INFO pred_bat: Set reset inverter true due to reset_inverter_force on item mode
2024-03-06 15:35:09.880352 INFO pred_bat: Updating HA config mode to Control charge & discharge
2024-03-06 15:35:09.892516 INFO pred_bat: Updating HA config manual_charge to 
2024-03-06 15:35:09.905336 INFO pred_bat: Updating HA config manual_discharge to 
2024-03-06 15:35:09.923199 INFO pred_bat: Updating HA config manual_idle to 
2024-03-06 15:35:09.939301 INFO pred_bat: Updating HA config saverestore to 
2024-03-06 15:35:09.953692 INFO pred_bat: Updating HA config auto_update to True
2024-03-06 15:35:09.964171 INFO pred_bat: Updating HA config load_filter_modal to True
2024-03-06 15:35:09.979167 INFO pred_bat: Updating HA config iboost_enable to False
2024-03-06 15:35:09.988523 INFO pred_bat: Updating HA config iboost_solar to False
2024-03-06 15:35:09.996456 INFO pred_bat: Updating HA config iboost_gas to False
2024-03-06 15:35:10.009119 INFO pred_bat: Updating HA config iboost_charging to False
2024-03-06 15:35:10.017109 INFO pred_bat: Note: Disabled configuration item iboost_gas_scale
2024-03-06 15:35:10.018419 INFO pred_bat: Note: Disabled configuration item iboost_max_energy
2024-03-06 15:35:10.019679 INFO pred_bat: Note: Disabled configuration item iboost_today
2024-03-06 15:35:10.020950 INFO pred_bat: Note: Disabled configuration item iboost_max_power
2024-03-06 15:35:10.022116 INFO pred_bat: Note: Disabled configuration item iboost_min_power
2024-03-06 15:35:10.023338 INFO pred_bat: Note: Disabled configuration item iboost_min_soc
2024-03-06 15:35:10.028515 INFO pred_bat: Updating HA config holiday_days_left to 0.0
2024-03-06 15:35:10.041725 INFO pred_bat: Updating HA config forecast_plan_hours to 30.0
2024-03-06 15:35:10.053059 INFO pred_bat: Updating HA config plan_debug to True
2024-03-06 15:35:10.206596 INFO pred_bat: Watch list []
2024-03-06 15:35:10.207232 INFO pred_bat: Inverter Type: GE (GivEnergy)
2024-03-06 15:35:10.207980 INFO pred_bat: Predbat: Next run time will be 2024-03-06 15:40:00 and then every 300 seconds
2024-03-06 15:35:10.218262 INFO pred_bat: Balance inverters will run every 60 seconds (if enabled)
2024-03-06 15:35:18.988799 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:35:19.009573 INFO pred_bat: WARN: Inverter control auto restart trigger: REST read failure
2024-03-06 15:35:19.012335 INFO pred_bat: Reserve min: 4.0% Battery_min:4.0%
2024-03-06 15:35:19.014041 INFO pred_bat: Inverter 0 with soc_max 10.0 kWh nominal_capacity 10.0 kWh battery rate raw 2600.0 w charge rate 2.6 kW discharge rate 2.6 kW battery_rate_min 0.0 w ac limit 5.0 kW export limit 5.0 kW reserve 4.0 % current_reserve 4.0 %
2024-03-06 15:35:30.077557 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:35:30.098500 INFO pred_bat: Inverter 0 SOC: 9.52 kW 95 % Current charge rate 2600.0 w Current discharge rate 0.0 w Current power 0.0 w Current voltage 52.0
2024-03-06 15:35:30.100382 INFO pred_bat: WARN: Inverter 0 unable to read charge window time as neither REST, charge_start_time or charge_start_hour are set
2024-03-06 15:35:30.101256 INFO pred_bat: ERROR: Exception raised cannot access local variable 'charge_start_time' where it is not associated with a value
2024-03-06 15:35:30.126397 WARNING AppDaemon: Found stale callback for pred_bat - discarding
2024-03-06 15:35:30.148330 INFO pred_bat: --------------- PredBat - update at 2024-03-06 15:35:30.147507+00:00 with clock skew 0 minutes, minutes now 935
2024-03-06 15:35:30.647068 INFO pred_bat: Predbat /homeassistant/appdaemon/apps/batpred/predbat.py version v7.16.3 currently running, latest version is v7.16.3 latest beta v7.16.3
2024-03-06 15:35:30.648209 INFO pred_bat: Autoupdate: Currently up to date
2024-03-06 15:35:30.680117 INFO pred_bat: Inverter type GE forecast_hours 48 max_windows 96 num_cars 0 debug enable is False calculate_plan_every 10
2024-03-06 15:35:30.681999 INFO pred_bat: Predbat mode is set to Control charge & discharge
2024-03-06 15:35:30.971370 INFO pred_bat: Found 12961 load_today datapoints going back 9 days
2024-03-06 15:35:31.604824 INFO pred_bat: Car charging hold False threshold 6.0
2024-03-06 15:35:31.611008 INFO pred_bat: Current data so far today: load 21.16 kWh import 20.3 kWh export 3.5 kWh pv 11.7 kWh
2024-03-06 15:35:31.616916 INFO pred_bat: Fetching futurerate data from https://www.nordpoolgroup.com/api/marketdata/page/325?currency=GBP
2024-03-06 15:35:32.180909 INFO pred_bat: Future rates - peak rate is 960 - 1140 minutes premium import 14 export 6
2024-03-06 15:35:32.207118 INFO pred_bat: Loaded 192 datapoints of futurerate analysis
2024-03-06 15:35:32.227487 INFO pred_bat: Predicted future rates: ['03-06 15:00:00 => 16.06 / 6.61', '03-06 16:00:00 => 32.24 / 13.21', '03-06 17:00:00 => 36.38 / 14.92', '03-06 18:00:00 => 36.74 / 15.06', '03-06 19:00:00 => 18.51 / 7.61', '03-06 20:00:00 => 16.3 / 6.7', '03-06 21:00:00 => 15.83 / 6.51', '03-06 22:00:00 => 14.05 / 5.78', '03-06 23:00:00 => 14.44 / 5.94', '03-07 00:00:00 => 14.54 / 5.98', '03-07 01:00:00 => 14.43 / 5.93', '03-07 02:00:00 => 14.48 / 5.95', '03-07 03:00:00 => 14.32 / 5.89', '03-07 04:00:00 => 14.28 / 5.87', '03-07 05:00:00 => 16.87 / 6.94', '03-07 06:00:00 => 20.15 / 8.29', '03-07 07:00:00 => 21.04 / 8.65', '03-07 08:00:00 => 18.5 / 7.61', '03-07 09:00:00 => 16.16 / 6.64', '03-07 10:00:00 => 13.64 / 5.61', '03-07 11:00:00 => 13.65 / 5.61', '03-07 12:00:00 => 13.4 / 5.51', '03-07 13:00:00 => 13.41 / 5.51', '03-07 14:00:00 => 14.04 / 5.77', '03-07 15:00:00 => 14.69 / 6.04', '03-07 16:00:00 => 32.24 / 13.21', '03-07 17:00:00 => 34.82 / 14.27', '03-07 18:00:00 => 34.61 / 14.19', '03-07 19:00:00 => 17.23 / 7.09', '03-07 20:00:00 => 15.35 / 6.31']
2024-03-06 15:35:32.252086 INFO pred_bat: Standing charge is set to 0.0 p
2024-03-06 15:35:32.265093 INFO pred_bat: Adding rate {'date': '2024-02-29', 'start': '12:00:00', 'end': '15:30:00', 'rate': 0, 'load_scaling': 7.0} => 03-06 12:00:00 to 03-06 15:30:00 @ 0.0 date 2024-02-29 00:00:00 increment False
2024-03-06 15:35:32.266791 INFO pred_bat: Adding rate {'date': '2024-03-07', 'start': '13:00:00', 'end': '15:30:00', 'rate': 0, 'load_scaling': 7.0} => 03-06 13:00:00 to 03-06 15:30:00 @ 0.0 date 2024-03-07 00:00:00 increment False
2024-03-06 15:35:32.730109 INFO pred_bat: Rate min forward looking: now 0.0 at end of forecast 11.67
2024-03-06 15:35:32.731611 INFO pred_bat: Import rates min 0.0 max 36.58 average 16.46
2024-03-06 15:35:32.741613 INFO pred_bat: Adding rate {'start': '16:00:00', 'end': '19:00:00', 'rate_increment': -5} => 03-06 16:00:00 to 03-06 19:00:00 @ -5.0 date None increment True
2024-03-06 15:35:32.746662 INFO pred_bat: Export rates min 10.0 max 15.0 average 14.38
2024-03-06 15:35:32.749484 INFO pred_bat: Rate thresholds (for charge/discharge) are import 36.08p (0.0) export 10.0p (0.0)
2024-03-06 15:35:32.761884 INFO pred_bat: High export rate found rates in range 10.0 to 15.0
2024-03-06 15:35:32.777295 INFO pred_bat: Low Import rate found rates in range 0.0 to 35.92
2024-03-06 15:35:32.836542 INFO pred_bat: Todays energy import 20.3 kWh export 3.5 kWh cost 224.54 p import 277.04 p export -52.5 p
2024-03-06 15:35:32.844133 INFO pred_bat: PV Data for pv_forecast_today total 14.0 kWh
2024-03-06 15:35:32.849876 INFO pred_bat: PV Data for pv_forecast_tomorrow total 21.81 kWh
2024-03-06 15:35:32.855673 INFO pred_bat: PV Data for pv_forecast_d3 total 26.13 kWh
2024-03-06 15:35:32.861237 INFO pred_bat: PV Data for pv_forecast_d4 total 24.59 kWh
2024-03-06 15:35:32.882815 INFO pred_bat: Historical data totals for days [2, 3, 4, 5, 6, 7, 8] are [55.43, 42.32, 48.19, 60.72, 57.84, 44.74, 48.76] - min 42.32
2024-03-06 15:35:32.884552 INFO pred_bat: Model filter enabled - Discarding day 3 as it is the lowest of the 7 datapoints
2024-03-06 15:35:32.886316 INFO pred_bat: WARN: Historical day 2 has 5 minutes of gap in the data, filled from 55.43 kWh to make new average 55.62 kWh (percent 100%)
2024-03-06 15:35:32.892331 INFO pred_bat: WARN: Historical day 7 has 15 minutes of gap in the data, filled from 44.74 kWh to make new average 45.21 kWh (percent 99%)
2024-03-06 15:35:32.895909 INFO pred_bat: WARN: Historical day 8 has 40 minutes of gap in the data, filled from 48.76 kWh to make new average 50.15 kWh (percent 97%)
2024-03-06 15:35:32.902858 INFO pred_bat: Historical days now [2, 4, 5, 6, 7, 8] weight [1, 1, 1, 1, 1, 1]
2024-03-06 15:35:32.937264 INFO pred_bat: Today's load divergence 74.76 % in-day adjustment 74.76 % damping 1.0x, Predicted so far 24.75 kWh with 0.0 kWh car excluded and 13.52 kWh import ignored and 0 forecast extra, Actual so far 16.09 kWh with 0.0 kWh car excluded and 5.07 kWh import ignored
2024-03-06 15:35:33.010689 INFO pred_bat: Inverter 0 using Rest API http://homeassistant.local:6345
2024-03-06 15:35:52.214793 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:35:52.707868 INFO pred_bat: WARN: Inverter control auto restart trigger: REST read failure
2024-03-06 15:35:52.713751 INFO pred_bat: Reserve min: 4.0% Battery_min:4.0%
2024-03-06 15:35:52.715849 INFO pred_bat: Inverter 0 with soc_max 10.0 kWh nominal_capacity 10.0 kWh battery rate raw 2600.0 w charge rate 2.6 kW discharge rate 2.6 kW battery_rate_min 0.0 w ac limit 5.0 kW export limit 5.0 kW reserve 4.0 % current_reserve 4.0 %
2024-03-06 15:36:05.225680 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:36:05.642254 INFO pred_bat: Inverter 0 SOC: 9.52 kW 95 % Current charge rate 2600.0 w Current discharge rate 0.0 w Current power 0.0 w Current voltage 52.0
2024-03-06 15:36:05.643297 INFO pred_bat: WARN: Inverter 0 unable to read charge window time as neither REST, charge_start_time or charge_start_hour are set
2024-03-06 15:36:05.643945 INFO pred_bat: ERROR: Exception raised cannot access local variable 'charge_start_time' where it is not associated with a value
2024-03-06 15:36:15.008191 INFO pred_bat: BALANCE: Enabled balance charge False discharge False crosscharge True threshold charge 1.0 discharge 1.0
2024-03-06 15:36:27.242061 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:36:27.263700 INFO pred_bat: WARN: Inverter control auto restart trigger: REST read failure
2024-03-06 15:36:27.268718 INFO pred_bat: Reserve min: 4.0% Battery_min:4.0%
2024-03-06 15:36:38.390762 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:36:38.409415 INFO pred_bat: WARN: Inverter 0 unable to read charge window time as neither REST, charge_start_time or charge_start_hour are set
2024-03-06 15:36:38.410082 INFO pred_bat: ERROR: Exception raised cannot access local variable 'charge_start_time' where it is not associated with a value
2024-03-06 15:37:15.014191 INFO pred_bat: BALANCE: Enabled balance charge False discharge False crosscharge True threshold charge 1.0 discharge 1.0
2024-03-06 15:37:31.769164 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:37:31.793099 INFO pred_bat: WARN: Inverter control auto restart trigger: REST read failure
2024-03-06 15:37:31.796047 INFO pred_bat: Reserve min: 4.0% Battery_min:4.0%
2024-03-06 15:37:42.907310 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:37:42.933364 INFO pred_bat: WARN: Inverter 0 unable to read charge window time as neither REST, charge_start_time or charge_start_hour are set
2024-03-06 15:37:42.933911 INFO pred_bat: ERROR: Exception raised cannot access local variable 'charge_start_time' where it is not associated with a value
2024-03-06 15:38:15.022473 INFO pred_bat: BALANCE: Enabled balance charge False discharge False crosscharge True threshold charge 1.0 discharge 1.0
2024-03-06 15:38:36.200026 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:38:36.225020 INFO pred_bat: WARN: Inverter control auto restart trigger: REST read failure
2024-03-06 15:38:36.228416 INFO pred_bat: Reserve min: 4.0% Battery_min:4.0%
2024-03-06 15:38:47.543764 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:38:47.570347 INFO pred_bat: WARN: Inverter 0 unable to read charge window time as neither REST, charge_start_time or charge_start_hour are set
2024-03-06 15:38:47.570956 INFO pred_bat: ERROR: Exception raised cannot access local variable 'charge_start_time' where it is not associated with a value
2024-03-06 15:39:15.018999 INFO pred_bat: BALANCE: Enabled balance charge False discharge False crosscharge True threshold charge 1.0 discharge 1.0
2024-03-06 15:39:26.148474 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:39:26.170080 INFO pred_bat: WARN: Inverter control auto restart trigger: REST read failure
2024-03-06 15:39:26.172431 INFO pred_bat: Reserve min: 4.0% Battery_min:4.0%
2024-03-06 15:39:48.391167 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:39:48.407441 INFO pred_bat: WARN: Inverter 0 unable to read charge window time as neither REST, charge_start_time or charge_start_hour are set
2024-03-06 15:39:48.407987 INFO pred_bat: ERROR: Exception raised cannot access local variable 'charge_start_time' where it is not associated with a value
2024-03-06 15:40:00.006137 INFO pred_bat: --------------- PredBat - update at 2024-03-06 15:40:00.005371+00:00 with clock skew 0 minutes, minutes now 940
2024-03-06 15:40:00.006958 INFO pred_bat: Using cached GITHub data for https://api.github.com/repos/springfall2008/batpred/releases age 4.5 minutes
2024-03-06 15:40:00.007767 INFO pred_bat: Predbat /homeassistant/appdaemon/apps/batpred/predbat.py version v7.16.3 currently running, latest version is v7.16.3 latest beta v7.16.3
2024-03-06 15:40:00.008558 INFO pred_bat: Autoupdate: Currently up to date
2024-03-06 15:40:00.035911 INFO pred_bat: Inverter type GE forecast_hours 48 max_windows 96 num_cars 0 debug enable is False calculate_plan_every 10
2024-03-06 15:40:00.037787 INFO pred_bat: Predbat mode is set to Control charge & discharge
2024-03-06 15:40:00.321557 INFO pred_bat: Found 12961 load_today datapoints going back 9 days
2024-03-06 15:40:01.059155 INFO pred_bat: Car charging hold False threshold 6.0
2024-03-06 15:40:01.061062 INFO pred_bat: Current data so far today: load 21.16 kWh import 20.3 kWh export 3.5 kWh pv 11.7 kWh
2024-03-06 15:40:01.062588 INFO pred_bat: Fetching futurerate data from https://www.nordpoolgroup.com/api/marketdata/page/325?currency=GBP
2024-03-06 15:40:01.063599 INFO pred_bat: Return cached futurerate data for https://www.nordpoolgroup.com/api/marketdata/page/325?currency=GBP age 4.5 minutes
2024-03-06 15:40:01.065233 INFO pred_bat: Future rates - peak rate is 960 - 1140 minutes premium import 14 export 6
2024-03-06 15:40:01.094005 INFO pred_bat: Loaded 192 datapoints of futurerate analysis
2024-03-06 15:40:01.117160 INFO pred_bat: Predicted future rates: ['03-06 15:00:00 => 16.06 / 6.61', '03-06 16:00:00 => 32.24 / 13.21', '03-06 17:00:00 => 36.38 / 14.92', '03-06 18:00:00 => 36.74 / 15.06', '03-06 19:00:00 => 18.51 / 7.61', '03-06 20:00:00 => 16.3 / 6.7', '03-06 21:00:00 => 15.83 / 6.51', '03-06 22:00:00 => 14.05 / 5.78', '03-06 23:00:00 => 14.44 / 5.94', '03-07 00:00:00 => 14.54 / 5.98', '03-07 01:00:00 => 14.43 / 5.93', '03-07 02:00:00 => 14.48 / 5.95', '03-07 03:00:00 => 14.32 / 5.89', '03-07 04:00:00 => 14.28 / 5.87', '03-07 05:00:00 => 16.87 / 6.94', '03-07 06:00:00 => 20.15 / 8.29', '03-07 07:00:00 => 21.04 / 8.65', '03-07 08:00:00 => 18.5 / 7.61', '03-07 09:00:00 => 16.16 / 6.64', '03-07 10:00:00 => 13.64 / 5.61', '03-07 11:00:00 => 13.65 / 5.61', '03-07 12:00:00 => 13.4 / 5.51', '03-07 13:00:00 => 13.41 / 5.51', '03-07 14:00:00 => 14.04 / 5.77', '03-07 15:00:00 => 14.69 / 6.04', '03-07 16:00:00 => 32.24 / 13.21', '03-07 17:00:00 => 34.82 / 14.27', '03-07 18:00:00 => 34.61 / 14.19', '03-07 19:00:00 => 17.23 / 7.09', '03-07 20:00:00 => 15.35 / 6.31']
2024-03-06 15:40:01.149161 INFO pred_bat: Standing charge is set to 0.0 p
2024-03-06 15:40:01.163714 INFO pred_bat: Adding rate {'date': '2024-02-29', 'start': '12:00:00', 'end': '15:30:00', 'rate': 0, 'load_scaling': 7.0} => 03-06 12:00:00 to 03-06 15:30:00 @ 0.0 date 2024-02-29 00:00:00 increment False
2024-03-06 15:40:01.167715 INFO pred_bat: Adding rate {'date': '2024-03-07', 'start': '13:00:00', 'end': '15:30:00', 'rate': 0, 'load_scaling': 7.0} => 03-06 13:00:00 to 03-06 15:30:00 @ 0.0 date 2024-03-07 00:00:00 increment False
2024-03-06 15:40:01.615574 INFO pred_bat: Rate min forward looking: now 0.0 at end of forecast 11.67
2024-03-06 15:40:01.617705 INFO pred_bat: Import rates min 0.0 max 36.58 average 16.46
2024-03-06 15:40:01.625173 INFO pred_bat: Adding rate {'start': '16:00:00', 'end': '19:00:00', 'rate_increment': -5} => 03-06 16:00:00 to 03-06 19:00:00 @ -5.0 date None increment True
2024-03-06 15:40:01.627437 INFO pred_bat: Export rates min 10.0 max 15.0 average 14.38
2024-03-06 15:40:01.628956 INFO pred_bat: Rate thresholds (for charge/discharge) are import 36.08p (0.0) export 10.0p (0.0)
2024-03-06 15:40:01.639830 INFO pred_bat: High export rate found rates in range 10.0 to 15.0
2024-03-06 15:40:01.650324 INFO pred_bat: Low Import rate found rates in range 0.0 to 35.92
2024-03-06 15:40:01.713984 INFO pred_bat: Todays energy import 20.3 kWh export 3.5 kWh cost 224.49 p import 276.99 p export -52.5 p
2024-03-06 15:40:01.718995 INFO pred_bat: PV Data for pv_forecast_today total 14.0 kWh
2024-03-06 15:40:01.724006 INFO pred_bat: PV Data for pv_forecast_tomorrow total 21.81 kWh
2024-03-06 15:40:01.733987 INFO pred_bat: PV Data for pv_forecast_d3 total 26.13 kWh
2024-03-06 15:40:01.740621 INFO pred_bat: PV Data for pv_forecast_d4 total 24.59 kWh
2024-03-06 15:40:01.763775 INFO pred_bat: Historical data totals for days [2, 3, 4, 5, 6, 7, 8] are [55.34, 42.41, 48.19, 60.54, 58.12, 44.74, 48.76] - min 42.41
2024-03-06 15:40:01.765737 INFO pred_bat: Model filter enabled - Discarding day 3 as it is the lowest of the 7 datapoints
2024-03-06 15:40:01.768604 INFO pred_bat: WARN: Historical day 7 has 10 minutes of gap in the data, filled from 44.74 kWh to make new average 45.05 kWh (percent 99%)
2024-03-06 15:40:01.772041 INFO pred_bat: WARN: Historical day 8 has 40 minutes of gap in the data, filled from 48.76 kWh to make new average 50.15 kWh (percent 97%)
2024-03-06 15:40:01.782174 INFO pred_bat: Historical days now [2, 4, 5, 6, 7, 8] weight [1, 1, 1, 1, 1, 1]
2024-03-06 15:40:01.808610 INFO pred_bat: Today's load divergence 74.51 % in-day adjustment 74.51 % damping 1.0x, Predicted so far 24.81 kWh with 0.0 kWh car excluded and 13.72 kWh import ignored and 0 forecast extra, Actual so far 16.13 kWh with 0.0 kWh car excluded and 5.03 kWh import ignored
2024-03-06 15:40:01.878524 INFO pred_bat: Inverter 0 using Rest API http://homeassistant.local:6345
2024-03-06 15:40:19.739815 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:40:19.762090 INFO pred_bat: WARN: Inverter control auto restart trigger: REST read failure
2024-03-06 15:40:19.765347 INFO pred_bat: Reserve min: 4.0% Battery_min:4.0%
2024-03-06 15:40:19.766669 INFO pred_bat: Inverter 0 with soc_max 10.0 kWh nominal_capacity 10.0 kWh battery rate raw 2600.0 w charge rate 2.6 kW discharge rate 2.6 kW battery_rate_min 0.0 w ac limit 5.0 kW export limit 5.0 kW reserve 4.0 % current_reserve 4.0 %
2024-03-06 15:40:30.883686 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:40:30.908637 INFO pred_bat: Inverter 0 SOC: 9.52 kW 95 % Current charge rate 2600.0 w Current discharge rate 0.0 w Current power 0.0 w Current voltage 52.0
2024-03-06 15:40:30.910273 INFO pred_bat: WARN: Inverter 0 unable to read charge window time as neither REST, charge_start_time or charge_start_hour are set
2024-03-06 15:40:30.911488 INFO pred_bat: ERROR: Exception raised cannot access local variable 'charge_start_time' where it is not associated with a value
2024-03-06 15:40:30.951008 INFO pred_bat: BALANCE: Enabled balance charge False discharge False crosscharge True threshold charge 1.0 discharge 1.0
2024-03-06 15:40:52.942114 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:40:52.960648 INFO pred_bat: WARN: Inverter control auto restart trigger: REST read failure
2024-03-06 15:40:52.963618 INFO pred_bat: Reserve min: 4.0% Battery_min:4.0%
2024-03-06 15:41:04.012390 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:41:04.035113 INFO pred_bat: WARN: Inverter 0 unable to read charge window time as neither REST, charge_start_time or charge_start_hour are set
2024-03-06 15:41:04.035780 INFO pred_bat: ERROR: Exception raised cannot access local variable 'charge_start_time' where it is not associated with a value
2024-03-06 15:41:15.006739 INFO pred_bat: BALANCE: Enabled balance charge False discharge False crosscharge True threshold charge 1.0 discharge 1.0
2024-03-06 15:41:26.170187 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:41:26.193257 INFO pred_bat: WARN: Inverter control auto restart trigger: REST read failure
2024-03-06 15:41:26.196773 INFO pred_bat: Reserve min: 4.0% Battery_min:4.0%
2024-03-06 15:41:37.407173 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:41:37.422026 INFO pred_bat: WARN: Inverter 0 unable to read charge window time as neither REST, charge_start_time or charge_start_hour are set
2024-03-06 15:41:37.422631 INFO pred_bat: ERROR: Exception raised cannot access local variable 'charge_start_time' where it is not associated with a value
2024-03-06 15:42:15.058780 INFO pred_bat: BALANCE: Enabled balance charge False discharge False crosscharge True threshold charge 1.0 discharge 1.0
2024-03-06 15:42:30.133758 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:42:30.160000 INFO pred_bat: WARN: Inverter control auto restart trigger: REST read failure
2024-03-06 15:42:30.163238 INFO pred_bat: Reserve min: 4.0% Battery_min:4.0%
2024-03-06 15:42:41.245431 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:42:41.270578 INFO pred_bat: WARN: Inverter 0 unable to read charge window time as neither REST, charge_start_time or charge_start_hour are set
2024-03-06 15:42:41.271205 INFO pred_bat: ERROR: Exception raised cannot access local variable 'charge_start_time' where it is not associated with a value
2024-03-06 15:43:15.010774 INFO pred_bat: BALANCE: Enabled balance charge False discharge False crosscharge True threshold charge 1.0 discharge 1.0
2024-03-06 15:43:34.604384 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:43:34.624921 INFO pred_bat: WARN: Inverter control auto restart trigger: REST read failure
2024-03-06 15:43:34.628360 INFO pred_bat: Reserve min: 4.0% Battery_min:4.0%
2024-03-06 15:43:45.741978 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:43:45.760516 INFO pred_bat: WARN: Inverter 0 unable to read charge window time as neither REST, charge_start_time or charge_start_hour are set
2024-03-06 15:43:45.761117 INFO pred_bat: ERROR: Exception raised cannot access local variable 'charge_start_time' where it is not associated with a value
2024-03-06 15:44:15.118070 INFO pred_bat: BALANCE: Enabled balance charge False discharge False crosscharge True threshold charge 1.0 discharge 1.0
2024-03-06 15:44:26.166303 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:44:26.189008 INFO pred_bat: WARN: Inverter control auto restart trigger: REST read failure
2024-03-06 15:44:26.191781 INFO pred_bat: Reserve min: 4.0% Battery_min:4.0%
2024-03-06 15:44:48.186829 INFO pred_bat: WARN: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2024-03-06 15:44:48.203912 INFO pred_bat: WARN: Inverter 0 unable to read charge window time as neither REST, charge_start_time or charge_start_hour are set
2024-03-06 15:44:48.204740 INFO pred_bat: ERROR: Exception raised cannot access local variable 'charge_start_time' where it is not associated with a value
springfall2008 commented 6 months ago

I've pushed a fix to main to:

  1. Catch the crash with charge_start_time
  2. Created a new 'error' attribute in predbat.status which is True when the system is in error. I think if you base your script on that rather than the text in status then you might have more luck?
gcoan commented 6 months ago

thanks, I'll give it a test and see how it behaves. Is the error attribute set only on this error or is it more general set when there's a predbat failure, and I assume the attribute is cleared if Predbat gets to the end of a normal run?

springfall2008 commented 6 months ago

It's just a binary true/false for any type of error so it should be false for normal runs

gcoan commented 5 months ago

thanks, I have updated my automation to use this error attribute and added details of using it to the documentation