I am having problems understanding what this integration is doing because it will detect that there is more DC generated than actually used. It tries to start my wallbox but a second after that he stops the wallbox
2023-05-30 09:23:43.754 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, 1607.0, 1610.0, 1496.0, 1562.0, 1654.0, 5843, 5815, 5897]
2023-05-30 09:23:43.755 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, 1607.0, 1610.0, 1496.0, 1563.0, 1654.0, 5843, 5816, 5897]
2023-05-30 09:23:43.760 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.wallbox (Prio 1)] Home battery charge is sufficient (100.0/80.0 %) OR remaining solar forecast is higher than remaining capacity of home battery. Calculated average excess power based on >> solar power - load power <<: 4154 W
2023-05-30 09:23:43.762 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.wallbox (Prio 1)] Average Excess power is high enough to switch on appliance.
2023-05-30 09:23:43.763 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.wallbox (Prio 1)] Cannot switch on appliance, because appliance switch interval is not reached (3/5).
2023-05-30 09:23:43.768 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.wallbox (Prio 1)] Appliance is already switched off.
2023-05-30 09:24:43.756 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, 1607.0, 1610.0, 1496.0, 1562.0, 1654.0, 5843, 5815, 5897, 5926]
2023-05-30 09:24:43.757 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, 1607.0, 1610.0, 1496.0, 1563.0, 1654.0, 5843, 5816, 5897, 5926]
2023-05-30 09:24:43.765 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.wallbox (Prio 1)] Home battery charge is sufficient (100.0/80.0 %) OR remaining solar forecast is higher than remaining capacity of home battery. Calculated average excess power based on >> solar power - load power <<: 5027 W
2023-05-30 09:24:43.768 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.wallbox (Prio 1)] Average Excess power is high enough to switch on appliance.
2023-05-30 09:24:43.768 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.wallbox (Prio 1)] Cannot switch on appliance, because appliance switch interval is not reached (4/5).
2023-05-30 09:24:43.771 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.wallbox (Prio 1)] Appliance is already switched off.
2023-05-30 09:25:43.754 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, 1607.0, 1610.0, 1496.0, 1562.0, 1654.0, 5843, 5815, 5897, 5926, 5924]
2023-05-30 09:25:43.755 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, 1607.0, 1610.0, 1496.0, 1563.0, 1654.0, 5843, 5816, 5897, 5926, 5924]
2023-05-30 09:25:43.759 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.wallbox (Prio 1)] Home battery charge is sufficient (100.0/80.0 %) OR remaining solar forecast is higher than remaining capacity of home battery. Calculated average excess power based on >> solar power - load power <<: 5881 W
2023-05-30 09:25:43.761 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.wallbox (Prio 1)] Average Excess power is high enough to switch on appliance.
2023-05-30 09:25:43.763 INFO (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.wallbox (Prio 1)] Switched on appliance.
2023-05-30 09:25:43.763 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] Adjusting power history by -4140.0.
2023-05-30 09:25:43.764 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, 1607.0, 1610.0, 1496.0, 1562.0, 1654.0, 5843, 5815, 5897, 5926, 5924]
2023-05-30 09:25:43.766 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] Adjusted 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, 1607.0, 1610.0, 1496.0, 1562.0, 1654.0, 1703.0, 1675.0, 1757.0, 1786.0, 1784.0]
2023-05-30 09:25:43.767 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] PV Excess (solar 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, 1607.0, 1610.0, 1496.0, 1563.0, 1654.0, 5843, 5816, 5897, 5926, 5924]
2023-05-30 09:25:43.768 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] Adjusted PV Excess (solar 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, 1607.0, 1610.0, 1496.0, 1563.0, 1654.0, 1703.0, 1676.0, 1757.0, 1786.0, 1784.0]
2023-05-30 09:25:43.769 INFO (MainThread) [homeassistant.helpers.script.wallbox] wallbox: Running template script
2023-05-30 09:25:43.770 INFO (MainThread) [homeassistant.helpers.script.wallbox] wallbox: Executing step call service
2023-05-30 09:25:44.773 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.wallbox (Prio 1)] Appliance is already switched off.
I dont understand why he is doing that. All entities that are needed are configured and given correct values but I dont get why the integrations is doing what it is doing