Comments (5)
@tony-wallace I've started a project to allow you to get more details on the switchbots, currently this project supports passwords and getting the battery and firmware version. You can find the support here: https://github.com/nemccarthy/pySwitchbot/
The aim is to merge this project into HomeAssistant.
I've been able to find the press time setting string. The next step is to try setting this programatically. Let me know if youre still interested in this and I'll add it in.
from python-host.
I built a REST / Python API which allows to control the following switchbot functionality both in encrypted and unencrypted mode:
- actions: press, turn on, turn off
- get settings: battery, firmware, number of timers, mode, hold time
- set settings: hold time, mode
- timers: get timers, set timers, sync timers
You can find the code here: https://github.com/nicolas-kuechler/switchbot
If you want to build your own library you can check out the documentation of the BLE API at the end of the README. It should contain most of the information that you need.
from python-host.
[x] Get and set long press time settings
Yes, please. I have been using a remote-control power strip in combination with the Switchbots. It would be helpful if the power strip was not absolutely required.
Thanks!
from python-host.
[x] Get and set long press time settings
Same here. I use the smartswitch to control my heating system remotely. Some times, I need to reset the device and this is made by pressing the power button for 5 secs. I've tried using the ON and OFF commands, but all of them do the same!!!
So, changing the press time will solve my issue! Thx.
from python-host.
Bot has pressing time setting in the APP.
In addition, the action sequence version has also been released.
If needed, you can feedback in the app.
Thanks.
from python-host.
Related Issues (20)
- UnicodeDecodeError on pip3 download gattlib HOT 4
- Curtain support? HOT 8
- RuntimeError: Characteristic value/descriptor operation failed: Invalid handle HOT 1
- Add Curtain "pause" HOT 2
- Add curtain info output HOT 1
- Can't send commands - curtain HOT 2
- MagicSwitchbot -> ConnectionError... why? HOT 1
- Add Curtain left and right commands (same as calibration) HOT 4
- Contact Sensor, Motion Sensor Support
- Contact Sensor: Going out counter and entry counter are not increased
- Password Support? HOT 5
- Connection Refused (111) HOT 1
- Curtain BLE - Support slider control mode single side
- The documentation for the set RGB on the color bulb is incorrect HOT 1
- battery level still not possible? HOT 1
- Attribute can't be read on Meter device with BLE open API
- Can't send "Press" to Bot HOT 10
- Get historic temperature data from SwitchBot Meter Plus
- Documentation is too old to be understandable and need some review HOT 3
- Invalid handle on all commands HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-host.