Git Product home page Git Product logo

Comments (6)

Hypfer avatar Hypfer commented on August 16, 2024 1

I've also built a BLE to MQTT bride to use the Kettle and more ble things with Home Assistant. Autodiscovery works, but HA currently doesn't have a proper device class for it so it's just a sensor with attributes and mqtt services you can call to set stuff.

https://github.com/Hypfer/Cybele

https://github.com/Hypfer/Cybele/blob/master/docs/devices/MiSmartKettle.md

I'm currently evaluating measures to get it to work sorta-reliably since bluetooth adapters are a pain.

from mikettle.

drndos avatar drndos commented on August 16, 2024

Hello, I published the module to pypi and added custom_component for HA. I don't plan on releasing domoticz component. Feel free to copy and modify my code, maybe take a look at https://github.com/drndos/mikettle-ha

from mikettle.

radokristof avatar radokristof commented on August 16, 2024

@Hypfer can this bluetooth to mqtt bridge be used outside of HA?
Also I can't seem to get this working. Do the Kettle needs to be paired to a device or in pairing mode? However I think this doesn't really matter in BLE right? The README says a Bluetooth dongle is needed. Can I use RPi integrated Bluetooth (on RPi4 it has Bluetooth 5 with LE)?

from mikettle.

Hypfer avatar Hypfer commented on August 16, 2024

It's MQTT so you can use it whereever you like. Topics + Payloads are documented here:
https://github.com/Hypfer/Cybele/blob/master/docs/devices/MiSmartKettle.md#mqtt

The kettle can't be paired. There are BLE-devices which can, but Viomi opted for their own proprietary handshake foo here.

The readme recommends a usb bluetooth adapter. You can use the RPi integrated bluetooth but it will fail eventually which then forces you to reboot since there is no other way to reset the HCI Adapter.
Using USB HCI adapters is a hack to overcome this issue by (utilizing a uhubctl-compatible hub) giving us a way to forcefully reset the adapter without rebooting the whole host.
Thats what's mentioned here:
https://github.com/Hypfer/Cybele/blob/master/docs/index.md#hardware-recommendations

RPi 4 uses the same bluetooth chip as RPi 3. They just patched the version string to Bluetooth 5 for some reason. Recommended talk:
https://media.ccc.de/v/2019-185-playing-with-bluetooth

As for connectivity issues I recommend moving the kettle closer, checking that the correct productId is used and also if you can see it advertising at all. Note that only one device can connect to it at a time. It will stop advertising itself while connected.

from mikettle.

radokristof avatar radokristof commented on August 16, 2024

Thanks! My problem might be that I just tried it with the RPi integrated BLE. I will buy an adapter and see with that. Does it matter what adapter is used? I found some inexpensive ones online which uses a Broadcom chip (only BLE 4.0).
Thanks for the docs, I haven't found your project, this will suit my exceptations fully if I can get it working.
Just a few questions I don't understand:

  • how it will know when the device is online or offline? Offline means when it is not plugged in, or if it's on its base but not used right now?
  • So basically how should I try connecting? I have cleared the pairings with the Kettle so it doesnt connect now to any device.

from mikettle.

Hypfer avatar Hypfer commented on August 16, 2024

I have no idea. Some adapters seem to work okay-ish, others fail completely.

The kettle doesn't have a battery or any other energy source. Therefore it is only connectable while on its base.
I don't understand the second question :(

from mikettle.

Related Issues (11)

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.