Hacker News new | ask | show | jobs
by imduffy15 2233 days ago
Can help fill in some of the blanks for you. The toothbrush has bluetooth. Its bluetooth advertisement contains information about its operating state (running, idle, etc.), mode (brush, daily clean, etc.), pressure and some other things. The ESP32 chip scans bluetooth, detectes these advertisements, parses them and extras the data. It then sends it over to home-assistant.io which can use the data to trigger actions on any other connected device.
2 comments

Code can be seen on this commit https://github.com/imduffy15/esphome/commit/90c3cb62b37e9ce3... there are likely bugs :D
We had some great demos of AllJoyn[0] at CES doing stuff like this. It would have been great, had it lived. As I recall, Philips had a smart toothbrush that gamified brushing for kids. We had it integrated with Xbox and a home grown smart mirror.

[0]: https://github.com/alljoyn