Skip to content

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

Merged
manup merged 2 commits into
dresden-elektronik:masterfrom
SwoopX:WRSR02_fix
Aug 10, 2021
Merged

Fix: Make Xiaomi WRS-R02 switch configuration more robust#5136
manup merged 2 commits into
dresden-elektronik:masterfrom
SwoopX:WRSR02_fix

Conversation

@SwoopX

@SwoopX SwoopX commented Jul 18, 2021

Copy link
Copy Markdown
Collaborator

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