The gateway has its own MQTT publisher to a definable topic. I have not had a lot to do with MQTT before other than setting up gateways to push data to a broker.
The next step is to start to create sensors in HA.
According to the documentation each topic should be an mqtt sensor, this is not the case for me. I have plenty of devices but trying to get a miflora sensor working to start with.
The message format I get from gateway are in the following format (trimmed just to the miflora message:
Therefor the message for the Miflora includes the MAC Address and the RSSI followed by a hexadecimal string which is the actual BLE payload from the Miflora.
How do I create a sensor from this and parse out the values of the different sensors in the Miflora please?
I’m just a communications engineer not a programmer.
If you’re not a programmer, then that gateway is probably not for you.
You’d have to decode the hex string to get sensor values, which I’m not convinced would be possible at all just with jinja templates.
For miflora specifically, there is a dedicated integration that only needs a bluetooth setup, builtin with, e.g. rpi3 / rpi3, or a BT dongle.
There is also the “ble monitor” custom component that handles a bunch of xiaomi ble sensors:
That’s great! Since it s ESP32 inside, we should be able to flash it with esphome to use it as Bluetooth proxy and command switchbot as well…did anyone succeeded?
@chkuendig do you mind updating the readme with more info on how to configure it?
I already have the gateway sending the info to the same MQTT as HA, but was hoping that HA would just find the new beacons that the AB tracker picks up
Sorry, just saw this now. It should be enough to enter IP, port, username and password and the integration will fetch all the config from the gateway directly.