Open DauntlessEagle opened 1 month ago
And here, changed the switch priority to the default setting of 5 minutes and just goes round in circles even though there is plenty of PV.
What am I doing wrong.
2024-10-07 11:17:07.752 WARNING (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] "Import/Export power" has been defined together with "Home Battery". This is not intended and will lead to always giving the home battery priority over appliances, regardless of the specified min. battery level. 2024-10-07 11:17:17.752 WARNING (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] "Import/Export power" has been defined together with "Home Battery". This is not intended and will lead to always giving the home battery priority over appliances, regardless of the specified min. battery level. 2024-10-07 11:17:27.752 WARNING (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] "Import/Export power" has been defined together with "Home Battery". This is not intended and will lead to always giving the home battery priority over appliances, regardless of the specified min. battery level. 2024-10-07 11:17:37.752 WARNING (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] "Import/Export power" has been defined together with "Home Battery". This is not intended and will lead to always giving the home battery priority over appliances, regardless of the specified min. battery level. 2024-10-07 11:17:47.752 WARNING (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] "Import/Export power" has been defined together with "Home Battery". This is not intended and will lead to always giving the home battery priority over appliances, regardless of the specified min. battery level. 2024-10-07 11:17:57.752 WARNING (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] "Import/Export power" has been defined together with "Home Battery". This is not intended and will lead to always giving the home battery priority over appliances, regardless of the specified min. battery level. 2024-10-07 11:17:57.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, 896.5360000000001, 877.0, 792.0, 961.0, 1004.0, 520.0, 0, 350.0, 956.0, 786.0, 1025.0, 293.0, 646.0, 76] 2024-10-07 11:17:57.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, 896.5360000000001, 877.0, 792.0, 961.0, 1004.0, 502.0, -87.0, 350.0, 956.0, 786.0, 1025.0, 293.0, 646.0, 52] 2024-10-07 11:17:57.758 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] Force battery charge necessary: capacity=3.5 kWh|remaining_capacity=3.325 kWh|remaining_forecast=3.721 kWh| kwh_offset=1 kWh 2024-10-07 11:17:57.760 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.delta_pro_force_charge automation.pvexcessdpcharge (Prio 1)] Current power consumption: 0.0 W 2024-10-07 11:17:57.766 INFO (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.delta_pro_force_charge automation.pvexcessdpcharge (Prio 1)] Switched off appliance. 2024-10-07 11:17:57.766 INFO (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.delta_pro_force_charge automation.pvexcessdpcharge (Prio 1)] Application has run for 102.7 minutes 2024-10-07 11:17:58.769 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] Adjusting power history by 0.0. 2024-10-07 11:17:58.769 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, 896.5360000000001, 877.0, 792.0, 961.0, 1004.0, 520.0, 0, 350.0, 956.0, 786.0, 1025.0, 293.0, 646.0, 76] 2024-10-07 11:17:58.770 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, 896.5360000000001, 877.0, 792.0, 961.0, 1004.0, 520.0, 0, 350.0, 956.0, 786.0, 1025.0, 293.0, 646.0, 76.0] 2024-10-07 11:17:58.771 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, 896.5360000000001, 877.0, 792.0, 961.0, 1004.0, 502.0, -87.0, 350.0, 956.0, 786.0, 1025.0, 293.0, 646.0, 52] 2024-10-07 11:17:58.772 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, 896.5360000000001, 877.0, 792.0, 961.0, 1004.0, 502.0, -87.0, 350.0, 956.0, 786.0, 1025.0, 293.0, 646.0, 52.0] 2024-10-07 11:17:58.772 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.delta_pro_force_charge automation.pvexcessdpcharge (Prio 1)] Home battery charge is not sufficient (5.0/100.0 %), OR remaining solar forecast is lower than remaining capacity of home battery. Calculated average excess power based on >> export power <<: 76 W 2024-10-07 11:17:58.774 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.delta_pro_force_charge automation.pvexcessdpcharge (Prio 1)] Average Excess power not high enough to switch on appliance. 2024-10-07 11:17:58.776 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.delta_pro_force_charge (Prio 1)] Appliance is already switched off. 2024-10-07 11:18:07.752 WARNING (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] "Import/Export power" has been defined together with "Home Battery". This is not intended and will lead to always giving the home battery priority over appliances, regardless of the specified min. battery level. 2024-10-07 11:18:17.752 WARNING (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] "Import/Export power" has been defined together with "Home Battery". This is not intended and will lead to always giving the home battery priority over appliances, regardless of the specified min. battery level. 2024-10-07 11:18:27.751 WARNING (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] "Import/Export power" has been defined together with "Home Battery". This is not intended and will lead to always giving the home battery priority over appliances, regardless of the specified min. battery level. 2024-10-07 11:18:37.752 WARNING (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] "Import/Export power" has been defined together with "Home Battery". This is not intended and will lead to always giving the home battery priority over appliances, regardless of the specified min. battery level. 2024-10-07 11:18:45.777 ERROR (MainThread) [homeassistant.components.automation] Automation with alias '🐙 Octopus Plunge - Force charge Delta Pro 🐙' failed to setup actions and has been disabled: Unknown device '09d468dfdb851c8e8ad585938c7c7afe' 2024-10-07 11:18:45.779 ERROR (MainThread) [homeassistant.components.automation] Automation with alias 'Octopus energy not free then off force charge' failed to setup actions and has been disabled: Unknown device '09d468dfdb851c8e8ad585938c7c7afe' 2024-10-07 11:18:45.782 ERROR (MainThread) [homeassistant.components.automation] Automation with alias '2 - Manual plunge cheapest price' failed to setup actions and has been disabled: Unknown device '09d468dfdb851c8e8ad585938c7c7afe' 2024-10-07 11:18:45.792 ERROR (MainThread) [homeassistant.components.automation] Automation with alias '5 AM charge 20%' failed to setup conditions and has been disabled: Unknown device '09d468dfdb851c8e8ad585938c7c7afe' 2024-10-07 11:18:46.423 WARNING (MainThread) [blueprints.panhans.heatingcontrol] AHC - To make Advance Heating Control work properly just setup the Uptime integration. 2024-10-07 11:18:47.752 WARNING (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] "Import/Export power" has been defined together with "Home Battery". This is not intended and will lead to always giving the home battery priority over appliances, regardless of the specified min. battery level. 2024-10-07 11:18:57.631 INFO (MainThread) [custom_components.pyscript.file.pv_excess_control.pv_excess_control] [switch.delta_pro_force_charge automation.pvexcessdpcharge (Prio 1)] Registered appliance. 2024-10-07 11:18:57.752 WARNING (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] "Import/Export power" has been defined together with "Home Battery". This is not intended and will lead to always giving the home battery priority over appliances, regardless of the specified min. battery level. 2024-10-07 11:18:57.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, 896.5360000000001, 877.0, 792.0, 961.0, 1004.0, 520.0, 0, 350.0, 956.0, 786.0, 1025.0, 293.0, 646.0, 76.0, 0] 2024-10-07 11:18:57.758 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, 896.5360000000001, 877.0, 792.0, 961.0, 1004.0, 502.0, -87.0, 350.0, 956.0, 786.0, 1025.0, 293.0, 646.0, 52.0, -164] 2024-10-07 11:18:57.762 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] Force battery charge necessary: capacity=3.5 kWh|remaining_capacity=3.325 kWh|remaining_forecast=3.721 kWh| kwh_offset=1 kWh 2024-10-07 11:18:57.763 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.delta_pro_force_charge automation.pvexcessdpcharge (Prio 1)] Cannot switch off appliance, because appliance switch interval is not reached (1/5). 2024-10-07 11:18:57.766 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.delta_pro_force_charge automation.pvexcessdpcharge (Prio 1)] Home battery charge is not sufficient (5.0/100.0 %), OR remaining solar forecast is lower than remaining capacity of home battery. Calculated average excess power based on >> export power <<: 408 W 2024-10-07 11:18:57.767 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.delta_pro_force_charge automation.pvexcessdpcharge (Prio 1)] Average Excess power is high enough to switch on appliance. 2024-10-07 11:18:57.767 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.delta_pro_force_charge automation.pvexcessdpcharge (Prio 1)] Cannot switch on appliance, because appliance switch interval is not reached (1/5). 2024-10-07 11:18:57.768 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.delta_pro_force_charge (Prio 1)] Appliance is already switched off. 2024-10-07 11:19:00.490 WARNING (MainThread) [blueprints.panhans.heatingcontrol] AHC - To make Advance Heating Control work properly just setup the Uptime integration. 2024-10-07 11:19:07.752 WARNING (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] "Import/Export power" has been defined together with "Home Battery". This is not intended and will lead to always giving the home battery priority over appliances, regardless of the specified min. battery level. 2024-10-07 11:19:17.752 WARNING (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] "Import/Export power" has been defined together with "Home Battery". This is not intended and will lead to always giving the home battery priority over appliances, regardless of the specified min. battery level. 2024-10-07 11:19:27.752 WARNING (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] "Import/Export power" has been defined together with "Home Battery". This is not intended and will lead to always giving the home battery priority over appliances, regardless of the specified min. battery level. 2024-10-07 11:19:37.752 WARNING (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] "Import/Export power" has been defined together with "Home Battery". This is not intended and will lead to always giving the home battery priority over appliances, regardless of the specified min. battery level. 2024-10-07 11:19:43.307 WARNING (MainThread) [blueprints.panhans.heatingcontrol] AHC - To make Advance Heating Control work properly just setup the Uptime integration. 2024-10-07 11:19:47.337 WARNING (MainThread) [blueprints.panhans.heatingcontrol] AHC - To make Advance Heating Control work properly just setup the Uptime integration. 2024-10-07 11:19:47.751 WARNING (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] "Import/Export power" has been defined together with "Home Battery". This is not intended and will lead to always giving the home battery priority over appliances, regardless of the specified min. battery level. 2024-10-07 11:19:57.752 WARNING (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] "Import/Export power" has been defined together with "Home Battery". This is not intended and will lead to always giving the home battery priority over appliances, regardless of the specified min. battery level. 2024-10-07 11:19:57.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, 896.5360000000001, 877.0, 792.0, 961.0, 1004.0, 520.0, 0, 350.0, 956.0, 786.0, 1025.0, 293.0, 646.0, 76.0, 0, 358] 2024-10-07 11:19:57.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, 896.5360000000001, 877.0, 792.0, 961.0, 1004.0, 502.0, -87.0, 350.0, 956.0, 786.0, 1025.0, 293.0, 646.0, 52.0, -164, 350] 2024-10-07 11:19:57.760 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] Force battery charge necessary: capacity=3.5 kWh|remaining_capacity=3.325 kWh|remaining_forecast=3.721 kWh| kwh_offset=1 kWh 2024-10-07 11:19:57.762 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.delta_pro_force_charge automation.pvexcessdpcharge (Prio 1)] Cannot switch off appliance, because appliance switch interval is not reached (2/5). 2024-10-07 11:19:57.762 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.delta_pro_force_charge automation.pvexcessdpcharge (Prio 1)] Home battery charge is not sufficient (5.0/100.0 %), OR remaining solar forecast is lower than remaining capacity of home battery. Calculated average excess power based on >> export power <<: 274 W 2024-10-07 11:19:57.763 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.delta_pro_force_charge automation.pvexcessdpcharge (Prio 1)] Average Excess power is high enough to switch on appliance. 2024-10-07 11:19:57.764 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.delta_pro_force_charge automation.pvexcessdpcharge (Prio 1)] Cannot switch on appliance, because appliance switch interval is not reached (2/5). 2024-10-07 11:19:57.765 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.delta_pro_force_charge (Prio 1)] Appliance is already switched off. 2024-10-07 11:20:00.343 WARNING (MainThread) [blueprints.panhans.heatingcontrol] AHC - To make Advance Heating Control work properly just setup the Uptime integration. 2024-10-07 11:20:07.752 WARNING (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] "Import/Export power" has been defined together with "Home Battery". This is not intended and will lead to always giving the home battery priority over appliances, regardless of the specified min. battery level. 2024-10-07 11:20:17.752 WARNING (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] "Import/Export power" has been defined together with "Home Battery". This is not intended and will lead to always giving the home battery priority over appliances, regardless of the specified min. battery level. 2024-10-07 11:20:27.753 WARNING (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] "Import/Export power" has been defined together with "Home Battery". This is not intended and will lead to always giving the home battery priority over appliances, regardless of the specified min. battery level. 2024-10-07 11:20:37.753 WARNING (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] "Import/Export power" has been defined together with "Home Battery". This is not intended and will lead to always giving the home battery priority over appliances, regardless of the specified min. battery level. 2024-10-07 11:20:47.753 WARNING (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] "Import/Export power" has been defined together with "Home Battery". This is not intended and will lead to always giving the home battery priority over appliances, regardless of the specified min. battery level. 2024-10-07 11:20:57.752 WARNING (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] "Import/Export power" has been defined together with "Home Battery". This is not intended and will lead to always giving the home battery priority over appliances, regardless of the specified min. battery level. 2024-10-07 11:20:57.755 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, 896.5360000000001, 877.0, 792.0, 961.0, 1004.0, 520.0, 0, 350.0, 956.0, 786.0, 1025.0, 293.0, 646.0, 76.0, 0, 358, 972] 2024-10-07 11:20:57.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, 896.5360000000001, 877.0, 792.0, 961.0, 1004.0, 502.0, -87.0, 350.0, 956.0, 786.0, 1025.0, 293.0, 646.0, 52.0, -164, 350, 972] 2024-10-07 11:20:57.759 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] Force battery charge necessary: capacity=3.5 kWh|remaining_capacity=3.325 kWh|remaining_forecast=3.721 kWh| kwh_offset=1 kWh 2024-10-07 11:20:57.761 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.delta_pro_force_charge automation.pvexcessdpcharge (Prio 1)] Cannot switch off appliance, because appliance switch interval is not reached (3/5). 2024-10-07 11:20:57.761 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.delta_pro_force_charge automation.pvexcessdpcharge (Prio 1)] Home battery charge is not sufficient (5.0/100.0 %), OR remaining solar forecast is lower than remaining capacity of home battery. Calculated average excess power based on >> export power <<: 410 W 2024-10-07 11:20:57.764 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.delta_pro_force_charge automation.pvexcessdpcharge (Prio 1)] Average Excess power is high enough to switch on appliance. 2024-10-07 11:20:57.764 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.delta_pro_force_charge automation.pvexcessdpcharge (Prio 1)] Cannot switch on appliance, because appliance switch interval is not reached (3/5). 2024-10-07 11:20:57.765 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.delta_pro_force_charge (Prio 1)] Appliance is already switched off. 2024-10-07 11:21:07.752 WARNING (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] "Import/Export power" has been defined together with "Home Battery". This is not intended and will lead to always giving the home battery priority over appliances, regardless of the specified min. battery level. 2024-10-07 11:21:17.752 WARNING (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] "Import/Export power" has been defined together with "Home Battery". This is not intended and will lead to always giving the home battery priority over appliances, regardless of the specified min. battery level. 2024-10-07 11:21:27.751 WARNING (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] "Import/Export power" has been defined together with "Home Battery". This is not intended and will lead to always giving the home battery priority over appliances, regardless of the specified min. battery level. 2024-10-07 11:21:37.752 WARNING (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] "Import/Export power" has been defined together with "Home Battery". This is not intended and will lead to always giving the home battery priority over appliances, regardless of the specified min. battery level. 2024-10-07 11:21:47.751 WARNING (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] "Import/Export power" has been defined together with "Home Battery". This is not intended and will lead to always giving the home battery priority over appliances, regardless of the specified min. battery level. 2024-10-07 11:21:57.752 WARNING (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] "Import/Export power" has been defined together with "Home Battery". This is not intended and will lead to always giving the home battery priority over appliances, regardless of the specified min. battery level. 2024-10-07 11:21:57.755 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, 896.5360000000001, 877.0, 792.0, 961.0, 1004.0, 520.0, 0, 350.0, 956.0, 786.0, 1025.0, 293.0, 646.0, 76.0, 0, 358, 972, 991] 2024-10-07 11:21:57.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, 896.5360000000001, 877.0, 792.0, 961.0, 1004.0, 502.0, -87.0, 350.0, 956.0, 786.0, 1025.0, 293.0, 646.0, 52.0, -164, 350, 972, 991] 2024-10-07 11:21:57.759 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] Force battery charge necessary: capacity=3.5 kWh|remaining_capacity=3.325 kWh|remaining_forecast=3.721 kWh| kwh_offset=1 kWh 2024-10-07 11:21:57.761 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.delta_pro_force_charge automation.pvexcessdpcharge (Prio 1)] Cannot switch off appliance, because appliance switch interval is not reached (4/5). 2024-10-07 11:21:57.761 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.delta_pro_force_charge automation.pvexcessdpcharge (Prio 1)] Home battery charge is not sufficient (5.0/100.0 %), OR remaining solar forecast is lower than remaining capacity of home battery. Calculated average excess power based on >> export power <<: 479 W 2024-10-07 11:21:57.762 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.delta_pro_force_charge automation.pvexcessdpcharge (Prio 1)] Average Excess power is high enough to switch on appliance. 2024-10-07 11:21:57.765 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.delta_pro_force_charge automation.pvexcessdpcharge (Prio 1)] Cannot switch on appliance, because appliance switch interval is not reached (4/5). 2024-10-07 11:21:57.766 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.delta_pro_force_charge (Prio 1)] Appliance is already switched off. 2024-10-07 11:22:07.752 WARNING (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] "Import/Export power" has been defined together with "Home Battery". This is not intended and will lead to always giving the home battery priority over appliances, regardless of the specified min. battery level. 2024-10-07 11:22:17.752 WARNING (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] "Import/Export power" has been defined together with "Home Battery". This is not intended and will lead to always giving the home battery priority over appliances, regardless of the specified min. battery level. 2024-10-07 11:22:27.751 WARNING (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] "Import/Export power" has been defined together with "Home Battery". This is not intended and will lead to always giving the home battery priority over appliances, regardless of the specified min. battery level. 2024-10-07 11:22:37.755 WARNING (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] "Import/Export power" has been defined together with "Home Battery". This is not intended and will lead to always giving the home battery priority over appliances, regardless of the specified min. battery level. 2024-10-07 11:22:47.753 WARNING (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] "Import/Export power" has been defined together with "Home Battery". This is not intended and will lead to always giving the home battery priority over appliances, regardless of the specified min. battery level. 2024-10-07 11:22:57.751 WARNING (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] "Import/Export power" has been defined together with "Home Battery". This is not intended and will lead to always giving the home battery priority over appliances, regardless of the specified min. battery level. 2024-10-07 11:22:57.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, 896.5360000000001, 877.0, 792.0, 961.0, 1004.0, 520.0, 0, 350.0, 956.0, 786.0, 1025.0, 293.0, 646.0, 76.0, 0, 358, 972, 991, 1030] 2024-10-07 11:22:57.754 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, 896.5360000000001, 877.0, 792.0, 961.0, 1004.0, 502.0, -87.0, 350.0, 956.0, 786.0, 1025.0, 293.0, 646.0, 52.0, -164, 350, 972, 991, 1030] 2024-10-07 11:22:57.759 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] Force battery charge necessary: capacity=3.5 kWh|remaining_capacity=3.325 kWh|remaining_forecast=3.721 kWh| kwh_offset=1 kWh 2024-10-07 11:22:57.761 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.delta_pro_force_charge automation.pvexcessdpcharge (Prio 1)] Current power consumption: 0.0 W 2024-10-07 11:22:57.765 INFO (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.delta_pro_force_charge automation.pvexcessdpcharge (Prio 1)] Switched off appliance. 2024-10-07 11:22:57.765 INFO (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.delta_pro_force_charge automation.pvexcessdpcharge (Prio 1)] Application has run for 121.5 minutes 2024-10-07 11:22:58.767 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] Adjusting power history by 0.0. 2024-10-07 11:22:58.767 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, 896.5360000000001, 877.0, 792.0, 961.0, 1004.0, 520.0, 0, 350.0, 956.0, 786.0, 1025.0, 293.0, 646.0, 76.0, 0, 358, 972, 991, 1030] 2024-10-07 11:22:58.768 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, 896.5360000000001, 877.0, 792.0, 961.0, 1004.0, 520.0, 0, 350.0, 956.0, 786.0, 1025.0, 293.0, 646.0, 76.0, 0, 358.0, 972.0, 991.0, 1030.0] 2024-10-07 11:22:58.768 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, 896.5360000000001, 877.0, 792.0, 961.0, 1004.0, 502.0, -87.0, 350.0, 956.0, 786.0, 1025.0, 293.0, 646.0, 52.0, -164, 350, 972, 991, 1030] 2024-10-07 11:22:58.769 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, 896.5360000000001, 877.0, 792.0, 961.0, 1004.0, 502.0, -87.0, 350.0, 956.0, 786.0, 1025.0, 293.0, 646.0, 52.0, -164.0, 350.0, 972.0, 991.0, 1030.0] 2024-10-07 11:22:58.770 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.delta_pro_force_charge automation.pvexcessdpcharge (Prio 1)] Home battery charge is not sufficient (5.0/100.0 %), OR remaining solar forecast is lower than remaining capacity of home battery. Calculated average excess power based on >> export power <<: 670 W 2024-10-07 11:22:58.771 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.delta_pro_force_charge automation.pvexcessdpcharge (Prio 1)] Average Excess power is high enough to switch on appliance. 2024-10-07 11:22:58.771 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.delta_pro_force_charge automation.pvexcessdpcharge (Prio 1)] Cannot switch on appliance, because appliance switch interval is not reached (0/5). 2024-10-07 11:22:58.772 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.delta_pro_force_charge (Prio 1)] Appliance is already switched off. 2024-10-07 11:23:07.753 WARNING (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] "Import/Export power" has been defined together with "Home Battery". This is not intended and will lead to always giving the home battery priority over appliances, regardless of the specified min. battery level.
I have managed to resolve this now by removing the following options from the automation.
Home Battery Level Home battery capacity Remaining solar production Min home battery level removed - Set to 100% default
Script is now working no errors and charges the Delta Pro at the 1 min set intervals depending on PV power It still satisfies my needs but having the battery auto charge feature depending on remaining pv estimated generation would be handy …
Its odd because I did have this working on occasion from time to time, then all of a sudden it would just stop working. I will try testing different scenarios when I have the time, but ideally just need this to work to offset exporting to the grid and wasting valuable power.
I seem to get this error all the time where I have plenty of excess PV power available, and the appliance just will not switch on. Sometimes it works, sometimes it does not, and I don't know what's causing it. I have removed everything and started again to no avail
The error to me states Cannot switch on appliance, because appliance switch interval is not reached (0/1) - I have the interval set at 1 minute so it can react as fast as possible to changing PV loads
I have tried import / export sensors and a single smart meter sensor which has +- data which seems to work better as it only pulls the current necessary for the device.
Here is my yaml
alias: PVEXCESSDPCHARGE description: "" use_blueprint: path: pv_excess_control.yaml input: automation_id: PVEXCESSDPCHARGE appliance_priority: 1 grid_voltage: 230 pv_power: sensor.givtcp_sa2142g007_pv_power home_battery_level: sensor.delta_pro_main_battery_level home_battery_capacity: 3.5 solar_production_forecast: sensor.energy_production_today_remaining_3 appliance_switch: switch.delta_pro_force_charge appliance_switch_interval: 1 dynamic_current_appliance: true appliance_current_set_entity: input_number.pv_excess_control_amps_selector min_current: 0.8 max_current: 12.6 defined_current: 0.8 actual_power: sensor.delta_pro_force_charge_current_power import_export_power: sensor.smart_meter_electricity_power
2024-10-07 11:07:58.776 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [switch.delta_pro_force_charge automation.pvexcessdpcharge (Prio 1)] Home battery charge is not sufficient (5.0/100.0 %), OR remaining solar forecast is lower than remaining capacity of home battery. Calculated average excess power based on >> export power <<: 961 W
2024-10-07 11:07:58.779 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time]
[switch.delta_pro_force_charge automation.pvexcessdpcharge (Prio 1)] Average Excess power is high enough to switch on appliance. 2024-10-07 11:07:58.779 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] **
[switch.delta_pro_force_charge automation.pvexcessdpcharge (Prio 1)] Cannot switch on appliance, because appliance switch interval is not reached (0/1).**