Skip to content

v4: Add and expose prop querying#478

Merged
RobHofmann merged 10 commits into
RobHofmann:4.0-pre-releasefrom
p-monteiro:expose-props
Jul 9, 2026
Merged

v4: Add and expose prop querying#478
RobHofmann merged 10 commits into
RobHofmann:4.0-pre-releasefrom
p-monteiro:expose-props

Conversation

@p-monteiro

@p-monteiro p-monteiro commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

The main change in this PR is the addition of methods in the API to directly query device props. This is surfaced in HA by two actions, one for all known props (as in, found by inspecting the firmware), and one for user-defined props. This allows for better debugging and for easier adding of new features by asking users to dump prop states. As a benefit, all status requests to the device use the same method to query the props.

Other changes:

  • Add a warning for pack sizes over 1024 bytes, which makes some devices not respond
  • Fix wrong lookup of fan mode in climate
  • Code cleanup
  • Change Sleep mode icon to differentiate from Quiet fan mode

@RobHofmann, you can create a release after merging this one. Don't forget to set it as a pre-release.

p-monteiro added 10 commits July 9, 2026 09:49
This allows to debug the value of all unknown props found in firmware disassembly. Might be useful to debug and find new features.

TODO: Hook it to HA
Move the logic and reuse it in the device.
Exposes query_props and query_props_all on the device level
Adds 2 services to query specific or all device properties
@RobHofmann RobHofmann merged commit 6139fd9 into RobHofmann:4.0-pre-release Jul 9, 2026
2 checks passed
@p-monteiro p-monteiro deleted the expose-props branch July 9, 2026 10:03
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