MQTT und Openhab3
Verfasst: 31. Mär 2021 19:00
Ich habe folgendes Problem
Openhab ist bei mir Docker Installiert und ich habe die Items / Things etc von meiner openhab2 Version hinterlegt. Die Installation hat die Things nicht automatisch installiert, das habe ich manuell installiert soweit so gut.
AVM (Fritzbox) hat funktioniert. Jedoch mag der MQTT nicht starten
Im Event LOG finde ich diese Meldung
[ab.event.ThingStatusInfoChangedEvent] - Thing 'mqtt:broker:rafmqtt' changed from OFFLINE (COMMUNICATION_ERROR): io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: localhost/127.0.0.1:1883 to OFFLINE
Im openhan.log steht
Starting MQTT broker connection to 'localhost' with clientid openHAB2
Auszug aus meinem Thing für den MQTT
Bridge mqtt:broker:rafmqtt "MQTT Broker im Haus" @ "Haus"
[
host="localhost",
secure=false,
clientID="openHAB2",
port=1883,
keep_alive_time=30000,
reconnect_time=60000,
username="LOGIN",
password="PWD"
]
{
Thing topic Temperatur "Temperatur" (mqtt:broker:rafmqtt) @ "Temperatur"
{
}
Der CODE im Thing unter Openhab3 sagt
UID: mqtt:broker:rafmqtt
label: MQTT Broker im Haus
thingTypeUID: mqtt:broker
configuration:
lwtQos: 0
publickeypin: true
clientID: openHAB2
keepAlive: 60
secure: false
certificatepin: true
keep_alive_time: 30000
password: PWD
qos: 0
reconnectTime: 60000
port: 1883
host: localhost
lwtRetain: true
reconnect_time: 60000
username: LOGIN
enableDiscovery: true
location: Haus
Für mich sieht das gut aus ich verstehe nicht warum der MQTT nicht online geht
Openhab ist bei mir Docker Installiert und ich habe die Items / Things etc von meiner openhab2 Version hinterlegt. Die Installation hat die Things nicht automatisch installiert, das habe ich manuell installiert soweit so gut.
AVM (Fritzbox) hat funktioniert. Jedoch mag der MQTT nicht starten
Im Event LOG finde ich diese Meldung
[ab.event.ThingStatusInfoChangedEvent] - Thing 'mqtt:broker:rafmqtt' changed from OFFLINE (COMMUNICATION_ERROR): io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: localhost/127.0.0.1:1883 to OFFLINE
Im openhan.log steht
Starting MQTT broker connection to 'localhost' with clientid openHAB2
Auszug aus meinem Thing für den MQTT
Bridge mqtt:broker:rafmqtt "MQTT Broker im Haus" @ "Haus"
[
host="localhost",
secure=false,
clientID="openHAB2",
port=1883,
keep_alive_time=30000,
reconnect_time=60000,
username="LOGIN",
password="PWD"
]
{
Thing topic Temperatur "Temperatur" (mqtt:broker:rafmqtt) @ "Temperatur"
{
}
Der CODE im Thing unter Openhab3 sagt
UID: mqtt:broker:rafmqtt
label: MQTT Broker im Haus
thingTypeUID: mqtt:broker
configuration:
lwtQos: 0
publickeypin: true
clientID: openHAB2
keepAlive: 60
secure: false
certificatepin: true
keep_alive_time: 30000
password: PWD
qos: 0
reconnectTime: 60000
port: 1883
host: localhost
lwtRetain: true
reconnect_time: 60000
username: LOGIN
enableDiscovery: true
location: Haus
Für mich sieht das gut aus ich verstehe nicht warum der MQTT nicht online geht