You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6a01eb4
Browse filesBrowse the repository at this point in the historyBrowse files
Bound the solar surplus by the CT clamp setting and by generation
Two ways the sensor could report a surplus that was not there.
A charger outside the CT clamp is never seen by the inverter's grid reading, so
adding car_charging_power back invented a surplus equal to the whole charger
draw. The add-back is now gated on car_energy_reported_load, the flag
prediction.py already uses for this. car_charging_power_included says which
applies.
The result is capped at pv_power. A grid sensor wired positive-on-import
without grid_power_invert made the surplus track the import instead, holding a
charger at full rate. The cap cannot fix the sign in daylight, but it bounds
the error and forces 0 after dark.
The documented automation had three faults: a bare state trigger on
car_charging_slot turned the charger on when the cheap slot ended, charging
could not resume after a force export slot because numeric_state only fires on
a crossing, and the modulating-current snippet floored at 6A with no off state.
Docs now also cover the PV inventory and freshness checks, and correct the
update interval to INVERTER_QUICK_UPDATE_SECONDS.
self.dashboard_item("binary_sensor."+self.prefix+"_demand", state="on"ifisDemandelse"off", attributes={"friendly_name": "Predbat is in demand mode", "icon": "mdi:battery-arrow-up"})
2938
2938
2939
-
# Whether the plan has a force export window running now, taken from the plan rather than
2940
-
# from isExporting above. That makes it stay on right through a slot, cover freeze export
2941
-
# (where Predbat is selling the PV rather than the battery) and the Hold exporting phases,
2942
-
# and still report in read only mode - all cases where an automation wants to leave the
2943
-
# solar for Predbat to sell, but where the commanded state above is off.
2939
+
# Taken from the plan, not from isExporting above. isExporting is off in read only mode,
2940
+
# off during Hold exporting, and only on for the minutes an export is commanded, whereas an
2941
+
# automation needs to know a slot is running for its whole duration including freeze export.
0 commit comments