Enhance dynamic zone control and fix entity visibility issues#27
Open
fengchupc wants to merge 12 commits into
Open
Enhance dynamic zone control and fix entity visibility issues#27fengchupc wants to merge 12 commits into
fengchupc wants to merge 12 commits into
Conversation
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.
This pull request adds robust support for dynamic zone damper controls (0–100%) for ducted/zone HVAC models, improving both backend parsing and Home Assistant entity creation. It introduces logic to detect and expose zone damper controls even when their keys or ranges are not predefined, ensuring compatibility with a wide variety of device models and configurations. Additionally, it enhances translation coverage for zone-related attributes and improves entity naming, uniqueness, and categorization to avoid duplication and clutter.
Dynamic zone damper support:
api.pyto dynamically detect and register zone damper attributes from the device's property list, including parsing value ranges and step sizes for non-predefined zone keys. This enables support for a broader set of ducted/zone models.number.pyto create zone damper number entities from both parser metadata and device status, ensuring damper controls are available even if parser data is incomplete. (F3bd3e66L51R201)Translations and naming:
api.pyto include zone and damper keys for both Chinese and English, improving display names in the UI. [1] [2]HisenseNumberentity innumber.pyto generate unique IDs for zone damper controls, use translated or context-aware names, and display real-time damper percentages in the entity name when available. [1] [2] [3]Entity behavior and categorization:
Imports and minor improvements:
reandEntityCategoryin bothnumber.pyandswitch.pyto support new features and entity categorization. [1] [2]