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

Curtain BLE designation of dual vs single curtain setup #11

Open
apollo1220 opened this issue Oct 6, 2022 · 4 comments
Open

Curtain BLE designation of dual vs single curtain setup #11

apollo1220 opened this issue Oct 6, 2022 · 4 comments
Assignees
Labels
enhancement New feature or request pinned

Comments

@apollo1220
Copy link

Current Situation

Currently there doesn't seem to be a way to know whether the curtain device is setup just as a single curtain or is paired with another curtain device to make a dual curtain.

Proposed Change

Add information to the GET API which designates which way the curtain device is configured.

Additional Context

This is for Home Assistant's integration with SwitchBot.

@bdraco
Copy link

bdraco commented Oct 6, 2022

We likely need a way in the advertisement data to know which commands to send

If its a dual setup we likely need to send the original commands that https://github.com/Danielhiversen/pySwitchbot/pull/122/files changed.

If its a single setup we need to use the commands that are in there right now

@donavanbecker
Copy link
Collaborator

If you use with OpenAPI then you can see if it is paired with another curtain. That's what I do in the homebridge plugin.

@bdraco
Copy link

bdraco commented Oct 6, 2022

Unfortunately Home Assistant only talks to these over Bluetooth so it has no credentials to access the cloud apis

@bdraco
Copy link

bdraco commented Oct 16, 2022

Our solution was to send both commands which I assume is successful since the issues have not been reopened Danielhiversen/pySwitchbot#127

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pinned
Projects
None yet
Development

No branches or pull requests

8 participants