Skip to content
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

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

Merged
merged 1 commit into from
Dec 27, 2023

Conversation

SwoopX
Copy link
Collaborator

@SwoopX SwoopX commented Dec 26, 2023

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
Copy link
Member

manup commented Dec 27, 2023

@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
Copy link
Collaborator

Zehir commented Dec 27, 2023

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

@manup
Copy link
Member

manup commented Dec 27, 2023

@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
1 check passed
@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