I am trying to connect OpenMQTTGateway with BLE gateway to Domoricz BETA using MQTT AD.
Unfortunately, only the switches responsible for configuring the OpenMQTTGateway are added to Domoticz. Even though I can see new BLE devices detected by the gateway in MQTT Explorer, they are not added to Domoricz. Behind the gateway there are the temperature sensors: Xiaomi Mija, Xiaomi Flora and powermeters.
Below are some examples of topics that appear in the OpenMQTTGateway tree:
homeassistant/sensor/582D34396AB3-MiJia-batt/config
Code: Select all
{"stat_t":"+/+/BTtoMQTT/582D34396AB3","name":"MiJia-batt","uniq_id":"582D34396AB3-MiJia-batt","dev_cla":"battery","val_tpl":"{{ value_json.batt | is_defined }}","unit_of_meas":"%","device":{"connections":[["mac","582D34396AB3"]],"identifiers":["582D34396AB3"],"model":"LYWSDCGQ","name":"MiJia","via_device":"OpenMQTTGateway_LOLIN32LITE_BLE"}}
Code: Select all
{"stat_t":"+/+/BTtoMQTT/582D34396AB3","name":"MiJia-temp","uniq_id":"582D34396AB3-MiJia-temp","dev_cla":"temperature","val_tpl":"{{ value_json.tempc | is_defined }}","unit_of_meas":"°C","device":{"connections":[["mac","582D34396AB3"]],"identifiers":["582D34396AB3"],"model":"LYWSDCGQ","name":"MiJia","via_device":"OpenMQTTGateway_LOLIN32LITE_BLE"}}
Code: Select all
{"stat_t":"+/+/BTtoMQTT/582D34396AB3","name":"MiJia-hum","uniq_id":"582D34396AB3-MiJia-hum","dev_cla":"humidity","val_tpl":"{{ value_json.hum | is_defined }}","unit_of_meas":"%","device":{"connections":[["mac","582D34396AB3"]],"identifiers":["582D34396AB3"],"model":"LYWSDCGQ","name":"MiJia","via_device":"OpenMQTTGateway_LOLIN32LITE_BLE"}}
Code: Select all
{"id":"58:2D:34:39:6A:B3","name":"MJ_HT_V1","rssi":-90,"model":"LYWSDCGQ","tempc":20.9,"tempf":69.62,"hum":48.9}
Code: Select all
2022-02-13 12:37:46.565 Status: EMS-ESP: discovered: Miflora/HHCCJCY01HHCC-b
att (unique_id: C47C8D6AFADA-batt)
2022-02-13 12:37:46.666 Status: EMS-ESP: discovered: Miflora/HHCCJCY01HHCC-l
ux (unique_id: C47C8D6AFADA-lux)
2022-02-13 12:37:46.767 Status: EMS-ESP: discovered: Miflora/HHCCJCY01HHCC-t
empc (unique_id: C47C8D6AFADA-tempc)
2022-02-13 12:37:46.869 Status: EMS-ESP: discovered: Miflora/HHCCJCY01HHCC-f
er (unique_id: C47C8D6AFADA-fer)
2022-02-13 12:37:46.970 Status: EMS-ESP: discovered: Miflora/HHCCJCY01HHCC-m
oi (unique_id: C47C8D6AFADA-moi)
2022-02-13 12:37:47.072 Status: EMS-ESP: discovered: Mi Jia round/LYWSDCGQ-b
att (unique_id: 4C65A8DA8812-batt)
2022-02-13 12:37:47.173 Status: EMS-ESP: discovered: Mi Jia round/LYWSDCGQ-t
empc (unique_id: 4C65A8DA8812-tempc)
2022-02-13 12:37:47.275 Status: EMS-ESP: discovered: Mi Jia round/LYWSDCGQ-h
um (unique_id: 4C65A8DA8812-hum)
I use MQTT Topic homeassistant/ which already works (no problem) EMS-ESP - also by MQTT AD.
I would be grateful for a hint of what I am doing wrong.
Tom