Skip to content

Fix: Make Xiaomi WRS-R02 switch configuration more robust #5136

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

Merged
merged 2 commits into from
Aug 10, 2021

Conversation

SwoopX
Copy link
Collaborator

@SwoopX SwoopX commented Jul 18, 2021

As there's always one more place to whitelist, the device now adds RConfigPending after restart to allow switch configuration.

Additionally, to make the configuration procedure more robust, RConfigPending is now set to require configuration upon device announcement (currently applicable for Opples and WRS-R02). This ensures the Xiaomi device operation mode is marked for writing when the device is reset AND a ZHASwitch resource already exists which is not marked as deleted. Without it, the device does not get configured if reset more than once while deconz is running.

SwoopX added 2 commits July 18, 2021 15:13
As there's always one more place to whitelist, the device now adds `RConfigPending` after restart to allow switch configuration.

Additionally, to make the configuration procedure more robust, `RConfigPending` is now set to require configuration upon device announcement (currently applicable for Opples and WRS-R02). This ensures the Xiaomi device operation mode is marked for writing when the device is reset AND a ZHASwitch resource already exists which is not marked as deleted. Without it, the device does not get configured if reset more than once while deconz is running.
@timbru31 timbru31 mentioned this pull request Jul 28, 2021
@manup manup added this to the v2.12.4-beta milestone Aug 10, 2021
@manup manup merged commit 176e1e0 into dresden-elektronik:master Aug 10, 2021
@SwoopX SwoopX deleted the WRSR02_fix branch November 10, 2021 19:46
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