Skip to content

Conversation

@SwoopX
Copy link
Collaborator

@SwoopX SwoopX commented Jun 28, 2021

See #4842.

This PR also adds writing the multi-click attribute 0x0125 for Aqara Opple switches (lumi.remote.b686opcn01, lumi.remote.b486opcn01 and lumi.remote.b286opcn01).

@SwoopX SwoopX linked an issue Jun 28, 2021 that may be closed by this pull request
Copy link
Member

@manup manup left a comment

Choose a reason for hiding this comment

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

Some smaller questions in the comments.

The PR description should also mention that the multi-click attribute 0x0125 is configured for "86opcn01" (human readable switch name? ;) as well.

Comment on lines 16376 to 16382
writeAttribute(sensor, 0x01, XIAOMI_CLUSTER_ID, attr, VENDOR_XIAOMI);

// Activate multiclick mode
DBG_Printf(DBG_INFO, "Write Aqara switch 0x%016llX multiclick mode attribute 0x0125 = 2\n", sensor->address().ext());
deCONZ::ZclAttribute attr2(0x0125, deCONZ::Zcl8BitUint, QLatin1String("multiclick mode"), deCONZ::ZclReadWrite, false);
attr2.setValue(static_cast<quint64>(2));
writeAttribute(sensor, 0x01, XIAOMI_CLUSTER_ID, attr2, VENDOR_XIAOMI);
Copy link
Member

Choose a reason for hiding this comment

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

Is it safe to assume hard coded endpoint 0x01 here for "86opcn01" and "b28ac1", or is the formerly used sensor->fingerPrint().endpoint a better fit?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, endpoint 0x01 should be save. I guess I can amend that.

The corresponding switch sensors should have been manually pinned to endpoint 1, so using `sensor->fingerPrint().endpoint` should be fine
@manup manup added this to the v2.12.2-beta milestone Jul 6, 2021
@manup manup merged commit 5682877 into dresden-elektronik:master Jul 6, 2021
manup added a commit to manup/deconz-rest-plugin that referenced this pull request Jul 15, 2021
Regression from v2.12.2-beta. Due the duplicated JSON key "xiaomiSwitchB1acn01Map", only the last one was properly  loaded.

Related PR: dresden-elektronik#5067

Issue: dresden-elektronik#5117
manup added a commit to manup/deconz-rest-plugin that referenced this pull request Jul 15, 2021
Regression from v2.12.2-beta. Due the duplicated JSON key "xiaomiSwitchB1acn01Map", only the last one was properly  loaded.

Related PR: dresden-elektronik#5067

Issue: dresden-elektronik#5117 

Fix typo
@SwoopX SwoopX deleted the aqarah1 branch November 10, 2021 19:52
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.

Aqara Wireless Remote Switch H1 (Double Rocker)

2 participants