Hi,
I have a couple of LoRaWan sensors which I’d like to include in Openhab. They are all registered in TTN (“The Things Network”) and are fully working. TTN provides a MQTT server to subscribe to, and I thought that would be an easy thing.
Problem is now: I configured an MQTT bridged, the things and items for one sensor to test but I don’t see any updates incoming in OH. I use “MQTT explorer” in parallel to check that on the publishers side everything works as expected - and it does. Is there any chance I can get some additional info from the log file about mqtt events? I tried to increase the loglevel using karaf " log:set DEBUG org.openhab.binding.mqtt" but it does not provide too much information. So right now I’m a little lost where to look at.
Running OH 4.3.3 via openhabian at a Raspberry 4B.
Setup is as following, everything is provided as files. First the bridge
Bridge mqtt:broker:TTN_MQTT_Broker "MQTT Broker @ TTN" [ host="eu1.cloud.thethings.network", secure = false, username = "***",
password = "***", enableDiscovery = false ]
I tried with secure = false and true, so far no change. The status of the bridge however is green/ONLINE and when I change e.g. the password I see it going offline. So at least I can confirm that the MQTT broker connection seems to be working correctly.
A shortened version of the things definition:
Thing mqtt:topic:ttn:water-sensor-deposit "LoRaWAN Water sensor deposit" (mqtt:broker:TTN_MQTT_Broker) @ "Deposito" {
Channels:
// Technical message details
Type string : full_message "full json message" [ stateTopic="v3/ccopenhab@ttn/devices/dd275-deposit/up" ]
[...]
// Sensor data
Type number : battery "battery level device" [ stateTopic="v3/ccopenhab@ttn/devices/dd275-deposit/up", transformationPattern="JSONPATH:$.uplink_message.decoded_payload.Bat" ]
[...]
}
And finally the same for the items (also shortened):
Group WATER_SENSOR_DEPOSIT "Water Sensor Deposit" <water> (water_control_system) ["Equipment"]
Number WATER_SENSOR_DEPOSIT_battery (WATER_SENSOR_DEPOSIT) ["Point"] { channel="mqtt:topic:ttn:water-sensor-deposit:battery:number" }
String WATER_SENSOR_DEPOSIT_full_message (WATER_SENSOR_DEPOSIT) ["Point"] { channel="mqtt:topic:ttn:water-sensor-deposit:full_message:string" }
[...]
From the log it looks live the MQTT subscriptions are working, also the topics are looking OK
2025-07-29 12:15:24.255 [DEBUG] [.MqttChannelStateDescriptionProvider] - Adding state description for channel mqtt:topic:ttn:water-sensor-deposit:full_message
2025-07-29 12:15:24.256 [DEBUG] [.MqttChannelStateDescriptionProvider] - Adding state description for channel mqtt:topic:ttn:water-sensor-deposit:time
2025-07-29 12:15:24.257 [DEBUG] [.MqttChannelStateDescriptionProvider] - Adding state description for channel mqtt:topic:ttn:water-sensor-deposit:rssi
2025-07-29 12:15:24.258 [DEBUG] [.MqttChannelStateDescriptionProvider] - Adding state description for channel mqtt:topic:ttn:water-sensor-deposit:consumed_airtime
2025-07-29 12:15:24.258 [DEBUG] [.MqttChannelStateDescriptionProvider] - Adding state description for channel mqtt:topic:ttn:water-sensor-deposit:battery
2025-07-29 12:15:24.259 [DEBUG] [.MqttChannelStateDescriptionProvider] - Adding state description for channel mqtt:topic:ttn:water-sensor-deposit:interrupt_flag
2025-07-29 12:15:24.260 [DEBUG] [.MqttChannelStateDescriptionProvider] - Adding state description for channel mqtt:topic:ttn:water-sensor-deposit:distance
2025-07-29 12:15:24.261 [DEBUG] [.MqttChannelStateDescriptionProvider] - Adding state description for channel mqtt:topic:ttn:water-sensor-deposit:temperature
2025-07-29 12:15:24.347 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Subscribed channel mqtt:topic:ttn:water-sensor-deposit:battery to topic: v3/ccopenhab@ttn/devices/dd275-deposit/up
2025-07-29 12:15:24.347 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Subscribed channel mqtt:topic:ttn:water-sensor-deposit:consumed_airtime to topic: v3/ccopenhab@ttn/devices/dd275-deposit/up
2025-07-29 12:15:24.348 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Subscribed channel mqtt:topic:ttn:water-sensor-deposit:temperature to topic: v3/ccopenhab@ttn/devices/dd275-deposit/up
2025-07-29 12:15:24.349 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Subscribed channel mqtt:topic:ttn:water-sensor-deposit:interrupt_flag to topic: v3/ccopenhab@ttn/devices/dd275-deposit/up
2025-07-29 12:15:24.349 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Subscribed channel mqtt:topic:ttn:water-sensor-deposit:rssi to topic: v3/ccopenhab@ttn/devices/dd275-deposit/up
2025-07-29 12:15:24.350 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Subscribed channel mqtt:topic:ttn:water-sensor-deposit:distance to topic: v3/ccopenhab@ttn/devices/dd275-deposit/up
2025-07-29 12:15:24.351 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Subscribed channel mqtt:topic:ttn:water-sensor-deposit:full_message to topic: v3/ccopenhab@ttn/devices/dd275-deposit/up
2025-07-29 12:15:24.397 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Subscribed channel mqtt:topic:ttn:water-sensor-deposit:time to topic: v3/ccopenhab@ttn/devices/dd275-deposit/up
And finally a picture from the MQTT explorer, which shows that all updates from the sensor get propagated into the MQTT broker:

As said, I’m a little clueless now where to check further in OH why this does not work. Thanks for any help.
Sören