Nach einigen Fehlversuchen ist es mir jetzt gelungen die SonOff per MQTT Broker einzubinden.
Durch viele Tests und Fehlversuche habe ich jetzt einige ITEMS in meiner PapierUI, die ich nicht löschen kann.
Es fehlt das Mülleimersymbol.
Weiterhin habe ich nach Neustart Fehler im Log, die ich auch gerne bereinigen möchte, aber nicht die geringste Idee habe, wo ich da suchen oder anfangen kann.
Code: Alles auswählen
2019-08-29 20:03:19.487 [INFO ] [.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to 'localhost' with clientid paho441080126204217 and file store '/var/lib/openhab2/mqtt/localhost'
2019-08-29 20:03:19.584 [hingStatusInfoChangedEvent] - 'mqtt:broker:639ea47f' changed from OFFLINE to OFFLINE (COMMUNICATION_ERROR): Timeout
2019-08-29 20:03:19.598 [hingStatusInfoChangedEvent] - 'mqtt:broker:639ea47f' changed from OFFLINE (COMMUNICATION_ERROR): Timeout to OFFLINE (COMMUNICATION_ERROR): Verbindung zu Server kann nicht hergestellt werden
2019-08-29 20:03:19.605 [hingStatusInfoChangedEvent] - 'mqtt:systemBroker:embedded-mqtt-broker' changed from UNINITIALIZED to INITIALIZING
2019-08-29 20:03:19.637 [hingStatusInfoChangedEvent] - 'mqtt:systemBroker:embedded-mqtt-broker' changed from INITIALIZING to OFFLINE (CONFIGURATION_ERROR): Die Systemverbindung mit dem Namen embedded-mqtt-broker existiert nicht mehr.
2019-08-29 20:03:19.680 [hingStatusInfoChangedEvent] - 'mqtt:topic:sonoff-s20-2' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
2019-08-29 20:03:19.692 [hingStatusInfoChangedEvent] - 'mqtt:topic:sonoff-s20-1' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
2019-08-29 20:03:19.758 [hingStatusInfoChangedEvent] - 'mqtt:topic:sonoff-s20-1' changed from INITIALIZING to OFFLINE (BRIDGE_OFFLINE)
2019-08-29 20:03:19.763 [hingStatusInfoChangedEvent] - 'mqtt:topic:sonoff-s20-2' changed from INITIALIZING to OFFLINE (BRIDGE_OFFLINE)
2019-08-29 20:03:21.326 [hingStatusInfoChangedEvent] - 'mqtt:systemBroker:embedded-mqtt-broker' changed from OFFLINE (CONFIGURATION_ERROR): Die Systemverbindung mit dem Namen embedded-mqtt-broker existiert nicht mehr. to OFFLINE
2019-08-29 20:03:21.335 [INFO ] [.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to '127.0.0.1' with clientid embedded-mqtt-broker and file store '/var/lib/openhab2/mqtt/127.0.0.1'
2019-08-29 20:03:21.567 [WARN ] [moquette.spi.impl.SessionsRepository] - Session does not exist. CId=embedded-mqtt-broker
2019-08-29 20:03:21.585 [WARN ] [moquette.spi.impl.SessionsRepository] - Session does not exist. CId=embedded-mqtt-broker
2019-08-29 20:03:21.634 [hingStatusInfoChangedEvent] - 'mqtt:systemBroker:embedded-mqtt-broker' changed from OFFLINE to ONLINE
2019-08-29 20:03:21.651 [hingStatusInfoChangedEvent] - 'mqtt:topic:sonoff-s20-2' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE
2019-08-29 20:03:21.656 [hingStatusInfoChangedEvent] - 'mqtt:topic:sonoff-s20-1' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE
2019-08-29 20:04:19.615 [hingStatusInfoChangedEvent] - 'mqtt:broker:639ea47f' changed from OFFLINE (COMMUNICATION_ERROR): Verbindung zu Server kann nicht hergestellt werden to OFFLINE
Ich finde es auch schöner, einfacher und nachvollziehbarer, wenn ich meine Things und Items in den entsprechenden Files anlege.
Geht das mit dem MQTT 2.4 überhaupt noch? Hat jemand einen Link für mich, wenn das möglich ist?
Vielen Dank im Voraus.