Skip to content

README: control modes table maps Predbat statuses and GoodWe EMS settings - #53

Merged
piomar123 merged 1 commit into
mainfrom
readme-predbat-ems-mapping
Oct 24, 2026
Merged

piomar123 merged 1 commit into
mainfrom
readme-predbat-ems-mapping

Conversation

@piomar123

Copy link
Copy Markdown
Owner

Why

On the elektrowoz.pl forum someone asked which inverter mode each Predbat status (Demand, Charging, Exporting, Freeze charging, Freeze exporting, Hold charging) sets. The README table in "Battery control from Predbat / other optimizers" didn't say. It listed only the executor's own modes and what the inverter did, with no Predbat names and no EMS settings.

What

The table in README.MD gets two new columns:

  • Predbat status: taken from the apps.yaml services in MQTT_TOPICS.md. Hold charging is freeze_charge with a target_soc below the SoC (Hold charging: freeze_charge with a target below the SoC discharges down to it #50). Hold exporting is Predbat's stop: export once the export target is reached, so it lands in auto.
  • Inverter settings written: taken from control.py _settings().
    • EMS 1 (Auto), 11 (Charge Battery) or 3 (Discharge PV), named as in the goodwe library's EMSMode.
    • The EMS power limit for charge/export.
    • For the freeze modes, the one limit that changes: the on-grid minimum SoC for freeze_charge, charge current 0 for freeze_export.

A short note under the table says the freeze modes aren't separate EMS modes and links to the Predbat example in MQTT_TOPICS.md. The section heading is unchanged, so links to it keep working.

Test plan

  • Checked each row against control.py _settings() on main.
  • Checked the Predbat status names against Predbat's execute.py.
  • Checked that the anchor MQTT_TOPICS.md#home-assistant--predbat-example exists on GitHub.

🤖 Generated with Claude Code

…ings

The table only listed the executor's own modes and what the inverter did,
so it didn't answer which Predbat status ends up as which EMS mode. Add a
Predbat status column (from the apps.yaml services, incl. Hold charging
and Hold exporting) and the settings each mode writes (EMS 1/3/11, power
limit, minimum SoC, charge current), taken from control.py _settings().

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@piomar123
piomar123 merged commit 4f1b817 into main Oct 24, 2026
1 check passed
@piomar123
piomar123 deleted the readme-predbat-ems-mapping branch October 24, 2026 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant