Xiaomi BLE Probe - Publishing to MQTT

I’m starting to use HomeAssistant.

HA was installed with Docker on Synology DS220+ DSM 6
Core 2024.2.2 / UI 20240207.1

For the moment, I have mainly retrieved the information from the Xiaomi probes using the Passive BLE monitor integration


I have a Mosquitto broker and I wanted to publish probe information on my Brocker MQTT

I read the doc which indicates that the equipment must be added to the configuration.yaml file

But I must not be doing things correctly because MQTT Explorer does not retrieve any information, except for the correct communication with HA in the Online status.

image

# Loads default set of integrations. Do not remove.
default_config:

# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

service: mqtt.publish
data:
  topic: homeassistant/sensor/
  payload: >-
    {"device_class": "temperature",
    "unit_of_measurement": "\u00b0C",
    "value_template": "{{ value|float }}",
    "state_topic": "",
    "unique_id": "sensor.ble_temperature_582d34370cfa",
    "device": {
    "identifiers": "",
    "name": "",
    "model": "",
    "manufacturer": "" }
    }

image

I have several examples of creating MQTT numbers, buttons, etc in my Octoprint blueprint. Link to my blueprints is below in my tagline.

To get these fine tuned I use mqtt-explorer to monitor what the broker sees and tweak what is sent until the broker sees valid JSON. (It will be in color if its happy)

That’s nice, but I already can’t figure out how to use publishing to MQTT

Hello,

do you need more information to help me?