I have been having problems setting up a test for mqtt. this is that I have at the moment (please bear with me as I am new to all of this)
My Items has:
Number LivingTemp “Living Temp [%.2f C]” {mqtt="<[mosquitto:/1/2:state:default]"}
My sitemap has
Text item=Livingtemp
my mqtt.cfg has
mosquitto.url=tcp://localhost:1883
mosquitto.retain=true
and I have downloaded the binding using the paper UI.
I have been using MQTT.fx to send a reading “23” to /1/2 but it will so up on openhab, I can get it so show on the pi that I am running openhabian on by mosquito_sub to /1/2.
If you installed the MQTT Binding via the Paper UI, that should be the only thing you need (doing so should handle other dependencies). You would have to share your corrected .items and .cfg again for others to check.
Did you install the mqtt binding via the PaperUI or via the addons.cfg file?
If you installed via PaperUI, make sure your addons.cfg has the binding line commented out (or that you have no addons.cfg file at all) else it will uninstall every time you restart.
I have added it via the paper ui and the addons.cfg file. I will try removing the mqtt in the addons file and try again. I will also copy by items files ect and my log,