OpenWonderLabs / node-switchbot

The node-switchbot is a Node.js module which allows you communicate with SwitchBot Devices over BLE
https://openwonderlabs.github.io/node-switchbot/
ISC License
71 stars 26 forks source link

Feature Request: Lock Support #90

Open phillip9933 opened 2 years ago

phillip9933 commented 2 years ago

Problem

The switchbot lock is not able to be discovered using the ble node or API.

Solution

Add support for the switchbot lock

Alternatives

No response

Additional context

https://www.switchbot.jp/pages/lock-purchase

Jacksonbm1 commented 2 years ago

I saw a post in a live chat with a cofounder of switchbot that said the ble lock api is coming:

Here's the op:

"Hey. It's Richard here. I am one of the cofounders of this little robot SwitchBot. I am more on sales and marketing, but i also know how to code and play around with JavaScript and Python myself. I have around 160+ connected device, 20-30 scenes/ routines/automations or whatever you call it at my place and most of them are in use, which means I kinda know what smart home is. Also I use Alexa most of the time at home and Siri when I am on my phone. Just wanna say hi and if you guys have anything you wanna tell me, just let me know. Would like to interact with you guys more from now on. In case i missed you comments, pin me again. I am also on Twitter in case you wanna talk there too. https://twitter.com/richardmou63/"

Here's the reply that says the lock api is coming:

"1. Lock API is definitely on its way. We gotta test the security level before releasing and there is no ETA yet."

Post: https://www.reddit.com/r/TrySwitchBot/comments/vzr3y6/first_post_hello_world/?utm_source=share&utm_medium=ios_app&utm_name=iossmf

brozef commented 8 months ago

@donavanbecker i'm taking a look into this in my spare time. my fork has a basic working version of lock support, as long as you have the encryption key which can be retrieved externally. I'll add more functionality, readme entries and subsequently open a pull request in the coming days

this is ready to merge