Hi, sorry for the delay in replying, I got caught up on other things...
I (think?) I'm using the MQTT2 binding in OH. In the PaperUI --> Add-ons --> Bindings, the only one showing as installed is "MQTT Binding (binding-mqtt - 2.5.4)".
I'm running separate Docker containers for MySensors Gateway, Mosquitto and OpenHab.
Since people seem to be using text files for configuration successfully, I'm going that route too (version control, scripted/automated builds, etc). These are the configuration files I've got so far (sanitised as appropriate):
$ cat openhab/conf/things/mysensors.things
Bridge mqtt:broker:Mosquitto "Mosquitto"
[
host="192.168.10.114",
port="1883",
secure=false,
clientID="OpenHAB",
username="mqtt_user",
password="mqtt_password"
]
{
Thing topic nodePrototype1 "Prototype Node" @ "Portable" {
Channels:
Type number : temp "Temperature" [ stateTopic="mysensors-out/1/0/1/0/0", unit="°C" ]
}
}
$ cat openhab/conf/items/mysensors.items
Number Prototype_Temp "Temperature" <temperature> {channel="mqtt:topic:Mosquitto:nodePrototype1:temp"}
OH is successfully displaying the temperature in PaperUI, but I haven't tried to do anything with it yet...