-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[avmfritz] Added ThingActions for power meter device to enable/disable high polling #19488
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
[avmfritz] Added ThingActions for power meter device to enable/disable high polling #19488
Conversation
…ing intervall Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
There was a problem hiding this 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_*
toHEATING_MODE_*
for better naming consistency - Renamed power meter related methods from
getPowermeter()
togetPowerMeter()
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.
...z/src/main/java/org/openhab/binding/avmfritz/internal/actions/AVMFritzPowerMeterActions.java
Outdated
Show resolved
Hide resolved
...itz/src/main/java/org/openhab/binding/avmfritz/internal/dto/templates/TemplateListModel.java
Show resolved
Hide resolved
...fritz/src/main/java/org/openhab/binding/avmfritz/internal/dto/templates/DeviceListModel.java
Show resolved
Hide resolved
...inding.avmfritz/src/main/java/org/openhab/binding/avmfritz/internal/dto/DeviceListModel.java
Show resolved
Hide resolved
...main/java/org/openhab/binding/avmfritz/internal/handler/AVMFritzPowerMeterDeviceHandler.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
There was a problem hiding this 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
...fritz/src/main/java/org/openhab/binding/avmfritz/internal/AVMFritzBindingConstants.java.orig
Outdated
Show resolved
Hide resolved
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks LGTM
Added ThingActions for power meter device to enable/disable high polling
Signed-off-by: Christoph Weitkamp github@christophweitkamp.de