2019-04-05 14:43:19.068 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model ‘settare_orario.rules’ is either empty or cannot be parsed correctly!
2019-04-05 14:43:21.040 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model ‘settare_orario.rules’
What are the MQTTClientIDs of all your devices connected to the broker and the MQTTClienttID of the broker? Each of them has to have its own name, no duplicated IDs are allowed!
The question was NOT related to your openHAB Things!
The posted error: MQTT connection to ‘openhabianpi-mqtt’ was lost: Connection lost : ReasonCode 32109 : Cause : null
COULD be related to mutiple MQTTdevices with the same MQTT-ClientID!
So what is the MQTT ClientID of your broker (NOT the Broker-Thing!)
What is the MQTT ClientID of the “SonoffSERCAM” ( if your SONOFF is running Tasmota you could look that up on the web-interface of the device / browse to the ip address of the device!).
Maybe, in fact I’m asking for help…
you know where I can find the name you’re talking about?
in \openhabianpi\openHAB-conf\things i tried the file mqtt.tXT.
Here it reports that:
The file, from which you show the contents, is named " mqtt.tXT". Although it is in the directory for things-files, it is NOT used as a .things file! In order to be used it has to have the ending .things!
The contents WOULD define the broker-thing with the name “MosquittoMqttBroker”.
The used name-part “Mosquitto” indicate that you(or who?) had installed at a point the mosquitto mqtt broker. In that case use the following command in order to check if the broker is running:
The part: " Active: active (running)" would indicate a running service of the broker.
Do you have the same display??
I am using this broker, however the PaperUI page for my broker-thing looks a bit different, from that I can only guess that you ALSO installed the " Embedded MQTT Broker" from withing openHAB (found under Addons-Misc).
Is this broker also installed??
If both brokers are installed, the messages posted in the starting post could be caused by that.
Where the name “openhabianpi-mqtt” is coming from is remaining a mystery!
OK, understood, the PaperUI page from for broker-thing was scrolled down, that’s the only difference to mine!
Since you did not show the top lines of the MQTT Broker Thing, to which “Broker Hostname/IP” is it connected? And what is the IP of your system running openHAB?
And coudl you post the contents of your file
/var/lib/openhab2/config/org/openhab/mqtt.config
Be carefull with it in order to do NO changes on that one! Please post the contents and not a screenshot, because that is hard to read!
OK, still nothing which shows the name “openhabianpi-mqtt”.
Which bindings do you have installed? The WARN could come from the mqtt-version 1 binding.
Do you have an mqtt.cfg in the etc/openhab2/services folder?
Please check PaperUI AND the file var/lib/openhab2/config/org/openhab/addons.config (no changes while oepnhab is running on that file as well)
You do not NEED the mqtt version q, but the WARN messages in your log COULD come from that binding, if openhab tries to install it.
The last screenshot does not show the correct folder
It has to be var/lib/openhab2/config/org/openhab/addons.config
I upgraded from openhab 2.3 to 2.4, since the mqtt version 2 was released on that update I had mqtt1 installed before and afterwards I hab mqtt and mqtt1 in the above mentioned file. I needed to stop openhab, remove the “mqtt1” in that file and restart openhab.
Since you have a mqtt.cfg I guess you had the version 1 mqtt binding installed at a time.