Debug looks like the average_excess_power is wrong. Itâs increasing every time, but Iâm not generating anywhere near what you are stating (as you can see from the history)
2024-06-14 08:48:12.321 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [climate.tesla (Prio 900)] Appliance is already switched off.
2024-06-14 08:49:12.299 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] Export History: [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-06-14 08:49:12.299 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] PV Excess (PV Power - Load Power) History: [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, 153, 180, 181, 209]
2024-06-14 08:49:12.306 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [climate.tesla automation.hot_water_from_pv (Prio 900)] Home battery charge is sufficient (14.0/98.0 %) OR remaining solar forecast is higher than remaining capacity of home battery. Calculated average excess power based on >> solar power - load power <<: 723 W
2024-06-14 08:49:12.308 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [climate.tesla automation.hot_water_from_pv (Prio 900)] Average Excess power not high enough to switch on appliance.
2024-06-14 08:49:12.309 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [climate.tesla (Prio 900)] Appliance is already switched off.
2024-06-14 08:49:45.630 ERROR (MainThread) [homeassistant.components.mqtt.number] Invalid value for number.office_radiator_local_temperature_calibration: 18 (range -9.0 - 9.0)
2024-06-14 08:49:45.834 ERROR (MainThread) [homeassistant.components.mqtt.number] Invalid value for number.office_radiator_local_temperature_calibration: 18 (range -9.0 - 9.0)
2024-06-14 08:50:12.293 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] Export History: [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-06-14 08:50:12.294 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] PV Excess (PV Power - Load Power) History: [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, 153, 180, 181, 209, 267]
2024-06-14 08:50:12.302 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [climate.tesla automation.hot_water_from_pv (Prio 900)] Home battery charge is sufficient (14.0/98.0 %) OR remaining solar forecast is higher than remaining capacity of home battery. Calculated average excess power based on >> solar power - load power <<: 990 W
2024-06-14 08:50:12.305 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [climate.tesla automation.hot_water_from_pv (Prio 900)] Average Excess power not high enough to switch on appliance.
2024-06-14 08:50:12.307 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [climate.tesla (Prio 900)] Appliance is already switched off.
2024-06-14 08:51:10.843 ERROR (MainThread) [homeassistant.components.mqtt.number] Invalid value for number.living_room_radiator_window_local_temperature_calibration: 18.5 (range -9.0 - 9.0)
2024-06-14 08:51:11.062 ERROR (MainThread) [homeassistant.components.mqtt.number] Invalid value for number.living_room_radiator_window_local_temperature_calibration: 18.5 (range -9.0 - 9.0)
2024-06-14 08:51:11.282 ERROR (MainThread) [homeassistant.components.mqtt.number] Invalid value for number.kitchen_radiator_utility_local_temperature_calibration: 16.5 (range -9.0 - 9.0)
2024-06-14 08:51:11.525 ERROR (MainThread) [homeassistant.components.mqtt.number] Invalid value for number.kitchen_radiator_utility_local_temperature_calibration: 16.5 (range -9.0 - 9.0)
2024-06-14 08:51:12.299 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] Export History: [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-06-14 08:51:12.299 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] PV Excess (PV Power - Load Power) History: [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, 153, 180, 181, 209, 267, 327]
2024-06-14 08:51:12.304 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [climate.tesla automation.hot_water_from_pv (Prio 900)] Home battery charge is sufficient (14.0/98.0 %) OR remaining solar forecast is higher than remaining capacity of home battery. Calculated average excess power based on >> solar power - load power <<: 1317 W
2024-06-14 08:51:12.307 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [climate.tesla automation.hot_water_from_pv (Prio 900)] Average Excess power not high enough to switch on appliance.
2024-06-14 08:51:12.309 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [climate.tesla (Prio 900)] Appliance is already switched off.
2024-06-14 08:51:16.239 ERROR (MainThread) [homeassistant.components.mqtt.number] Invalid value for number.living_room_radiator_window_local_temperature_calibration: 18.5 (range -9.0 - 9.0)
2024-06-14 08:51:16.627 ERROR (MainThread) [homeassistant.components.mqtt.number] Invalid value for number.kitchen_radiator_utility_local_temperature_calibration: 16.5 (range -9.0 - 9.0)
2024-06-14 08:52:12.289 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] Export History: [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-06-14 08:52:12.289 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] PV Excess (PV Power - Load Power) History: [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, 153, 180, 181, 209, 267, 327, 376]
2024-06-14 08:52:12.300 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [climate.tesla automation.hot_water_from_pv (Prio 900)] Home battery charge is sufficient (14.0/98.0 %) OR remaining solar forecast is higher than remaining capacity of home battery. Calculated average excess power based on >> solar power - load power <<: 1693 W
2024-06-14 08:52:12.302 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [climate.tesla automation.hot_water_from_pv (Prio 900)] Average Excess power not high enough to switch on appliance.
2024-06-14 08:52:12.306 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [climate.tesla (Prio 900)] Appliance is already switched off.
2024-06-14 08:53:12.291 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] Export History: [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-06-14 08:53:12.292 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] PV Excess (PV Power - Load Power) History: [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, 153, 180, 181, 209, 267, 327, 376, 508]
2024-06-14 08:53:12.299 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [climate.tesla automation.hot_water_from_pv (Prio 900)] Home battery charge is sufficient (14.0/98.0 %) OR remaining solar forecast is higher than remaining capacity of home battery. Calculated average excess power based on >> solar power - load power <<: 2201 W
2024-06-14 08:53:12.301 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [climate.tesla automation.hot_water_from_pv (Prio 900)] Average Excess power not high enough to switch on appliance.
2024-06-14 08:53:12.304 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [climate.tesla (Prio 900)] Appliance is already switched off.
2024-06-14 08:53:17.933 ERROR (MainThread) [homeassistant.components.mqtt.number] Invalid value for number.living_room_radiator_window_local_temperature_calibration: 18.5 (range -9.0 - 9.0)
2024-06-14 08:53:18.172 ERROR (MainThread) [homeassistant.components.mqtt.number] Invalid value for number.living_room_radiator_window_local_temperature_calibration: 18.5 (range -9.0 - 9.0)
2024-06-14 08:54:12.297 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] Export History: [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-06-14 08:54:12.298 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] PV Excess (PV Power - Load Power) History: [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, 153, 180, 181, 209, 267, 327, 376, 508, 510]
2024-06-14 08:54:12.305 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [climate.tesla automation.hot_water_from_pv (Prio 900)] Home battery charge is sufficient (14.0/98.0 %) OR remaining solar forecast is higher than remaining capacity of home battery. Calculated average excess power based on >> solar power - load power <<: 2711 W
2024-06-14 08:54:12.308 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [climate.tesla automation.hot_water_from_pv (Prio 900)] Average Excess power not high enough to switch on appliance.
2024-06-14 08:54:12.311 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [climate.tesla (Prio 900)] Appliance is already switched off.
2024-06-14 08:55:12.299 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] Export History: [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-06-14 08:55:12.299 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] PV Excess (PV Power - Load Power) History: [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, 153, 180, 181, 209, 267, 327, 376, 508, 510, 256]
2024-06-14 08:55:12.304 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [climate.tesla automation.hot_water_from_pv (Prio 900)] Home battery charge is sufficient (15.0/98.0 %) OR remaining solar forecast is higher than remaining capacity of home battery. Calculated average excess power based on >> solar power - load power <<: 2967 W