The following guide shows how to install ioBroker along with Sonoff Plugin and then how to pair devices by MQTT with this plugin.
The presented pairing method works with both Tasmota and OpenBeken (thanks to OpenBeken compatibility with Tasmota MQTT standard).
ioBroker is able to correctly control multiple relays and detect sensors (in this case, an example with voltage/current/power measurements is shown).
In case of OpenBeken, you also have to enable TELE MQTT packets, for Tasmota, they are always enabled.
How ioBroker communication works? ioBroker is listening to TELE publishes made by device and extracts device info from there. TELE publishes contain data in JSON format. Here is an example of Tasmota/OBK JSON:
Log in, to see the code
Futhermore, ioBroker uses CMND publishes to control device with POWERx ON/OFF commands.