I have openhab running in an lxc container (linux container). Everything seems to be configured correctly, but I cannot see any messages.
Tasmota device can establish a connection and sends data:
09:01:50 MQT: tele/%topic%/STATE = {"Time":"2021-04-28T09:01:50","Uptime":"0T00:02:57","UptimeSec":177,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER":"ON","Wifi":{"AP":2,"SSId":"FritzBox7412","BSSId":"2C:3A:FD:17:AC:A4","Channel":6,"RSSI":92,"Signal":-54,"LinkCount":1,"Downtime":"0T00:00:06"}}
09:01:50 MQT: tele/%topic%/SENSOR = {"Time":"2021-04-28T09:01:50","ENERGY":{"TotalStartTime":"2021-04-05T19:48:08","Total":12.505,"Yesterday":0.902,"Today":0.007,"Period":0,"Power":1,"ApparentPower":8,"ReactivePower":8,"Factor":0.11,"Voltage":237,"Current":0.034}}
09:02:05 MQT: tele/%topic%/STATE = {"Time":"2021-04-28T09:02:05","Uptime":"0T00:03:12","UptimeSec":192,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER":"ON","Wifi":{"AP":2,"SSId":"FritzBox7412","BSSId":"2C:3A:FD:17:AC:A4","Channel":6,"RSSI":92,"Signal":-54,"LinkCount":1,"Downtime":"0T00:00:06"}}
09:02:05 MQT: tele/%topic%/SENSOR = {"Time":"2021-04-28T09:02:05","ENERGY":{"TotalStartTime":"2021-04-05T19:48:08","Total":12.505,"Yesterday":0.902,"Today":0.007,"Period":0,"Power":1,"ApparentPower":8,"ReactivePower":8,"Factor":0.11,"Voltage":237,"Current":0.034}}
09:02:20 MQT: tele/%topic%/STATE = {"Time":"2021-04-28T09:02:20","Uptime":"0T00:03:27","UptimeSec":207,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER":"ON","Wifi":{"AP":2,"SSId":"FritzBox7412","BSSId":"2C:3A:FD:17:AC:A4","Channel":6,"RSSI":92,"Signal":-54,"LinkCount":1,"Downtime":"0T00:00:06"}}
09:02:20 MQT: tele/%topic%/SENSOR = {"Time":"2021-04-28T09:02:20","ENERGY":{"TotalStartTime":"2021-04-05T19:48:08","Total":12.505,"Yesterday":0.902,"Today":0.007,"Period":0,"Power":1,"ApparentPower":10,"ReactivePower":10,"Factor":0.10,"Voltage":237,"Current":0.041}}
09:02:35 MQT: tele/%topic%/STATE = {"Time":"2021-04-28T09:02:35","Uptime":"0T00:03:42","UptimeSec":222,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER":"ON","Wifi":{"AP":2,"SSId":"FritzBox7412","BSSId":"2C:3A:FD:17:AC:A4","Channel":6,"RSSI":90,"Signal":-55,"LinkCount":1,"Downtime":"0T00:00:06"}}
09:02:35 MQT: tele/%topic%/SENSOR = {"Time":"2021-04-28T09:02:35","ENERGY":{"TotalStartTime":"2021-04-05T19:48:08","Total":12.505,"Yesterday":0.902,"Today":0.007,"Period":0,"Power":1,"ApparentPower":9,"ReactivePower":9,"Factor":0.08,"Voltage":237,"Current":0.037}}
09:02:50 MQT: tele/%topic%/STATE = {"Time":"2021-04-28T09:02:50","Uptime":"0T00:03:57","UptimeSec":237,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER":"ON","Wifi":{"AP":2,"SSId":"FritzBox7412","BSSId":"2C:3A:FD:17:AC:A4","Channel":6,"RSSI":92,"Signal":-54,"LinkCount":1,"Downtime":"0T00:00:06"}}
09:02:50 MQT: tele/%topic%/SENSOR = {"Time":"2021-04-28T09:02:50","ENERGY":{"TotalStartTime":"2021-04-05T19:48:08","Total":12.505,"Yesterday":0.902,"Today":0.007,"Period":0,"Power":1,"ApparentPower":9,"ReactivePower":9,"Factor":0.09,"Voltage":237,"Current":0.039}}
But I do not receive them:
mosquitto_sub -h localhost -t tasmota_5382AA
^X
^Croot@OpenHAB:~#
I also tried mosquitto_sub -h localhost -t tasmota