Coder Social home page Coder Social logo

Comments (11)

devWaves avatar devWaves commented on August 14, 2024 1

ok. thanks for the screenshots.

I might add it anyways at some point so that battery can be monitored

from switchbot-mqtt-ble-esp32.

devWaves avatar devWaves commented on August 14, 2024

there is currently no documentation

if switchbot releases some documentation then sure

from switchbot-mqtt-ble-esp32.

devWaves avatar devWaves commented on August 14, 2024

I was thinking about it and I might be able to reverse engineer if you send me a few screenshots from your android or iphone

I would need you to install an app that shows the advertised data published by the remote device MAC address. I would need a number of screenshots to see what changes in the data

The android app that I use is called "nRF Connect for Mobile" made by "Nordic Semiconductor ASA". There are many BLE apps that can provide this data though

If it publishes similar to the motion/contact sensor I can probably get it to work. The data should be fairly simple as we only care about 3 things

  1. Battery
    Take at least 1 screenshot without pressing the remote. Does it publish advertised data?
  2. a push up
    Push the up button a couple times and try to take a screenshot right after each press. At least 3 screenshots
  3. a push down
    Push the down button a couple times and try to take a screenshot right after each press. At least 3 screenshots

Make sure to clearly define which screenshot is which when you send them to me.

I just need screenshots similar to this.... (this is for the bot, I would need them for remote)

image

from switchbot-mqtt-ble-esp32.

devWaves avatar devWaves commented on August 14, 2024

A similar request for screenshot was made here in #27

IMG_7062

Originally posted by @BangerTech in #27 (comment)

from switchbot-mqtt-ble-esp32.

thematrixdev avatar thematrixdev commented on August 14, 2024

image

May you instruct me how to get the screenshots of the others please?

from switchbot-mqtt-ble-esp32.

devWaves avatar devWaves commented on August 14, 2024

exact same way, just do a new scan right after you push the buttons. (click the 3 dots ellipses and click refresh and rescan). as close as possible right after clicking the button. Do it a couple times. Try to put next to each screenshot 1st time pushed up, 2nd time pushed up, 3rd time pushed up

The line where it says "Service Data" I am expecting that to change

from switchbot-mqtt-ble-esp32.

devWaves avatar devWaves commented on August 14, 2024

I'm assuming that the button works by connecting directly to the device it is linked to.

I am hoping that it also advertises a count of the number of button pushes also. If it does not then I don't think I can support it. Otherwise I would have to fake the esp32 as a switchbot device and that wouldnt work or would be a ton of work

from switchbot-mqtt-ble-esp32.

devWaves avatar devWaves commented on August 14, 2024

based on what you already sent my guess is your battery level is either 100% or 66%... let me know which one makes sense

from switchbot-mqtt-ble-esp32.

thematrixdev avatar thematrixdev commented on August 14, 2024

Battery level is 100%.
The service data is different today, strange.
image

Pressing the physical button on the switch-remote, clicking "refresh" in the app, service-data has not changed.

from switchbot-mqtt-ble-esp32.

devWaves avatar devWaves commented on August 14, 2024

so in the service data the "64" is the battery. 64 hexidecimal converted to decimal value = 100 %

So there is no difference even between scans of pressing up and down? if so then I don't think I can support it

only thing I see different is the 42 changed to a 62. if you only pushed "up" the 4 in 42 could have changed to a 6, maybe meaning you pushed up 2 times?? but if you say it isnt changing all the time then probably not.

it looks like I can only collect the battery level, which doesn't help much

it sounds like these are made to directly interact with another switchbot curtain or bot only. that sucks

My guess is you would connect to the remote with the switchbot app. It will program the remote with the bot MAC address you want to link it to and store that info in the remote. Then when you press the remote it will make similar BLE calls to control the bot

since it would be a device to device connection I can't capture that data

this is probably why there is no documentation for it

Only last thing I can think of is maybe if you don't already have it linked to a device it might broadcast different service data, but I doubt it

let me know if you ever see anything different though if you continue trying

from switchbot-mqtt-ble-esp32.

thematrixdev avatar thematrixdev commented on August 14, 2024

I think you guess it correct. Thanks.

image

image

from switchbot-mqtt-ble-esp32.

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.