Hallo,
ich möchte eine NodeMCU 1.0 mit EasyESP eingestellt auf "OpenHAB MQTT" aus openHAB steuern. Über MQTTLens kann ich alle GPIOs gezielt ansprechen und ändern.
Mir gelingt es allerdings nicht aus openHAB heraus die entsprechenden Anweisungen zu erzeugen.
In mqtt.cfg steht:
In mqtt-eventbus.cfg steht:
Unter items steht:
Damit erhalte ich im Mosquitto-Protokoll:
Wenn ich noch statePublishTopic=... angebe, werden massenhaft Ausgaben produziert, aber auch dann fehlen die MQTT-Switches.
Habe auch 1.8.3 ohne Erfolg probiert. Hat jemand einen Tipp?
ich möchte eine NodeMCU 1.0 mit EasyESP eingestellt auf "OpenHAB MQTT" aus openHAB steuern. Über MQTTLens kann ich alle GPIOs gezielt ansprechen und ändern.
Mir gelingt es allerdings nicht aus openHAB heraus die entsprechenden Anweisungen zu erzeugen.
In mqtt.cfg steht:
mosquitto.url=tcp://192.168.178.31:1883
mosquitto.clientId=openHAB2
mosquitto.user=***
mosquitto.pwd=***
mosquitto.qos=1
mosquitto.retain=true
mosquitto.async=false
mosquitto.clientId=openHAB2
mosquitto.user=***
mosquitto.pwd=***
mosquitto.qos=1
mosquitto.retain=true
mosquitto.async=false
broker=mosquitto
commandPublishTopic=/NodeMCU/gpio/13
commandSubscribeTopic=/NodeMCU/gpio/15
service.pid=org.openhab.mqtt-eventbus
#statePublishTopic=
stateSubscribeTopic=/NodeMCU/gpio/14
commandPublishTopic=/NodeMCU/gpio/13
commandSubscribeTopic=/NodeMCU/gpio/15
service.pid=org.openhab.mqtt-eventbus
#statePublishTopic=
stateSubscribeTopic=/NodeMCU/gpio/14
Switch Switch1 {mqtt=">[mosquitto:/NodeMCU/gpio/12:command:ON:1],>[mosquitto:/NodeMCU/gpio/12:command:OFF:0]"}
Switch Switch2 {mqtt=">[mosquitto:/NodeMCU/gpio/13:command:ON:1],>[mosquitto:/NodeMCU/gpio/13:command:OFF:0]"}
Switch Switch3 {mqtt=">[mosquitto:/NodeMCU/gpio/14:command:ON:1],>[mosquitto:/NodeMCU/gpio/14:command:OFF:0]"}
Switch Switch4 {mqtt=">[mosquitto:/NodeMCU/gpio/15:command:ON:1],>[mosquitto:/NodeMCU/gpio/15:command:OFF:0]"}
Switch Switch2 {mqtt=">[mosquitto:/NodeMCU/gpio/13:command:ON:1],>[mosquitto:/NodeMCU/gpio/13:command:OFF:0]"}
Switch Switch3 {mqtt=">[mosquitto:/NodeMCU/gpio/14:command:ON:1],>[mosquitto:/NodeMCU/gpio/14:command:OFF:0]"}
Switch Switch4 {mqtt=">[mosquitto:/NodeMCU/gpio/15:command:ON:1],>[mosquitto:/NodeMCU/gpio/15:command:OFF:0]"}
1495568882: New connection from 192.168.178.31 on port 1883.
1495568882: New client connected from 192.168.178.31 as openHAB2 (c1, k60, u'***').
1495568882: Sending CONNACK to openHAB2 (0, 0)
1495568891: Received SUBSCRIBE from openHAB2
1495568891: /NodeMCU/gpio/14 (QoS 0)
1495568891: openHAB2 0 /NodeMCU/gpio/14
1495568891: Sending SUBACK to openHAB2
1495568891: Received SUBSCRIBE from openHAB2
1495568891: /NodeMCU/gpio/15 (QoS 0)
1495568891: openHAB2 0 /NodeMCU/gpio/15
1495568891: Sending SUBACK to openHAB2
1495568882: New client connected from 192.168.178.31 as openHAB2 (c1, k60, u'***').
1495568882: Sending CONNACK to openHAB2 (0, 0)
1495568891: Received SUBSCRIBE from openHAB2
1495568891: /NodeMCU/gpio/14 (QoS 0)
1495568891: openHAB2 0 /NodeMCU/gpio/14
1495568891: Sending SUBACK to openHAB2
1495568891: Received SUBSCRIBE from openHAB2
1495568891: /NodeMCU/gpio/15 (QoS 0)
1495568891: openHAB2 0 /NodeMCU/gpio/15
1495568891: Sending SUBACK to openHAB2
Habe auch 1.8.3 ohne Erfolg probiert. Hat jemand einen Tipp?
Kommentar