Sonoff Tasmota with MQTT Binding 2.4 (using config files)

This is only one way to do this. You can also define the bridge and thing in different lines:

bridge.things

Bridge mqtt:broker:broker “MQTT Broker: Mosquitto” [ host=“192.168.2.1”, port=1883, secure=false]

other_things.things

Thing mqtt:topic:miTemp (mqtt:broker:broker) {
Channels:
    Type number : tempObyvak “Air Temperature” [ stateTopic=“sensor/teplota/obyvak”]
}

(as also posted here: MQTT Generic Thing: java.lang.Exception: No MQTT client - #5 by Ales_Macoun)

1 Like