boukhari.manar
May 10

Trigger SwitchBot via Bluetooth directly from android

1 comment

Edited: May 10

 

Hi SwitchBot team & community!

 

I would like to integrate SwitchBot on my android app.

I'm able to connect to device and list his bluetooth services and characteristics.

but I'm stuck on how to trigger it , this require having the exact format of data to write into a specific characteristic.

Actually, i've used the same method as the python : https://github.com/OpenWonderLabs/python-host/blob/master/switchbot.py , write on ' cba20002-224d-11e6-9fb8-0002a5d5c51b' with values :

570100 : for Press

570101 : for Turn On

570102 : for Turn Off

I even changed the value format to hexa, but the switch is not responding :(

In addition to that, I need some other informations like:

- How can get the battery level ?

- what's the purpose of the notify characteristic 'cba20003-224d-11e6-9fb8-0002a5d5c51b' ?

- what's the purpose of the service '0000fec7-0000-1000-8000-00805f9b34fb'?

Do you have any idea about those details ? or is there any specs or documentation that provide them ?

 

Any help would be appreciated :)

Best regards,

Manar,

christopher3920
4 days ago

Although the working of Bluetooth is now less because people not using it right now but still you can make this option. Talk with top rated essay writing service and let me know what's their point on this topic then we discuss it more.

New Posts
logo-01_edited.png
0

About us

SwitchBot is your simple switch to a smart home. With easy set-up, we help you to create a comfortable home with innovative smart home products.

We believe a smart home should be simple and comfortable. With the mission of making your life simpler in the most accessible way, SwitchBot is dedicated to creating and crafting the most innovative smart home products for you.

Social

Subscribe to our email, follow us on social media, so you could get the best smart home product updates as soon as we have one.

  • Facebook
  • Twitter
  • Instagram
  • YouTube
© 2019 By Wonderlabs, Inc.