Skip to content

Conversation

cweitkamp
Copy link
Contributor

Added ThingActions for power meter device to enable/disable high polling

Signed-off-by: Christoph Weitkamp github@christophweitkamp.de

…ing intervall

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
@cweitkamp cweitkamp added the enhancement An enhancement or new feature for an existing add-on label Oct 16, 2025
@lsiepel lsiepel requested a review from Copilot October 17, 2025 07:42
Copy link

@Copilot 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

Adds ThingActions for power meter devices to enable/disable high polling for more frequent value updates. The PR also performs significant code refactoring including renaming heating mode constants and method names for better clarity.

  • Added new ThingActions API for enabling/disabling high refresh polling on power meter devices
  • Refactored heating mode constants from MODE_* to HEATING_MODE_* for better naming consistency
  • Renamed power meter related methods from getPowermeter() to getPowerMeter() throughout the codebase

Reviewed Changes

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

Show a summary per file
File Description
AVMFritzPowerMeterActions.java New ThingActions class providing enable/disable high refresh polling functionality
AVMFritzPowerMeterDeviceHandler.java New handler for power meter devices with polling capabilities
AVMFritzBindingConstants.java Added constants for power meter thing types and GET_ENERGY_STATS action
HeatingModel.java Updated to use new HEATING_MODE_* constants
Various test files Updated method calls and constant references to match refactored names

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
Copy link
Contributor

@lsiepel lsiepel left a comment

Choose a reason for hiding this comment

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

Also thanks for the refactoring. Just one comment. Otherwise LGTM

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
Copy link
Contributor

@lsiepel lsiepel left a comment

Choose a reason for hiding this comment

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

Thanks LGTM

@lsiepel lsiepel merged commit b05d8ae into openhab:main Oct 19, 2025
2 checks passed
@lsiepel lsiepel added this to the 5.1 milestone Oct 19, 2025
@cweitkamp cweitkamp deleted the feature-avmfritz-powermeter-polling branch October 19, 2025 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement An enhancement or new feature for an existing add-on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants