Hello everyone,
first of all: I used the blueprint/script for quite a while with one device for a month without any issues. Since I added two more devices (AC’s) I have the problem that the devices randomly don’t switch off when there’s not enough excess power.
Any ideas how to debug that?
Thanks for your help!
Here’s an excerpt from my latest log-entry:
2024-09-09 21:28:42.982 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, 2, 3]
2024-09-09 21:28:42.982 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, 0, 0, -402, -422]
2024-09-09 21:28:42.984 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [input_boolean.jonas_ac_auto_22deg automation.uberschuss_ac_jonas (Prio 3)] Home battery charge is sufficient (52.6/95.0 %) OR remaining solar forecast is higher than remaining capacity of home battery. Calculated average excess power based on >> solar power - load power <<: -82 W
2024-09-09 21:28:42.985 WARNING (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [input_boolean.jonas_ac_auto_22deg automation.uberschuss_ac_jonas (Prio 3)] Appliance state (=None) is neither ON nor OFF. Assuming OFF state.
2024-09-09 21:28:42.985 DEBUG (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] [input_boolean.jonas_ac_auto_22deg automation.uberschuss_ac_jonas (Prio 3)] Average Excess power not high enough to switch on appliance.
2024-09-09 21:28:42.986 ERROR (MainThread) [custom_components.pyscript.file.pv_excess_control.on_time] Exception in <file.pv_excess_control.on_time> line 16:
domain = entity_id.split('.')[0]
^
AttributeError: 'NoneType' object has no attribute 'split'