HEMS: add custom implementation - #32187
Open
andig wants to merge 1 commit into
Open
Conversation
Member
Author
|
@naltatis need to decide how to present the custom choices and which one should be default. |
This comment has been minimized.
This comment has been minimized.
Contributor
|
✅ Build finished.
|
Contributor
|
thanks for helping it build with Github Bot. tested and confirm that it´s working. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixes #32182
Adds a
customHEMS that sources its limits from plugins instead of fixed config values, so an external logic (http, mqtt, modbus, gpio, …) can supply them at runtime:Both plugins are optional, at least one is required. Values are polled every
intervaland mapped ontoapi.HEMSthe same wayfnndoes it —curtailedpercentdrives bothCurtailedPercent()andMaxProductionPower()so the two cannot contradict each other. Dim and curtail sessions are recorded viasmartgrid.UpdateSessionlike the existing integrations.Note on the original request:
getmaxcurrenthas no equivalent inapi.HEMS, which is watt-based only, so only power limits are covered.Failsafe behaviour is deliberately left out pending the semantics discussion — a failing plugin read is logged and the previous limit is retained. Out-of-range values (negative power, percent outside 0..100) are rejected the same way.
🤖 Generated with Claude Code