Giter VIP home page Giter VIP logo

Comments (5)

nemccarthy avatar nemccarthy commented on July 30, 2024 1

@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.

nicolas-kuechler avatar nicolas-kuechler commented on July 30, 2024 1

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.

tony-wallace avatar tony-wallace commented on July 30, 2024

[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.

Chanete avatar Chanete commented on July 30, 2024

[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.

SwitchBot-Wonderlabs avatar SwitchBot-Wonderlabs commented on July 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.