Skip to content

Conversation

@DCSBL
Copy link
Collaborator

@DCSBL DCSBL commented Dec 3, 2025

  • You can now set charge and discharge permissions for the Plug-In Battery group via the permissions field in the Plug-In Battery API. See the documentation for more information.
  • A new field has been added to api/batteries: battery_count, which indicates the number of connected Plug-In Batteries.
  • When target_power_w field in api/batteries is updated, it is now pushed over WebSocket connections as well.

@github-actions
Copy link

github-actions bot commented Dec 3, 2025

Visit the preview URL for this PR (updated for commit 35085c6):

https://hw-api-documentation--pr219-api-2-2-0-088w5bug.web.app

(expires Thu, 11 Dec 2025 10:27:40 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 4accc1c887f1346ec9c563d5645c74c94f610c07

@DCSBL DCSBL requested a review from Copilot December 3, 2025 10:43
Copilot finished reviewing on behalf of DCSBL December 3, 2025 10:44
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request updates the documentation for API version 2.2.0, introducing new functionality for the Plug-In Battery API. The update adds the ability to control charge and discharge permissions through a new permissions field, introduces a battery_count field to indicate the number of connected batteries, and documents that target_power_w is now pushed over WebSocket connections.

Key Changes

  • Added permissions field to allow granular control of battery charging and discharging behavior
  • Added battery_count field to track the number of connected Plug-In Batteries
  • Updated WebSocket documentation to reflect that permissions and target_power_w are now pushed in real-time

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
docs/v2/websocket.mdx Updated to document that permissions and target_power_w are now pushed in real-time for battery updates
docs/v2/batteries.mdx Major update to document the new permissions field, battery_count field, and backwards compatibility with standby mode; includes new examples
docs/introduction.mdx Updated device support table to reflect API 2.2.0 beta availability for P1 Meter and kWh Meter devices
docs/changelog.mdx Added version 2.2.0 changelog entry with the new features
.cspell.yml Added 'bèta' to spell checker dictionary (though this should use standard 'beta' spelling)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@DCSBL DCSBL requested a review from Copilot December 3, 2025 10:50
Copilot finished reviewing on behalf of DCSBL December 3, 2025 10:53
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 8 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

DCSBL and others added 3 commits December 3, 2025 12:40
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Duco Sebel <74970928+DCSBL@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Duco Sebel <74970928+DCSBL@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Duco Sebel <74970928+DCSBL@users.noreply.github.com>
DCSBL and others added 2 commits December 4, 2025 11:17
Co-authored-by: RonvanderPlas <36153505+RonvanderPlas@users.noreply.github.com>
Signed-off-by: Duco Sebel <74970928+DCSBL@users.noreply.github.com>
@DCSBL DCSBL enabled auto-merge (squash) December 4, 2025 10:25
@DCSBL DCSBL merged commit 1d51f81 into main Dec 4, 2025
9 checks passed
@DCSBL DCSBL deleted the api-2.2.0 branch December 4, 2025 10:27
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.

2 participants