When using the version 2 MQTT binding you need to create a broker thing which acts as bridge between your MQTTBrokerBasic and the mqtt things controlled via openHAB. This broker thing needs to be setup with the credentials of your broker.
Secondly you need to create a generic mqtt thing which would send the command. This thing should select your broker thing as the bridge and it needs a switch channel which is setup with your comandtopic ( I guess that would be “cmnd/sonoff”) and your custom On and Off value ( the Rfkey…)
I’m struggling with the above topic likewise, as I migrate all MQTT things using the MQTT2 binding in preparation of Openhab3 and hope that anyone can help me.
The discussion here helped a lot, but the example on the RF Bridge doesn’t bring me further.
In my system MQTT2 is setup and running along MQTT1 for the time being
I’m able to operate all things on MQTT2, except the Sonoff RF Bridge.
Would maybe someone be able to share an advise how the item/thing needs to be configured, if the below was my MQTT1 config?