Skip to content

Add group and master attr for device #36

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 11 commits into from
Jun 17, 2025

Conversation

XiaoLing-git
Copy link
Contributor

https://github.com/OpenWonderLabs/SwitchBotAPI?tab=readme-ov-file#curtain

When I was developing for home assistant, I found that the following devices support grouping, but Device class does not have a group attribute, so I added group and master attribute.
After grouping, when you call master device, devices in a group will respond simultaneously

  • Curtain
  • Curtain 3
  • Roller Shade
  • Blind Tilt
  • Lock
  • Lock Lite
  • Lock Pro
  • Lock Ultra

Copy link
Contributor

@SeraphicRav SeraphicRav left a comment

Choose a reason for hiding this comment

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

Thanks again for your contribution !
Adding a make file should make things simpler !

XiaoLing-git and others added 4 commits June 17, 2025 10:05
Co-authored-by: Ravaka Razafimanantsoa <3774520+SeraphicRav@users.noreply.github.com>
@XiaoLing-git XiaoLing-git requested a review from SeraphicRav June 17, 2025 02:15
@SeraphicRav SeraphicRav merged commit a630604 into SeraphicCorp:main Jun 17, 2025
7 checks passed
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