Skip to content

Fix config/mode for ubisys devices S1/S2(-R)/J1(-R) - #7493

Merged
manup merged 1 commit into
dresden-elektronik:masterfrom
SwoopX:ubisys_switch_mode
Dec 27, 2023
Merged

Fix config/mode for ubisys devices S1/S2(-R)/J1(-R)#7493
manup merged 1 commit into
dresden-elektronik:masterfrom
SwoopX:ubisys_switch_mode

Conversation

@SwoopX

@SwoopX SwoopX commented Dec 26, 2023

Copy link
Copy Markdown
Collaborator

So, apparently, the code is stepping on its own foot here. For a DDF to be able to really use config/mode, a special meta item needs to be set, which is missing for all ubisys devices offering a ZHASwitch resource. However, the legacy code for setting the mode is still available, but is never reached due to code precedence.

The PR satisfies now all requirements for the DDF code and works with the respective configuration values. Additionally, the respective legacy code is removed, as it wasn't used anyway anymore.

@SwoopX SwoopX added the Fix label Dec 26, 2023
@SwoopX SwoopX added this to the v2.25.1 milestone Dec 26, 2023
@manup

manup commented Dec 27, 2023

Copy link
Copy Markdown
Member

@Zehir looks like the validator needs a small addition, the "fc" keyword here is an optional hex value that can be given to read, write, parse functions to specify a non default Zigbee frame control value.

@SwoopX SwoopX changed the title Fix config/mode für ubisys devices S1/S2(-R)/J1(-R) Fix config/mode for ubisys devices S1/S2(-R)/J1(-R) Dec 27, 2023
@Zehir

Zehir commented Dec 27, 2023

Copy link
Copy Markdown
Collaborator

@manup I have updated the validator, you can re run the checks

@manup

manup commented Dec 27, 2023

Copy link
Copy Markdown
Member

@manup I have updated the validator, you can re run the checks

Cool thanks, all green now 👍

@manup
manup merged commit 8d644a5 into dresden-elektronik:master Dec 27, 2023
@SwoopX
SwoopX deleted the ubisys_switch_mode branch January 5, 2024 22:20
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.

Ubisys S1 (5501) and S2 (5502) configuration: Unable to change button mode (could not set attribute)

3 participants