-
-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
soocas.toothbrush.m1s support #319
Comments
Hi Mark, Yes, It's possible to add this device. It's NOT encrypted, so no need to get a key. I first looked at the 10 lines presented in your post.
'Toothbrush incident' is the google translation of the sensor type 0x0010 on this page with explanation of Xiaomi BLE message format. It's in Chinese, so I had to use google translate. Could you tell me what this sensor can possibly be? I guess it's a setting of the toothbrush, like speed? If not, I can create a (temporary) sensor that just reports the number, which will allow you to figure out which number corresponds to which setting/speed/??. I'll prepare some code for you a.s.a.p. |
I've created a first draft in the Xiaomi-toothbrush-T500 branch To try, first install version 1.5.2 (not 1.6.0), if not already done. After that, overwrite the content of You will get a battery sensor (if enabled) and a tootbrush mode sensor with a value. Please try to figure out which number corresponds to what. Also leave
|
1.9.0-beta has been released, which adds support for this Toothbrush. It will create a But in your messages, there is 3 and 4 as well. |
Toothbrush event so I am wondering it might be meaningless in the log since the first byte is 0 |
Thanks, I noticed in the messages from @markthehipster that he has first byte = 03 and 04, so I wonder what that means.? |
I'm try to decode as following 09 10 00 02 00 03 dc Or do I misunderstand the spec ^^"? |
ah, ok, than I mean the second byte (they often read the bytes reversed in MiBeacon). So far, I assumed that only the last byte meant something, as I only found 00 03 and 00 04 in the the advertisements of @markthehipster So, If I understand your right (looking at the last two bytes). 00 xx means start to brush 01 16 means end of brushing, score of brushing: 22 (16 in hex is 22 in decimals) In the adv of @markthehipster we have 00 04 @ckmarkhsu Do you have this toothbrush? Are you able to make a HCIdump and check the byte order, I'm not sure if they should be read reversed or not. If you can't make a HCIdump, you can also use this app Bluetooth LE Scanner |
hummm I guess you are right. I do have the toothbrush let me dump the test data and get back to you soon Thanks! |
Quick update I still don't have very complete log. |
My guess it that it an increasing counter, e.g the score of brushing. I can add the first byte to the tooth brush sensor, this will make it easier for you to check both bytes. Will prepare it tonight. |
sorry, it takes a little longer. Will try to prepare the version this weekend. |
Went faster than expected. Please install version 2.7.3, which is the latest final version (not beta). Next copy the content of the following two files into and Next do a restart of HA. After the restart it will add two attributes to the sensor, byte 1 and byte 2. Next, try to see how it changes during brushing your teeth. |
Fixed this in BLE Monitor 5.1.4. Note that the sensor is removed and replaced with a binary sensor (with some info in the attributes). After a start, the toothbrush reports a Based on info from the Xiaomi Gateway 3 custom integration. |
Hey!
I really like what you guys did with the ble implementation to HA. Thank you!
I'm checking if it'd be possible to add some support to Xiaomi Toothbrush T500.
I've got some logs via HA:
I've also dumped some info here a few weeks ago: Hypfer/Cybele#16
Would you also require a hcidump?
Thank you,
Mark
The text was updated successfully, but these errors were encountered: