springfall2008 / batpred

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

Getting ERROR: Exception raised type NoneType doesn't define __round__ method when Carbon Enable switched on #1014

Closed tractor137 closed 6 months ago

tractor137 commented 6 months ago

Describe the bug Added the carbon entity which is working, added in the line to apps.yaml but selecting switch to on causes the error.

Expected behavior HTML plan would show carbon usage, new apex card would populate.

Predbat version

v7.17.3

Environment details

Givenergy hybrid inverter and battery Standard install

Screenshots

Log file 2024-04-26 20:10:00.020703 INFO pred_bat: --------------- PredBat - update at 2024-04-26 20:10:00+01:00 with clock skew 0 minutes, minutes now 1210 2024-04-26 20:10:00.027437 INFO pred_bat: Using cached GITHub data for https://api.github.com/repos/springfall2008/batpred/releases age 7.2 minutes 2024-04-26 20:10:00.030126 INFO pred_bat: Predbat /homeassistant/appdaemon/apps/batpred/predbat.py version v7.17.3 currently running, latest version is v7.17.3 latest beta v7.17.3 2024-04-26 20:10:00.033060 INFO pred_bat: Autoupdate: Currently up to date 2024-04-26 20:10:00.077860 INFO pred_bat: Configuration: forecast_hours 48 max_windows 96 num_cars 1 debug enable is False calculate_plan_every 5 calculate_fast_plan False 2024-04-26 20:10:00.082866 INFO pred_bat: Cars 1 charging from battery False planned [False], charging_now [False] smart [False], max_price [0.0], plan_time ['07:00:00'], battery size [100.0], limit [100.0], rate [2.3] 2024-04-26 20:10:00.086961 INFO pred_bat: Predbat mode is set to Control charge & discharge 2024-04-26 20:10:01.909861 INFO pred_bat: Found 11521 load_today datapoints going back 8 days 2024-04-26 20:10:04.906350 INFO pred_bat: Current data so far today: load 16.94 kWh import 16.8 kWh export 13.3 kWh pv 17.0 kWh 2024-04-26 20:10:04.909485 INFO pred_bat: Fetching futurerate data from None 2024-04-26 20:10:04.942654 INFO pred_bat: Fetching carbon intensity data from sensor.carbon_intensity_uk 2024-04-26 20:10:04.948816 INFO pred_bat: Warn: No carbon intensity history in sensor predbat.carbon_now 2024-04-26 20:10:04.969916 INFO pred_bat: Car 0 using Octopus Intelligent, charging limit 80.0, ready time 08:00:00 - battery size 100.0 2024-04-26 20:10:04.974237 INFO pred_bat: Current Car SOC kWh: [0.0] 2024-04-26 20:10:05.017044 INFO pred_bat: Standing charge is set to 65.121 p 2024-04-26 20:10:05.039875 INFO pred_bat: Octopus Intelligent slot at 04-26 01:00:00-04-26 01:30:00 assumed price 7.5 2024-04-26 20:10:05.044402 INFO pred_bat: Octopus Intelligent slot at 04-26 02:00:00-04-26 02:30:00 assumed price 7.5 2024-04-26 20:10:05.048851 INFO pred_bat: Octopus Intelligent slot at 04-26 03:00:00-04-26 03:30:00 assumed price 7.5 2024-04-26 20:10:05.053174 INFO pred_bat: Octopus Intelligent slot at 04-26 02:30:00-04-26 03:00:00 assumed price 7.5 2024-04-26 20:10:05.057428 INFO pred_bat: Octopus Intelligent slot at 04-26 03:30:00-04-26 04:00:00 assumed price 7.5 2024-04-26 20:10:05.061753 INFO pred_bat: Octopus Intelligent slot at 04-27 04:30:00-04-27 05:30:00 assumed price 7.5 2024-04-26 20:10:05.066269 INFO pred_bat: Octopus Intelligent slot at 04-27 05:30:00-04-27 06:00:00 assumed price 7.5 2024-04-26 20:10:05.071337 INFO pred_bat: Octopus Intelligent slot at 04-27 06:00:00-04-27 06:30:00 assumed price 7.5 2024-04-26 20:10:05.075619 INFO pred_bat: Octopus Intelligent slot at 04-27 07:00:00-04-27 07:30:00 assumed price 7.5 2024-04-26 20:10:05.874199 INFO pred_bat: Rate min forward looking: now 7.5 at end of forecast 7.5 2024-04-26 20:10:05.878618 INFO pred_bat: Import rates min 7.5 max 26.78 average 21.36 2024-04-26 20:10:05.899256 INFO pred_bat: Export rates min 15.0 max 15.0 average 15.0 2024-04-26 20:10:05.903470 INFO pred_bat: Rate thresholds (for charge/discharge) are import 26.28p (0.0) export 15.0p (0.0) 2024-04-26 20:10:05.915426 INFO pred_bat: High export rate found rates in range 15.0 to 15.0 2024-04-26 20:10:05.922723 INFO pred_bat: Low Import rate found rates in range 7.5 to 7.5 2024-04-26 20:10:05.927105 INFO pred_bat: Car 0 is using Octopus intelligent schedule 2024-04-26 20:10:05.931919 INFO pred_bat: Car 0 charging plan is: [{'start': 1710, 'end': 1770, 'kwh': 2.2, 'average': 7.5, 'cost': 16.5}, {'start': 1770, 'end': 1800, 'kwh': 0.76, 'average': 7.5, 'cost': 5.7}, {'start': 1800, 'end': 1830, 'kwh': 1.1, 'average': 7.5, 'cost': 8.25}, {'start': 1860, 'end': 1890, 'kwh': 1.1, 'average': 7.5, 'cost': 8.25}] 2024-04-26 20:10:06.075646 INFO pred_bat: Todays energy import 16.8 kWh export 13.3 kWh cost 1.26 p import 200.76 p export -199.5 p carbon 0.0 kg 2024-04-26 20:10:06.092361 INFO pred_bat: PV Data for pv_forecast_today total 20.71 kWh 2024-04-26 20:10:06.103833 INFO pred_bat: PV Data for pv_forecast_tomorrow total 15.71 kWh 2024-04-26 20:10:06.114655 INFO pred_bat: PV Data for pv_forecast_d3 total 17.23 kWh 2024-04-26 20:10:06.130757 INFO pred_bat: PV Data for pv_forecast_d4 total 31.2 kWh 2024-04-26 20:10:06.251172 INFO pred_bat: Historical data totals for days [1, 2, 3, 4, 5, 6, 7] are [11.63, 17.23, 15.76, 11.6, 12.61, 14.4, 20.03] - min 11.6 2024-04-26 20:10:06.282745 INFO pred_bat: Model filter enabled - Discarding day 4 as it is the lowest of the 7 datapoints 2024-04-26 20:10:06.304634 INFO pred_bat: WARN: Historical day 7 has 10 minutes of gap in the data, filled from 20.03 kWh to make new average 20.17 kWh (percent 99%) 2024-04-26 20:10:06.315694 INFO pred_bat: Historical days now [1, 2, 3, 5, 6, 7] weight [1, 1, 1, 1, 1, 1] 2024-04-26 20:10:06.427144 INFO pred_bat: Today's load divergence 131.53 % in-day adjustment 129.96 % damping 0.95x, Predicted so far 5.64 kWh with 12.6 kWh car excluded and 3.98 kWh import ignored and 0 forecast extra, Actual so far 8.8 kWh with 6.84 kWh car excluded and 1.3 kWh import ignored 2024-04-26 20:10:06.536475 INFO pred_bat: Inverter 0: Type GE GivEnergy 2024-04-26 20:10:06.539855 INFO pred_bat: Inverter 0 using Rest API http://homeassistant.local:6345 2024-04-26 20:10:07.799056 INFO pred_bat: Invertor time 2024-04-26 20:09:51+01:00 AppDaemon time 2024-04-26 20:10:07.794752+01:00 difference -0.28 minutes 2024-04-26 20:10:07.803458 INFO pred_bat: Reserve min: 4.0% Battery_min:4.0% 2024-04-26 20:10:07.808539 INFO pred_bat: Inverter 0 with soc_max 9.52 kWh nominal_capacity 9.52 kWh battery rate raw 2600 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-04-26 20:10:09.070447 INFO pred_bat: Inverter 0 SOC: 7.81 kW 82 % Current charge rate 2600.0 w Current discharge rate 2600.0 w Current power 2150.0 w Current voltage 52.0 2024-04-26 20:10:09.074683 INFO pred_bat: Inverter 0 scheduled charge enable is False 2024-04-26 20:10:09.079266 INFO pred_bat: Inverter 0 charge windows currently [] 2024-04-26 20:10:09.083704 INFO pred_bat: Inverter 0 Charge settings: timed charged is disabled, power 2.6 kW 2024-04-26 20:10:09.093427 INFO pred_bat: Inverter 0 Wrote scheduled_discharge_enable to False successfully and got off 2024-04-26 20:10:09.098041 INFO pred_bat: Inverter 0 sensor.predbat_GE_0_scheduled_discharge_enable set to False 2024-04-26 20:10:09.102731 INFO pred_bat: Inverter 0 scheduled discharge enable is False 2024-04-26 20:10:09.107133 INFO pred_bat: Inverter 0 discharge windows currently [{'start': 0, 'end': 0, 'average': 0}, {'start': 1440, 'end': 1440, 'average': 0}] 2024-04-26 20:10:09.110788 INFO pred_bat: Found 1 inverters totals: min reserve 0.38 current reserve 0.38 soc_max 9.52 soc 7.81 charge rate 2.6 kW discharge rate 2.6 kW battery_rate_min 0.0 w ac limit 5.0 export limit 5.0 kW loss charge 3 % loss discharge 3 % inverter loss 4 % 2024-04-26 20:10:09.206934 INFO pred_bat: Base charge window [ ] 2024-04-26 20:10:09.210791 INFO pred_bat: Base discharge window [ 26-04 00:00:00 - 26-04 00:00:00 @ 0p 100.0%, 27-04 00:00:00 - 27-04 00:00:00 @ 0p 100.0% ] 2024-04-26 20:10:09.213473 INFO pred_bat: Plan was last updated on 2024-04-26 20:00:00+01:00 and is now 10.0 minutes old 2024-04-26 20:10:09.217240 INFO pred_bat: Best charge window [ 26-04 23:30:00 - 27-04 02:20:00 @ 7.5p 84%, 27-04 02:30:00 - 27-04 03:00:00 @ 7.5p 92%, 27-04 04:30:00 - 27-04 06:30:00 @ 7.5p 100%, 27-04 07:00:00 - 27-04 07:30:00 @ 7.5p 98%, 27-04 23:30:00 - 28-04 02:50:00 @ 7.5p 97%, 28-04 03:00:00 - 28-04 03:30:00 @ 7.5p 100%, 28-04 04:00:00 - 28-04 04:30:00 @ 7.5p 100%, 28-04 05:00:00 - 28-04 05:30:00 @ 7.5p 98% ] 2024-04-26 20:10:09.220759 INFO pred_bat: Best discharge window [ 26-04 21:05:00 - 26-04 23:30:00 @ 15.0p 4%, 27-04 02:20:00 - 27-04 02:30:00 @ 15.0p 70%, 27-04 03:00:00 - 27-04 04:30:00 @ 15.0p 39%, 27-04 06:30:00 - 27-04 07:00:00 @ 15.0p 76%, 27-04 11:30:00 - 27-04 12:30:00 @ 15.0p 99%, 27-04 15:30:00 - 27-04 16:00:00 @ 15.0p 99%, 27-04 18:00:00 - 27-04 19:00:00 @ 15.0p 98%, 27-04 20:35:00 - 27-04 23:30:00 @ 15.0p 4%, 28-04 02:50:00 - 28-04 03:00:00 @ 15.0p 83%, 28-04 03:30:00 - 28-04 04:00:00 @ 15.0p 78%, 28-04 04:30:00 - 28-04 05:00:00 @ 15.0p 76%, 28-04 18:00:00 - 28-04 19:00:00 @ 15.0p 98% ] 2024-04-26 20:10:09.225857 INFO pred_bat: PV Forecast 32.9 kWh and 10% Forecast 8.7 kWh pv cloud factor 0.7 2024-04-26 20:10:09.246671 INFO pred_bat: Load divergence over 4.0 hours mean 508.63 W, min 0.0 W, max 1842.6 W, std dev 408.53 W, divergence 80.32% 2024-04-26 20:10:09.579757 INFO pred_bat: predict base end_record 04-28 20:10:00 final soc 8.83 kWh metric 125.93 p metric_keep 0 min_soc 1.04 @ 04-27 08:10:00 kWh load 49.17 pv 49.91 2024-04-26 20:10:09.585350 INFO pred_bat: [ 20:10, 21:10, 22:10, 23:10, 00:10, 01:10, 02:10, 03:10, 04:10, 05:10, 06:10, 07:10, 08:10, 09:10, 10:10, 11:10, 12:10, 13:10, 14:10, 15:10, 16:10, 17:10, 18:10, 19:10, 20:10, 21:10, 22:10, 23:10, 00:10, 01:10, 02:10, 03:10, 04:10, 05:10, 06:10, 07:10, 08:10, 09:10, 10:10, 11:10, 12:10, 13:10, 14:10, 15:10, 16:10, 17:10, 18:10, 19:10] 2024-04-26 20:10:09.590416 INFO pred_bat: SOC: [ 7.81, 7.09, 6.64, 6.28, 5.05, 3.82, 2.74, 2.0, 1.38, 1.26, 1.26, 1.2, 1.06, 1.43, 2.1, 2.96, 4.15, 5.38, 6.49, 7.37, 8.36, 8.99, 8.66, 8.64, 8.1, 7.37, 6.81, 6.48, 5.91, 5.33, 5.0, 4.28, 3.63, 3.31, 3.17, 3.13, 3.03, 3.47, 4.21, 5.28, 6.55, 7.97, 9.11, 9.52, 9.52, 9.52, 9.17, 9.3] 2024-04-26 20:10:09.595461 INFO pred_bat: STATE: [ g~be-, g~be-, g~be-, g~be-, g~be-, g~be-, g~be-, g~be-, g~be-, g<be-, g<be-, g<be-, g~be-, g~be+, g~be-, g~be+, g~be+, g~be+, g~be+, g~be+, g~be+, g~be+, g~be-, g~be-, g~be-, g~be-, g~be-, g~be-, g~be-, g~be-, g~be-, g~be-, g~be-, g~be-, g~be-, g~be-, g~be-, g~be+, g~be-, g~be+, g~be+, g~be+, g~be+, g~be-, g>be+, g>be+, g~be-, g~be-] 2024-04-26 20:10:09.601296 INFO pred_bat: LOAD: [ 16.94, 17.61, 18.03, 18.36, 19.61, 20.75, 21.76, 22.45, 23.03, 24.84, 26.87, 28.22, 29.47, 29.77, 30.12, 30.65, 31.14, 31.69, 32.43, 33.36, 34.03, 34.71, 35.87, 36.33, 36.95, 37.63, 38.16, 38.46, 39.0, 39.54, 39.84, 40.51, 41.12, 41.41, 41.55, 41.73, 42.2, 42.47, 42.84, 43.23, 43.69, 44.16, 44.73, 45.42, 46.01, 46.69, 47.98, 48.53] 2024-04-26 20:10:09.606572 INFO pred_bat: PV: [ 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.01, 17.16, 17.56, 18.26, 19.32, 20.76, 22.49, 24.35, 26.26, 28.14, 29.86, 31.22, 32.12, 32.58, 32.7, 32.7, 32.7, 32.7, 32.7, 32.7, 32.7, 32.7, 32.7, 32.7, 32.71, 32.86, 33.26, 34.0, 35.14, 36.65, 38.44, 40.44, 42.49, 44.54, 46.35, 47.86, 48.99, 49.69] 2024-04-26 20:10:09.611682 INFO pred_bat: IMPORT: [ 16.8, 16.8, 16.8, 16.8, 16.9, 16.9, 16.9, 16.9, 16.9, 18.59, 20.62, 21.77, 22.51, 22.51, 22.51, 22.51, 22.51, 22.51, 22.51, 22.51, 22.51, 22.51, 22.51, 22.51, 22.51, 22.51, 22.51, 22.51, 22.51, 22.51, 22.51, 22.51, 22.51, 22.51, 22.51, 22.51, 22.51, 22.51, 22.51, 22.51, 22.51, 22.51, 22.51, 22.51, 22.51, 22.51, 22.51, 22.51] 2024-04-26 20:10:09.616642 INFO pred_bat: EXPORT: [ 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.31, 13.31, 13.31, 13.31, 13.31, 13.31, 13.31, 13.31, 13.31, 13.31, 13.31, 13.31, 13.31, 13.31, 13.31, 13.31, 13.31, 13.31, 13.31, 13.31, 13.31, 13.31, 13.31, 13.31, 13.36, 13.61, 14.49, 15.64, 16.4, 16.52, 16.52] 2024-04-26 20:10:09.621569 INFO pred_bat: CARBON: [ 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, 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] 2024-04-26 20:10:09.626621 INFO pred_bat: CAR0: [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.35, 3.06, 4.07, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75] 2024-04-26 20:10:09.631658 INFO pred_bat: METRIC: [ 1.26, 1.26, 1.26, 1.26, 67.13, 67.13, 67.13, 67.13, 67.13, 79.84, 95.01, 103.66, 109.18, 109.18, 109.18, 109.18, 109.18, 109.08, 109.08, 109.08, 109.08, 109.08, 109.08, 109.08, 109.08, 109.08, 109.08, 109.08, 174.2, 174.2, 174.2, 174.2, 174.2, 174.2, 174.2, 174.2, 174.2, 174.2, 174.2, 174.2, 174.2, 173.46, 169.62, 156.51, 139.22, 127.74, 125.93, 125.93] 2024-04-26 20:10:10.230492 INFO pred_bat: Battery has 48.0 hours left - now at 7.81 2024-04-26 20:10:10.305881 INFO pred_bat: ERROR: Exception raised type NoneType doesn't define round method 2024-04-26 20:15:00.022082 INFO pred_bat: --------------- PredBat - update at 2024-04-26 20:15:00+01:00 with clock skew 0 minutes, minutes now 1215 2024-04-26 20:15:00.025056 INFO pred_bat: Using cached GITHub data for https://api.github.com/repos/springfall2008/batpred/releases age 12.2 minutes 2024-04-26 20:15:00.027584 INFO pred_bat: Predbat /homeassistant/appdaemon/apps/batpred/predbat.py version v7.17.3 currently running, latest version is v7.17.3 latest beta v7.17.3 2024-04-26 20:15:00.030178 INFO pred_bat: Autoupdate: Currently up to date 2024-04-26 20:15:00.071453 INFO pred_bat: Configuration: forecast_hours 48 max_windows 96 num_cars 1 debug enable is False calculate_plan_every 5 calculate_fast_plan False 2024-04-26 20:15:00.075974 INFO pred_bat: Cars 1 charging from battery False planned [False], charging_now [False] smart [False], max_price [0.0], plan_time ['07:00:00'], battery size [100.0], limit [100.0], rate [2.3] 2024-04-26 20:15:00.079933 INFO pred_bat: Predbat mode is set to Control charge & discharge 2024-04-26 20:15:01.941315 INFO pred_bat: Found 11521 load_today datapoints going back 8 days 2024-04-26 20:15:04.751631 INFO pred_bat: Current data so far today: load 16.94 kWh import 16.8 kWh export 13.3 kWh pv 17.0 kWh 2024-04-26 20:15:04.754230 INFO pred_bat: Fetching futurerate data from None 2024-04-26 20:15:04.795729 INFO pred_bat: Fetching carbon intensity data from sensor.carbon_intensity_uk 2024-04-26 20:15:04.801066 INFO pred_bat: Warn: No carbon intensity history in sensor predbat.carbon_now 2024-04-26 20:15:04.816359 INFO pred_bat: Car 0 using Octopus Intelligent, charging limit 80.0, ready time 08:00:00 - battery size 100.0 2024-04-26 20:15:04.820446 INFO pred_bat: Current Car SOC kWh: [0.0] 2024-04-26 20:15:04.870324 INFO pred_bat: Standing charge is set to 65.121 p 2024-04-26 20:15:04.892608 INFO pred_bat: Octopus Intelligent slot at 04-26 01:00:00-04-26 01:30:00 assumed price 7.5 2024-04-26 20:15:04.896937 INFO pred_bat: Octopus Intelligent slot at 04-26 02:00:00-04-26 02:30:00 assumed price 7.5 2024-04-26 20:15:04.901076 INFO pred_bat: Octopus Intelligent slot at 04-26 03:00:00-04-26 03:30:00 assumed price 7.5 2024-04-26 20:15:04.905436 INFO pred_bat: Octopus Intelligent slot at 04-26 02:30:00-04-26 03:00:00 assumed price 7.5 2024-04-26 20:15:04.909752 INFO pred_bat: Octopus Intelligent slot at 04-26 03:30:00-04-26 04:00:00 assumed price 7.5 2024-04-26 20:15:04.913889 INFO pred_bat: Octopus Intelligent slot at 04-27 04:30:00-04-27 05:30:00 assumed price 7.5 2024-04-26 20:15:04.918013 INFO pred_bat: Octopus Intelligent slot at 04-27 05:30:00-04-27 06:00:00 assumed price 7.5 2024-04-26 20:15:04.922741 INFO pred_bat: Octopus Intelligent slot at 04-27 06:00:00-04-27 06:30:00 assumed price 7.5 2024-04-26 20:15:04.927106 INFO pred_bat: Octopus Intelligent slot at 04-27 07:00:00-04-27 07:30:00 assumed price 7.5 2024-04-26 20:15:05.767934 INFO pred_bat: Rate min forward looking: now 7.5 at end of forecast 7.5 2024-04-26 20:15:05.773157 INFO pred_bat: Import rates min 7.5 max 26.78 average 21.36 2024-04-26 20:15:05.795642 INFO pred_bat: Export rates min 15.0 max 15.0 average 15.0 2024-04-26 20:15:05.799873 INFO pred_bat: Rate thresholds (for charge/discharge) are import 26.28p (0.0) export 15.0p (0.0) 2024-04-26 20:15:05.812102 INFO pred_bat: High export rate found rates in range 15.0 to 15.0 2024-04-26 20:15:05.819662 INFO pred_bat: Low Import rate found rates in range 7.5 to 7.5 2024-04-26 20:15:05.823629 INFO pred_bat: Car 0 is using Octopus intelligent schedule 2024-04-26 20:15:05.827791 INFO pred_bat: Car 0 charging plan is: [{'start': 1710, 'end': 1770, 'kwh': 2.2, 'average': 7.5, 'cost': 16.5}, {'start': 1770, 'end': 1800, 'kwh': 0.76, 'average': 7.5, 'cost': 5.7}, {'start': 1800, 'end': 1830, 'kwh': 1.1, 'average': 7.5, 'cost': 8.25}, {'start': 1860, 'end': 1890, 'kwh': 1.1, 'average': 7.5, 'cost': 8.25}] 2024-04-26 20:15:06.002122 INFO pred_bat: Todays energy import 16.8 kWh export 13.3 kWh cost 1.26 p import 200.76 p export -199.5 p carbon 0.0 kg 2024-04-26 20:15:06.014775 INFO pred_bat: PV Data for pv_forecast_today total 20.71 kWh 2024-04-26 20:15:06.025519 INFO pred_bat: PV Data for pv_forecast_tomorrow total 15.71 kWh 2024-04-26 20:15:06.036473 INFO pred_bat: PV Data for pv_forecast_d3 total 17.23 kWh 2024-04-26 20:15:06.045855 INFO pred_bat: PV Data for pv_forecast_d4 total 31.2 kWh 2024-04-26 20:15:06.133561 INFO pred_bat: Historical data totals for days [1, 2, 3, 4, 5, 6, 7] are [11.46, 17.41, 15.73, 11.57, 12.64, 14.42, 20.05] - min 11.46 2024-04-26 20:15:06.137982 INFO pred_bat: Model filter enabled - Discarding day 1 as it is the lowest of the 7 datapoints 2024-04-26 20:15:06.143140 INFO pred_bat: WARN: Historical day 4 has 5 minutes of gap in the data, filled from 11.57 kWh to make new average 11.61 kWh (percent 100%) 2024-04-26 20:15:06.151415 INFO pred_bat: WARN: Historical day 7 has 10 minutes of gap in the data, filled from 20.05 kWh to make new average 20.19 kWh (percent 99%) 2024-04-26 20:15:06.161468 INFO pred_bat: Historical days now [2, 3, 4, 5, 6, 7] weight [1, 1, 1, 1, 1, 1] 2024-04-26 20:15:06.321244 INFO pred_bat: Today's load divergence 129.62 % in-day adjustment 128.14 % damping 0.95x, Predicted so far 5.8 kWh with 12.54 kWh car excluded and 3.3 kWh import ignored and 0 forecast extra, Actual so far 8.8 kWh with 6.84 kWh car excluded and 1.3 kWh import ignored 2024-04-26 20:15:06.441988 INFO pred_bat: Inverter 0: Type GE GivEnergy 2024-04-26 20:15:06.445050 INFO pred_bat: Inverter 0 using Rest API http://homeassistant.local:6345 2024-04-26 20:15:07.707720 INFO pred_bat: Invertor time 2024-04-26 20:14:47+01:00 AppDaemon time 2024-04-26 20:15:07.703625+01:00 difference -0.35 minutes 2024-04-26 20:15:07.712449 INFO pred_bat: Reserve min: 4.0% Battery_min:4.0% 2024-04-26 20:15:07.717702 INFO pred_bat: Inverter 0 with soc_max 9.52 kWh nominal_capacity 9.52 kWh battery rate raw 2600 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-04-26 20:15:08.978148 INFO pred_bat: Inverter 0 SOC: 7.71 kW 81 % Current charge rate 2600.0 w Current discharge rate 2600.0 w Current power 326.0 w Current voltage 52.0 2024-04-26 20:15:08.982178 INFO pred_bat: Inverter 0 scheduled charge enable is False 2024-04-26 20:15:08.986157 INFO pred_bat: Inverter 0 charge windows currently [] 2024-04-26 20:15:08.990184 INFO pred_bat: Inverter 0 Charge settings: timed charged is disabled, power 2.6 kW 2024-04-26 20:15:09.005592 INFO pred_bat: Inverter 0 Wrote scheduled_discharge_enable to False successfully and got off 2024-04-26 20:15:09.010375 INFO pred_bat: Inverter 0 sensor.predbat_GE_0_scheduled_discharge_enable set to False 2024-04-26 20:15:09.015072 INFO pred_bat: Inverter 0 scheduled discharge enable is False 2024-04-26 20:15:09.019479 INFO pred_bat: Inverter 0 discharge windows currently [{'start': 0, 'end': 0, 'average': 0}, {'start': 1440, 'end': 1440, 'average': 0}] 2024-04-26 20:15:09.023054 INFO pred_bat: Found 1 inverters totals: min reserve 0.38 current reserve 0.38 soc_max 9.52 soc 7.71 charge rate 2.6 kW discharge rate 2.6 kW battery_rate_min 0.0 w ac limit 5.0 export limit 5.0 kW loss charge 3 % loss discharge 3 % inverter loss 4 % 2024-04-26 20:15:09.116458 INFO pred_bat: Base charge window [ ] 2024-04-26 20:15:09.119936 INFO pred_bat: Base discharge window [ 26-04 00:00:00 - 26-04 00:00:00 @ 0p 100.0%, 27-04 00:00:00 - 27-04 00:00:00 @ 0p 100.0% ] 2024-04-26 20:15:09.122396 INFO pred_bat: Plan was last updated on 2024-04-26 20:00:00+01:00 and is now 15.0 minutes old 2024-04-26 20:15:09.126002 INFO pred_bat: Best charge window [ 26-04 23:30:00 - 27-04 02:20:00 @ 7.5p 84%, 27-04 02:30:00 - 27-04 03:00:00 @ 7.5p 92%, 27-04 04:30:00 - 27-04 06:30:00 @ 7.5p 100%, 27-04 07:00:00 - 27-04 07:30:00 @ 7.5p 98%, 27-04 23:30:00 - 28-04 02:50:00 @ 7.5p 97%, 28-04 03:00:00 - 28-04 03:30:00 @ 7.5p 100%, 28-04 04:00:00 - 28-04 04:30:00 @ 7.5p 100%, 28-04 05:00:00 - 28-04 05:30:00 @ 7.5p 98% ] 2024-04-26 20:15:09.130942 INFO pred_bat: Best discharge window [ 26-04 21:05:00 - 26-04 23:30:00 @ 15.0p 4%, 27-04 02:20:00 - 27-04 02:30:00 @ 15.0p 70%, 27-04 03:00:00 - 27-04 04:30:00 @ 15.0p 39%, 27-04 06:30:00 - 27-04 07:00:00 @ 15.0p 76%, 27-04 11:30:00 - 27-04 12:30:00 @ 15.0p 99%, 27-04 15:30:00 - 27-04 16:00:00 @ 15.0p 99%, 27-04 18:00:00 - 27-04 19:00:00 @ 15.0p 98%, 27-04 20:35:00 - 27-04 23:30:00 @ 15.0p 4%, 28-04 02:50:00 - 28-04 03:00:00 @ 15.0p 83%, 28-04 03:30:00 - 28-04 04:00:00 @ 15.0p 78%, 28-04 04:30:00 - 28-04 05:00:00 @ 15.0p 76%, 28-04 18:00:00 - 28-04 19:00:00 @ 15.0p 98% ] 2024-04-26 20:15:09.136911 INFO pred_bat: PV Forecast 32.9 kWh and 10% Forecast 8.7 kWh pv cloud factor 0.7 2024-04-26 20:15:09.156849 INFO pred_bat: Load divergence over 4.0 hours mean 577.3 W, min 0.0 W, max 1799.2 W, std dev 453.6 W, divergence 78.57% 2024-04-26 20:15:09.536714 INFO pred_bat: predict base end_record 04-28 20:15:00 final soc 8.94 kWh metric 141.64 p metric_keep 0 min_soc 0.68 @ 04-27 08:10:00 kWh load 49.89 pv 49.91 2024-04-26 20:15:09.542183 INFO pred_bat: [ 20:15, 21:15, 22:15, 23:15, 00:15, 01:15, 02:15, 03:15, 04:15, 05:15, 06:15, 07:15, 08:15, 09:15, 10:15, 11:15, 12:15, 13:15, 14:15, 15:15, 16:15, 17:15, 18:15, 19:15, 20:15, 21:15, 22:15, 23:15, 00:15, 01:15, 02:15, 03:15, 04:15, 05:15, 06:15, 07:15, 08:15, 09:15, 10:15, 11:15, 12:15, 13:15, 14:15, 15:15, 16:15, 17:15, 18:15, 19:15] 2024-04-26 20:15:09.547514 INFO pred_bat: SOC: [ 7.71, 6.88, 6.32, 6.0, 4.72, 3.46, 2.31, 1.56, 0.94, 0.86, 0.86, 0.83, 0.68, 1.11, 1.79, 2.72, 4.0, 5.2, 6.38, 7.34, 8.32, 8.85, 8.61, 8.44, 7.88, 7.18, 6.58, 6.21, 5.3, 4.53, 3.83, 3.1, 2.51, 2.22, 2.1, 2.06, 1.9, 2.37, 3.13, 4.18, 5.5, 6.92, 8.31, 9.33, 9.52, 9.52, 9.31, 9.41] 2024-04-26 20:15:09.552139 INFO pred_bat: STATE: [ g~be-, g~be-, g~be-, g~be-, g~be-, g~be-, g~be-, g~be-, g~be~, g<be-, g<be-, g<be-, g~be+, g~be+, g~be+, g~be+, g~be+, g~be+, g~be+, g~be+, g~be+, g~be-, g~be+, g~be-, g~be-, g~be-, g~be-, g~be-, g~be-, g~be-, g~be-, g~be-, g~be-, g~be-, g~be-, g~be-, g~be+, g~be+, g~be+, g~be+, g~be+, g>be+, g>be+, g>be+, g>be+, g>be+, g~be+, g~be-] 2024-04-26 20:15:09.557236 INFO pred_bat: LOAD: [ 16.94, 17.71, 18.23, 18.53, 19.83, 21.01, 22.07, 22.78, 23.35, 25.25, 27.22, 28.5, 29.59, 29.84, 30.2, 30.66, 31.07, 31.66, 32.33, 33.19, 33.85, 34.63, 35.7, 36.29, 36.92, 37.58, 38.14, 38.48, 39.33, 40.05, 40.69, 41.37, 41.92, 42.2, 42.32, 42.5, 43.03, 43.29, 43.64, 44.05, 44.47, 44.97, 45.48, 46.15, 46.77, 47.49, 48.68, 49.25] 2024-04-26 20:15:09.564620 INFO pred_bat: PV: [ 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.01, 17.17, 17.57, 18.28, 19.34, 20.79, 22.53, 24.39, 26.3, 28.18, 29.89, 31.24, 32.13, 32.58, 32.7, 32.7, 32.7, 32.7, 32.7, 32.7, 32.7, 32.7, 32.7, 32.7, 32.71, 32.87, 33.27, 34.02, 35.17, 36.68, 38.48, 40.49, 42.53, 44.58, 46.39, 47.89, 49.01, 49.7] 2024-04-26 20:15:09.570193 INFO pred_bat: IMPORT: [ 16.8, 16.8, 16.8, 16.8, 16.91, 16.91, 16.91, 16.91, 16.91, 18.74, 20.69, 21.8, 22.37, 22.37, 22.37, 22.37, 22.37, 22.37, 22.37, 22.37, 22.37, 22.37, 22.37, 22.37, 22.37, 22.37, 22.37, 22.37, 22.37, 22.37, 22.37, 22.37, 22.37, 22.37, 22.37, 22.37, 22.37, 22.37, 22.37, 22.37, 22.37, 22.37, 22.37, 22.37, 22.37, 22.37, 22.37, 22.37] 2024-04-26 20:15:09.575159 INFO pred_bat: EXPORT: [ 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.3, 13.33, 13.4, 13.68, 14.61, 15.33, 15.41, 15.41] 2024-04-26 20:15:09.580134 INFO pred_bat: CARBON: [ 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, 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] 2024-04-26 20:15:09.585136 INFO pred_bat: CAR0: [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.52, 3.23, 4.24, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75, 4.75] 2024-04-26 20:15:09.590856 INFO pred_bat: METRIC: [ 1.26, 1.26, 1.26, 1.26, 67.2, 67.2, 67.2, 67.2, 67.2, 80.9, 95.57, 103.89, 108.13, 108.13, 108.13, 108.13, 108.13, 108.13, 108.13, 108.13, 108.13, 108.13, 108.13, 108.13, 108.13, 108.13, 108.13, 108.13, 173.25, 173.25, 173.25, 173.25, 173.25, 173.25, 173.25, 173.25, 173.25, 173.25, 173.25, 173.25, 173.2, 172.76, 171.68, 167.52, 153.58, 142.84, 141.68, 141.64] 2024-04-26 20:15:10.164387 INFO pred_bat: Battery has 48.0 hours left - now at 7.71 2024-04-26 20:15:10.265354 INFO pred_bat: ERROR: Exception raised type NoneType doesn't define round method

springfall2008 commented 6 months ago

Can you test 'main' to see if its resolved?

tractor137 commented 6 months ago

No still showing the error I'm afraid after updating to 7.17.4

tractor137 commented 6 months ago

Seems to be fixed but have a new problem now which I will raise as a separate issue