OpenHAB MQTT dont Work, Arduino send/recive OK, MQTT.fx send/recive

Sorry that I write in german…

I have no idee…

Server = Synologgy DS1515
Arduino send
// Aufbau der Verbindung mit MQTT falls diese nicht offen ist.
if (!mqttClient.connected()) {
mqttClient.connect(“arduinoClient”);
// Abonieren von Nachrichten mit dem angegebenen Topic
mqttClient.subscribe("/openHAB/Test_Switch1/#");
}
MQTT.fx show the right value

On the NAS I have install “OpenHAB 1.8.1”, “Mosquitto” - OK.

The OpenHAB.cfg

mqtt:mymosquitto.url=tcp://localhost:1883 -> I try this

mqtt:mymosquitto.url=tcp://127.0.0.1:1883 -> and this

mqtt:mymosquitto.url=tcp://192.168.178.40:1883 -> and this (this is the IP of NAS)

mqtt:mymosquitto.clientId=openhab (also test OpenHAB, Openhab,…)

mqtt:mymosquitto.qos=0
mqtt:mymosquitto.retain=true
mqtt:mymosquitto.async=true

demo.sitemap:
Frame label=“MQTT-Test” {
Text label="MQTT "
{
Switch item=Test_Switch1
Text item=Test_Temp1
}

Demo.item:
/* MQTT Test */
Switch Test_Switch1 “Schalter Dunkelkammer” (All) {mqtt=">[mymosquitto:/openHAB/Test_Switch1:command:ON:1],>[mymosquitto:/openHAB/Test_Switch1:command:OFF:0]"}
Number Test_Temp1 “Temperatur [%.2f] °C” (All) {mqtt="<[mymosquitto:/openHAB/Test_Temp1:state:default]"}

On the MQTT.fx or Arduino I have no masage from the OpenHAB.
Only from MQTT.fx to the Arduino

(yes I read the other tags…)
An der Stelle stehe ich jetzt und “gebe auf” bzw. frage mal die Gemeinde - kann mir jemand helfen?

If you need to write in German language, you should use the German forum at:

Wenn du in deutsch schreiben möchtest solltest du vielleicht besser das deutsche Forum nutzen: