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

Feature request: Add support for reading the state from Switchbot devices #18

Closed
moretea opened this issue Dec 29, 2020 · 3 comments · Fixed by #21
Closed

Feature request: Add support for reading the state from Switchbot devices #18

moretea opened this issue Dec 29, 2020 · 3 comments · Fixed by #21

Comments

@moretea
Copy link
Contributor

moretea commented Dec 29, 2020

Based on the observed behavior in the Switchbot app, it must be possible to query for the current state from the Switchbot devices.

I'm not intimately familiar (yet) with BLE, but from what I gather, we could fetch these as characteristics. This poses the question of the impact on battery life if we poll to often.

@moretea moretea mentioned this issue Dec 29, 2020
@basvdl
Copy link

basvdl commented Feb 18, 2021

I have succeeded reading the battery, position and light level using the python package bleak. The bluepy package is not working for me, it does not fetch any advertisement data regarding battery, position or light level. I'm new to bluetooth communications, so I might have done something wrong using bluepy. I also like bleak more, since it works cross platform, whereis bluepy only works on Linux. I probably will start building a similar setup, using bleak.

@oetelaar24
Copy link

Hi, I'm really keen on trying this additional functionality out. Any chance you are willing to make a new release containing it?

@Danielhiversen
Copy link
Collaborator

PySwitchbot 0.10.0 is now released

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 a pull request may close this issue.

4 participants