Skip to content

Fix Aqara vibration sensor sensitivity configuration#8135

Merged
manup merged 2 commits into
dresden-elektronik:masterfrom
manup:master
Mar 13, 2025
Merged

Fix Aqara vibration sensor sensitivity configuration#8135
manup merged 2 commits into
dresden-elektronik:masterfrom
manup:master

Conversation

@manup

@manup manup commented Mar 10, 2025

Copy link
Copy Markdown
Member

Part I Remove duplicate for Basic cluster Xiaomi manufacturer specific attributes in general.xml
The duplicate in general.xml caused the GUI never updating the attributes listed in the proper attribute set. But only the attributes which were placed wrongly in the "Basic Device Information" attribute set.

Part II Aqara vibration sensor sensitivity fix.

The REST-API values (0: low, 1: medium, 2: high) map to on device values (3, 2, 1). By default the DDF sets high sensitivity (API value: 2) which will be configured automatically.

When setting low sensitivity {"sensitivity": 0} via API the correct value 3 was written to the device. However the bug was: reading back value 3 wasn't parsed right and reverted to default value 2 (high). The fix ensures that only correct on devices values (high:1, med: 2, low: 3) will be written. Any out of bound values are corrected. Further it fixes that on device values > 3 won't be turned into API values for high sensitivity (2) but low sensitivity (0).

This caused the GUI never updating the attributes listed in the proper attribute set. But only the attributes which were placed wrongly in the "Basic Device Information" attribute set.
@manup manup added the Fix label Mar 10, 2025
@manup manup added this to the v2.29.3-beta milestone Mar 10, 2025
@github-actions

github-actions Bot commented Mar 10, 2025

Copy link
Copy Markdown
Contributor

Hey @manup, thanks for your pull request!

Tip

Modified bundles can be downloaded here.
Relative expire date

DDB changes

Modified

  • xiaomi/lumi_vibration_aq1.json : Vibration sensor (DJT11LM) ✔️

Validation

Tip

Everything is fine !

🕧 Updated for commit 2325d27

The REST-API values (0: low, 1: medium, 2: high) map to on device values (3, 2, 1). By DDF default high sensitivity (API: 2) will be configured.

When setting low sensitivity `{"sensitivity": 0}` via API the correct value 3 was written to the device. However the bug was: reading back value 3 wasn't parsed right and reverted to default value 2 (high). The fix ensures only correct on devices values (high:1, med: 2, low: 3) will be written. Any out of bound values are corrected. Further it fixes that on device values > 3 won't be turned into high sensitivity.
@manup manup changed the title ZCLDB: Remove dupe Basic cluster Xiaomi manufacturer specific attributes Fix Aqara vibration sensor sensitivity configuration Mar 10, 2025
@manup
manup merged commit 06daef2 into dresden-elektronik:master Mar 13, 2025
@github-actions

Copy link
Copy Markdown
Contributor

This pull request is now merged. The new DDB files have been uploaded to the store.

DDB Files

Modified

  • xiaomi/lumi_vibration_aq1.json : Vibration sensor (DJT11LM) : with hash (a150a07fd0)

🕙 Updated for commit 06daef2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant