Skip to content

fix consumer: my-pv ACThor/Elwa-E - #4051

Merged
LKuemmel merged 2 commits into
openWB:masterfrom
seaspotter:fix-my-pv-write-registers
Oct 7, 2026
Merged

LKuemmel merged 2 commits into
openWB:masterfrom
seaspotter:fix-my-pv-write-registers

Conversation

@seaspotter

Copy link
Copy Markdown
Collaborator

write_register statt nicht existierendem write_registers

#3656 (comment)

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The reviewed changes consistently use the supported Modbus API and appropriate integer encoding.

Review effort: Lite
Findings: None

What changed in this PR

Fixes Modbus power-limit writes for the my-PV Acthor and Elwa-E consumers.

Changes:

  • Replaces unsupported write_registers calls with typed write_register calls.
  • Converts power limits to integer INT16 values.
File Description
packages/​modules/​consumers/​my_pv/​elwa_e/​consumer.py Fixes Elwa-E register writes.
packages/​modules/​consumers/​my_pv/​acthor/​consumer.py Fixes Acthor register writes.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@LKuemmel LKuemmel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In den Mustern unter docs/samples gibt es bei den Verbrauchern auch noch Aufrufe von client.write_registers. Kannst Du die bitte auch noch korrigieren?

Samples angepasst auf write_register
@seaspotter

Copy link
Copy Markdown
Collaborator Author

In den Mustern unter docs/samples gibt es bei den Verbrauchern auch noch Aufrufe von client.write_registers. Kannst Du die bitte auch noch korrigieren?

ist erledigt :)

@LKuemmel
LKuemmel merged commit 4baae4f into openWB:master Oct 7, 2026
1 check passed
@seaspotter
seaspotter deleted the fix-my-pv-write-registers branch October 7, 2026 10:17
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.

3 participants