My question is about the textual representation of the new MQTT things.
Where do i have to configure the Bridge?
I have this configuration, the bridge is configured 3 times. I tried to omit one of it, but I got errors.
And I get the message " Provide a thing type ID and a thing ID in this format:
<thingTypeId> <thingId>" in the log.
I refered to https://www.openhab.org/blog/2018-12-16-mqtt-arrives-in-the-modern-openhab-2-x-architecture.html
mqtt_broker.things:
mqtt:broker:mosquitto [ host="localhost",secure=false ]
esp.things:
Bridge mqtt:broker:mosquitto [ host="localhost", secure=false ] {
Thing mqtt:topic:esp_waesche {
Channels:
Type number : temperature "temperature" [ stateTopic="/Waesche/temperature" ]
Type number : humidity "humidity" [ stateTopic="/Waesche/humidity" ]
Type number : RSSI "RSSI" [ stateTopic="/Waesche/RSSI" ]
Type switch : relais_a "relais_a" [ stateTopic="/Waesche/Relais_A", commandTopic="/Waesche/gpio/16", on="0", off="1" ]
Type switch : relais_b "relais_b" [ stateTopic="/Waesche/Relais_B", commandTopic="/Waesche/gpio/5", on="0", off="1" ]
}
Thing mqtt:topic:esp_badezimmer {
Channels:
Type number : temperature "temperature" [ stateTopic="/Badezimmer/temperature" ]
Type number : humidity "humidity" [ stateTopic="/Badezimmer/humidity" ]
Type number : pressure "pressure" [ stateTopic="/Badezimmer/pressure" ]
Type number : Helligkeit "Helligkeit" [ stateTopic="/Badezimmer/Helligkeit" ]
Type number : RSSI "RSSI" [ stateTopic="/Badezimmer/RSSI" ]
Type switch : relais_a "relais_a" [ stateTopic="/Badezimmer/Relais_A", commandTopic="/Badezimmer/gpio/5", on="0", off="1" ]
Type switch : relais_b "relais_b" [ stateTopic="/Badezimmer/Relais_B", commandTopic="/Badezimmer/gpio/4", on="0", off="1" ]
Type switch : relais_c "relais_c" [ stateTopic="/Badezimmer/Relais_C", commandTopic="/Badezimmer/gpio/0", on="0", off="1" ]
Type switch : relais_d "relais_d" [ stateTopic="/Badezimmer/Relais_D", commandTopic="/Badezimmer/gpio/2", on="0", off="1" ]
}
Thing mqtt:topic:esp_werkstatt {
Channels:
Type number : temperature "temperature" [ stateTopic="/Werkstatt/temperature" ]
Type number : humidity "humidity" [ stateTopic="/Werkstatt/humidity" ]
Type number : RSSI "RSSI" [ stateTopic="/Werkstatt/RSSI" ]
Type switch : relais_a "relais_a" [ stateTopic="/Werkstatt/Relais_A", commandTopic="/Werkstatt/gpio/16", on="0", off="1" ]
Type switch : relais_b "relais_b" [ stateTopic="/Werkstatt/Relais_B", commandTopic="/Werkstatt/gpio/5", on="0", off="1" ]
}
}
fhem.things:
Bridge mqtt:broker:mosquitto [ host="localhost", secure=false ] {
Thing mqtt:topic:Speedtest {
Channels:
Type number : download "download" [ stateTopic="/fhem/Speedtest/download" ]
Type number : upload "upload" [ stateTopic="/fhem/Speedtest/upload" ]
Type number : ping "ping" [ stateTopic="/fhem/Speedtest/ping" ]
Type number : score "score" [ stateTopic="/fhem/Speedtest/score" ]
Type switch : statusRequest "statusRequest" [ commandTopic="/fhem/Speedtest/set", on="statusRequest" ]
}
}