-
-
Notifications
You must be signed in to change notification settings - Fork 34.2k
Add switchbot relayswitch 2PM and garge door opener #146140
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
base: dev
Are you sure you want to change the base?
Add switchbot relayswitch 2PM and garge door opener #146140
Conversation
Hey there @Danielhiversen, @RenierM26, @murtas, @Eloston, @dsypniewski, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
Marked as draft until #146133 is merged and this is rebased |
514815a
to
62fb951
Compare
02cbc22
to
a23ac4b
Compare
@joostlek could you help to review this pr? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's split the 2PM and the garage door opener since the 2PM is a bit more advanced
if isinstance(self.coordinator.device, switchbot.SwitchbotRelaySwitch2PM): | ||
return self.coordinator.device.get_parsed_data(self._channel) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you elaborate on what channels are?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you elaborate on what channels are?
SwitchbotRelaySwitch2PM has two independent switches, which can count their voltage, current, power, etc. I use channel to indicate the number of switches.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these comparable to shellies? As in, can the 2 channels exist in their own room? Because in shelly since last release, the integration would split the channels in their own device, allowing users to easily set them to their own room.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
a23ac4b
to
f791bf4
Compare
Breaking change
Proposed change
Type of change
Additional information
Checklist
ruff format homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
.To help with the load of incoming pull requests: