Read the statement by Michael Teeuw here.
MMM-OralB / Bluetooth equipped toothbrush integration
-
@lavolp3 Oké check, well no need to try again tonight because your up-to-date then. I will let you know when I have looked at it. For now you can prevent the errors by removing the battery in the tracks array.
-
I have just pushed some new changes which improve connecting, and a few tests cases for device connection. It requires a
npm install.@lavolp3 and @djerik if you have some time could you try it out? Also I though you already had it on but if not it might be handy to enable
debugLogs.Also I want to thank you for the time you put into this and help me by providing logs and errors so I can improve the module.
-
@timodejong95 IT WORKED! At least partially, that is.
0|mm | 00:13:17 <log> MMM-BluetoothDevices received device update for DIRKS OralB (/home/pi/MagicMirror/modules/MMM-BluetoothDevices/src/Logger.js:17 Logger.log) 0|mm | [2020-04-26 00:13:17.988] [LOG] 0|mm | 00:13:17 <info> MMM-BluetoothDevices reconnecting to: DIRKS OralB (/home/pi/MagicMirror/modules/MMM-BluetoothDevices/src/Logger.js:24 Logger.info) 0|mm | [2020-04-26 00:13:17.995] [LOG] 0|mm | 00:13:17 <log> MMM-BluetoothDevices trying to connect to: DIRKS OralB 1/1 (/home/pi/MagicMirror/modules/MMM-BluetoothDevices/src/Logger.js:17 Logger.log) 0|mm | [2020-04-26 00:13:21.469] [LOG] 0|mm | 00:13:21 <log> MMM-BluetoothDevices connected to device: DIRKS OralB (/home/pi/MagicMirror/modules/MMM-BluetoothDevices/src/Logger.js:17 Logger.log) 0|mm | [2020-04-26 00:13:21.534] [LOG] 0|mm | 00:13:21 <log> MMM-BluetoothDevices awaiting services for device: DIRKS OralB (/home/pi/MagicMirror/modules/MMM-BluetoothDevices/src/Logger.js:32 Logger.debug) 0|mm | [2020-04-26 00:13:21.552] [LOG] 00:13:21 <log> MMM-BluetoothDevices waiting for services to be resolved for: DIRKS OralB (/home/pi/MagicMirror/modules/MMM-BluetoothDevices/src/Logger.js:32 Logger.debug) 0|mm | [2020-04-26 00:13:29.503] [LOG] 0|mm | 00:13:29 <log> MMM-BluetoothDevices connected to: DIRKS OralB after 1 try (/home/pi/MagicMirror/modules/MMM-BluetoothDevices/src/Logger.js:17 Logger.log) 0|mm | [2020-04-26 00:13:29.961] [LOG] 0|mm | 00:13:29 <log> MMM-BluetoothDevices battery updated to: 100% for: DIRKS OralB (/home/pi/MagicMirror/modules/MMM-BluetoothDevices/src/Logger.js:32 Logger.debug) 0|mm | [2020-04-26 00:13:29.966] [LOG] 00:13:29 <log> MMM-BluetoothDevices received device update for DIRKS OralB (/home/pi/MagicMirror/modules/MMM-BluetoothDevices/src/Logger.js:17 Logger.log) 0|mm | [2020-04-26 00:13:29.979] [LOG] 00:13:29 <log> MMM-BluetoothDevices received device update for DIRKS OralB (/home/pi/MagicMirror/modules/MMM-BluetoothDevices/src/Logger.js:17 Logger.log) 0|mm | [2020-04-26 00:13:30.255] [LOG] 0|mm | 00:13:30 <log> MMM-BluetoothDevices battery updated to: 100% for: DIRKS OralB (/home/pi/MagicMirror/modules/MMM-BluetoothDevices/src/Logger.js:32 Logger.debug) 0|mm | [2020-04-26 00:13:30.259] [LOG] 00:13:30 <log> MMM-BluetoothDevices received device update for DIRKS OralB (/home/pi/MagicMirror/modules/MMM-BluetoothDevices/src/Logger.js:17 Logger.log) 0|mm | [2020-04-26 00:13:31.229] [LOG] 0|mm | 00:13:31 <log> MMM-BluetoothDevices battery updated to: 99% for: DIRKS OralB (/home/pi/MagicMirror/modules/MMM-BluetoothDevices/src/Logger.js:32 Logger.debug) 0|mm | [2020-04-26 00:13:31.234] [LOG] 00:13:31 <log> MMM-BluetoothDevices received device update for DIRKS OralB (/home/pi/MagicMirror/modules/MMM-BluetoothDevices/src/Logger.js:17 Logger.log) 0|mm | [2020-04-26 00:13:31.466] [LOG] 0|mm | 00:13:31 <log> MMM-BluetoothDevices received device update for DIRKS OralB (/home/pi/MagicMirror/modules/MMM-BluetoothDevices/src/Logger.js:17 Logger.log) 0|mm | [2020-04-26 00:13:31.520] [LOG] 0|mm | 00:13:31 <log> MMM-BluetoothDevices connection lost with device: DIRKS OralB (/home/pi/MagicMirror/modules/MMM-BluetoothDevices/src/Logger.js:17 Logger.log) 0|mm | [2020-04-26 00:13:33.303] [LOG] 0|mm | 00:13:33 <log> MMM-BluetoothDevices received device update for DIRKS OralB (/home/pi/MagicMirror/modules/MMM-BluetoothDevices/src/Logger.js:17 Logger.log) 0|mm | [2020-04-26 00:13:33.315] [LOG] 0|mm | 00:13:33 <info> MMM-BluetoothDevices reconnecting to: DIRKS OralB (/home/pi/MagicMirror/modules/MMM-BluetoothDevices/src/Logger.js:24 Logger.info) 0|mm | [2020-04-26 00:13:33.318] [LOG] 00:13:33 <log> MMM-BluetoothDevices trying to connect to: DIRKS OralB 1/1 (/home/pi/MagicMirror/modules/MMM-BluetoothDevices/src/Logger.js:17 Logger.log) 0|mm | [2020-04-26 00:13:43.919] [LOG] 0|mm | 00:13:43 <log> MMM-BluetoothDevices received device update for DIRKS OralB (/home/pi/MagicMirror/modules/MMM-BluetoothDevices/src/Logger.js:17 Logger.log) 0|mm | [2020-04-26 00:13:54.916] [LOG] 0|mm | 00:13:54 <log> MMM-BluetoothDevices received device update for DIRKS OralB (/home/pi/MagicMirror/modules/MMM-BluetoothDevices/src/Logger.js:17 Logger.log) 0|mm | [2020-04-26 00:14:05.881] [LOG] 0|mm | 00:14:05 <log> MMM-BluetoothDevices received device update for DIRKS OralB (/home/pi/MagicMirror/modules/MMM-BluetoothDevices/src/Logger.js:17 Logger.log) 0|mm | [2020-04-26 00:14:13.884] [LOG] 0|mm | 00:14:13 <info> MMM-BluetoothDevices failed to reconnect to: DIRKS OralB (/home/pi/MagicMirror/modules/MMM-BluetoothDevices/src/Logger.js:24 Logger.info) 0|mm | [2020-04-26 00:14:13.886] [LOG] 00:14:13 <log> MMM-BluetoothDevices Error: Error: Couldn't connect to DIRKS OralB after 1 try. (/home/pi/MagicMirror/modules/MMM-BluetoothDevices/src/Logger.js:32 Logger.debug) 0|mm | [2020-04-26 00:14:16.957] [LOG] 0|mm | 00:14:16 <log> MMM-BluetoothDevices received device update for DIRKS OralB (/home/pi/MagicMirror/modules/MMM-BluetoothDevices/src/Logger.js:17 Logger.log) 0|mm | [2020-04-26 00:14:28.049] [LOG] 0|mm | 00:14:28 <log> MMM-BluetoothDevices received device update for DIRKS OralB (/home/pi/MagicMirror/modules/MMM-BluetoothDevices/src/Logger.js:17 Logger.log) 0|mm | [2020-04-26 00:14:38.869] [LOG] 0|mm | 00:14:38 <log> MMM-BluetoothDevices received device update for DIRKS OralB (/home/pi/MagicMirror/modules/MMM-BluetoothDevices/src/Logger.js:17 Logger.log) 0|mm | [2020-04-26 00:14:49.968] [LOG] 0|mm | 00:14:49 <log> MMM-BluetoothDevices received device update for DIRKS OralB (/home/pi/MagicMirror/modules/MMM-BluetoothDevices/src/Logger.js:17 Logger.log) 0|mm | [2020-04-26 00:15:00.855] [LOG] 0|mm | 00:15:00 <log> MMM-BluetoothDevices received device update for DIRKS OralB (/home/pi/MagicMirror/modules/MMM-BluetoothDevices/src/Logger.js:17 Logger.log) 0|mm | [2020-04-26 00:15:12.156] [LOG] 0|mm | 00:15:12 <log> MMM-BluetoothDevices received device update for DIRKS OralB (/home/pi/MagicMirror/modules/MMM-BluetoothDevices/src/Logger.js:17 Logger.log) 0|mm | [2020-04-26 00:15:22.928] [LOG] 0|mm | 00:15:22 <log> MMM-BluetoothDevices received device update for DIRKS OralB (/home/pi/MagicMirror/modules/MMM-BluetoothDevices/src/Logger.js:17 Logger.log) 0|mm | [2020-04-26 00:15:33.865] [LOG] 0|mm | 00:15:33 <log> MMM-BluetoothDevices received device update for DIRKS OralB (/home/pi/MagicMirror/modules/MMM-BluetoothDevices/src/Logger.js:17 Logger.log)Battery updates are there but only in the beginning.
I would assume my battery drains more than this one percent in 2 minutes but may be wrong.
Nothing displayed on the mirror.
Might still be missing? -
@lavolp3 Nice, yeah thats still a thing. I thought it was the way it connects, but the devices automatically disconnects after 20-30 seconds. When disconnected its not able to get the battery status. So what I build that if the devices is disconnected at the first 5 seconds of brushing it’s going to reconnect (1 try). If that succeeds it gets the battery value. If not well, then sadly not.
I haven’t figured out a solution to keep it connected throughout the whole session or just forever. My guess is, the brush might expect data to be send to keep the connection active/alive.
In the logs I see that the reconnection has failed, do you got that every session? Else I might increase the reconnection attempts to 2.
-
Did anyone got this running.
I have tested on MM2 - 2.14 and 2.15. No sucess.
Just the Time runs…Do i have to do anything special like pairing the toothbrush (not possible, pairing nit sucessful).
Im using RPI4 with BT build in.
-
@oberfragger yeah I had this running.
Might retry these days.You need to pair the toothbrush with your RasPi. If that didn’t work the module itself probably won’t work.
Where did it fail?
-
@lavolp3 No pairing possible. Maybe my Toothbrush is too new? Oral-B Genius 9000.
Do i have to “click” something on the toothbrush to pair? Its already paired with the app.
-
@oberfragger
Actually the better module currently to work with the toothbrush is MMM-BluetoothDevices
I think I have that working.However, pairing is necessary.
At which point are you failing, what description have you used?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login