Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make correct phase count available in API #876

Merged
merged 2 commits into from
Sep 26, 2024

Conversation

martinlukas84
Copy link
Contributor

@martinlukas84 martinlukas84 commented Sep 25, 2024

The available phase count is part of the type "evse_manager::limits". This type is published via mqtt and is used by the API module to interact with external software stacks like Nymea.
Per default the available phase count is set to value 1, during the init of the evse_manager interface. The EvseManager determines the count of active phases with help of the min and max phase count values as part of the type "evse_board_support::HardwareCapabilities". This is published by other modules like CbTarragonDriver.
But this value is never published via "limits" topic through API module. This leads to wrong values in the Nymea App. Although 3 phases are connected to wallbox, only 1 phase is used for energy management. This commit should fix this.

Describe your changes

Issue ticket number and link

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have made corresponding changes to the documentation
  • I read the contribution documentation and made sure that my changes meet its requirements

The available phase count is part of the type "evse_manager::limits".
This type is published via mqtt and is used by the API module to interact
with external software stacks like Nymea.
Per default the available phase count is set to value 1, during the init
of the evse_manager interface. The EvseManager determines the count of
active phases with help of the min and max phase count values as part of
the type "evse_board_support::HardwareCapabilities". This is published by other
modules like CbTarragonDriver.
But this value is never published via "limits" topic through API module.
This leads to wrong values in the Nymea App. Although 3 phases are connected
to wallbox, only 1 phase is used for energy management.
This commit should fix this.

Signed-off-by: Martin Lukas <[email protected]>
@hikinggrass hikinggrass added the include-in-release Tag that this PR should be included in the current merge window for the upcoming release if possible label Sep 25, 2024
@hikinggrass hikinggrass merged commit d22db64 into main Sep 26, 2024
10 checks passed
@hikinggrass hikinggrass deleted the fix_init_phaseCount_publishing branch September 26, 2024 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
include-in-release Tag that this PR should be included in the current merge window for the upcoming release if possible
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants