Skip to content

Add group and master attr for device #36

Merged
SeraphicRav merged 11 commits intoSeraphicCorp:mainfrom
XiaoLing-git:add_group_device_type
Jun 17, 2025
Merged

Add group and master attr for device #36
SeraphicRav merged 11 commits intoSeraphicCorp:mainfrom
XiaoLing-git:add_group_device_type

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