I had the same problem as you, the openHAB items were not populated with the MQTT values. Eventually I switched to the homie standard and everything is working. As a side note, it did take a while before openHAB populated the first items.
NB. I’m using the fork with the temperature/humidty sensor support: https://github.com/MartinHaimberger/miflora-mqtt-daemon but that shouldn’t matter.
My config if you are interested:
config.ini
[General]
reporting_method = mqtt-homie
adapter = hci0
[Daemon]
[MQTT]
hostname = 10.0.0.153
port = 1883
keepalive = 60
username = miflora3
password = xxx
base_topic = homie
homie_device_id = mi_sensors
[MiFlora]
Olijfboom@Tuin = C4:7C:8D:xxx
Lepelplant@Badkamer = C4:7C:8D:xxx
[MiTempBt]
Woonkamer@Woonkamer = 4C:65:A8:xxx
Slaapkamer@Slaapkamer = 4C:65:A8:xxx
Badkamer@Badkamer = 4C:65:A8:xxx
Things
Thing mqtt:topic:lepelplant "Lepelplant" (mqtt:broker:MosquittoMqttBroker) @ "Badkamer" {
Channels:
Type number : light "Light Intensity" [ stateTopic="homie/mi_sensors/Lepelplant/light" ]
Type number : battery "Battery Charge" [ stateTopic="homie/mi_sensors/Lepelplant/battery" ]
Type number : temperature "Temperature" [ stateTopic="homie/mi_sensors/Lepelplant/temperature" ]
Type number : conductivity "Soil Fertility" [ stateTopic="homie/mi_sensors/Lepelplant/conductivity" ]
Type number : moisture "Soil Moisture" [ stateTopic="homie/mi_sensors/Lepelplant/moisture" ]
}
Items
Number:Illuminance PlantLepelplant_Sunlight "Light Intensity Lepelplant [%d lx]" <light> (gVirtueel, gPlantSunlight) { channel="mqtt:topic:lepelplant:light" }
Number:Dimensionless PlantLepelplant_Battery "Battery Lepelplant [%d %%]" <battery> (gBadkamer, gBatteries) { channel="mqtt:topic:lepelplant:battery" }
Number:Temperature PlantLepelplant_Temperature "Temperature Lepelplant [%.1f °C]" <temperature> (gVirtueel, gPlantTemperatures) { channel="mqtt:topic:lepelplant:temperature" }
Number PlantLepelplant_Fertility "Soil Fertility Lepelplant [%d µS/cm]" <lawnmower> (gVirtueel, gFertilities) { channel="mqtt:topic:lepelplant:conductivity" }
Number:Dimensionless PlantLepelplant_Moisture "Soil Moisture Lepelplant [%d %%]" <humidity> (gVirtueel, gMoistures) { channel="mqtt:topic:lepelplant:moisture" }