Help! openHAB 2.4 binding MQTT
-
@waspie Thanks, but that did not help me either.
If I Install a "System MQTT Broker" it has one, and only one option.. "Broker ID"

I don't know what to write here.. but I can try to write "mosquitto"
Then I get this:

I have removed the file in services

-
@waspie said in Help! openHAB 2.4 binding MQTT:
this is 2.4.0 and not a 2.5.x build, right?
Yes it is the 2.4 build. Both OH is 2.4 and mysensors is 2.4 (any newer is not available to my knowledge)
OH is an installation from a docker image (openhab/openhab:2.4.0)
Trace file does not look very healthy...

-
i dont know what folder path your stuff would be in exactly but can you list openhab???/userdata/config/org/openhab/
ex:
/volume1/public/openHAB/userdata/config/org/openhab$ ls -la total 852 drwxrwxrwx+ 1 openhab users 504 Feb 13 13:55 . drwxrwxrwx+ 1 openhab users 74 Feb 13 12:39 .. -rwxrwxrwx+ 1 openhab users 402 Feb 13 13:55 addons.config -rwxrwxrwx+ 1 openhab users 118 Feb 13 12:39 basicui.config -rwxrwxrwx+ 1 openhab users 120 Feb 13 12:39 dashboard.config -rwxrwxrwx+ 1 openhab users 796758 Feb 13 08:28 habpanel.config -rwxrwxrwx+ 1 openhab users 230 Feb 13 12:39 http.config -rwxrwxrwx+ 1 openhab users 184 Feb 13 12:39 influxdb.config -rwxrwxrwx+ 1 openhab users 162 Feb 13 12:39 jdbc.config -rwxrwxrwx+ 1 openhab users 131 Feb 13 12:39 logging.config -rwxrwxrwx+ 1 openhab users 115 Feb 13 12:39 mail.config -rwxrwxrwx+ 1 openhab users 116 Feb 13 12:39 mapdb.config -rwxrwxrwx+ 1 openhab users 118 Feb 13 12:39 network.config -rwxrwxrwx+ 1 openhab users 114 Feb 13 12:39 nma.config -rwxrwxrwx+ 1 openhab users 158 Feb 13 12:39 plex.config -rwxrwxrwx+ 1 openhab users 200 Feb 13 12:39 pushover.config -rwxrwxrwx+ 1 openhab users 116 Feb 13 12:39 rrd4j.config -rwxrwxrwx+ 1 openhab users 118 Feb 13 12:39 runtime.config -rwxrwxrwx+ 1 openhab users 119 Feb 13 12:39 services.config -rwxrwxrwx+ 1 openhab users 119 Feb 13 12:39 voicerss.config -rwxrwxrwx+ 1 openhab users 308 Feb 13 12:39 weather.config -
i dont know what folder path your stuff would be in exactly but can you list openhab???/userdata/config/org/openhab/
ex:
/volume1/public/openHAB/userdata/config/org/openhab$ ls -la total 852 drwxrwxrwx+ 1 openhab users 504 Feb 13 13:55 . drwxrwxrwx+ 1 openhab users 74 Feb 13 12:39 .. -rwxrwxrwx+ 1 openhab users 402 Feb 13 13:55 addons.config -rwxrwxrwx+ 1 openhab users 118 Feb 13 12:39 basicui.config -rwxrwxrwx+ 1 openhab users 120 Feb 13 12:39 dashboard.config -rwxrwxrwx+ 1 openhab users 796758 Feb 13 08:28 habpanel.config -rwxrwxrwx+ 1 openhab users 230 Feb 13 12:39 http.config -rwxrwxrwx+ 1 openhab users 184 Feb 13 12:39 influxdb.config -rwxrwxrwx+ 1 openhab users 162 Feb 13 12:39 jdbc.config -rwxrwxrwx+ 1 openhab users 131 Feb 13 12:39 logging.config -rwxrwxrwx+ 1 openhab users 115 Feb 13 12:39 mail.config -rwxrwxrwx+ 1 openhab users 116 Feb 13 12:39 mapdb.config -rwxrwxrwx+ 1 openhab users 118 Feb 13 12:39 network.config -rwxrwxrwx+ 1 openhab users 114 Feb 13 12:39 nma.config -rwxrwxrwx+ 1 openhab users 158 Feb 13 12:39 plex.config -rwxrwxrwx+ 1 openhab users 200 Feb 13 12:39 pushover.config -rwxrwxrwx+ 1 openhab users 116 Feb 13 12:39 rrd4j.config -rwxrwxrwx+ 1 openhab users 118 Feb 13 12:39 runtime.config -rwxrwxrwx+ 1 openhab users 119 Feb 13 12:39 services.config -rwxrwxrwx+ 1 openhab users 119 Feb 13 12:39 voicerss.config -rwxrwxrwx+ 1 openhab users 308 Feb 13 12:39 weather.config@waspie said in Help! openHAB 2.4 binding MQTT:
i dont know what folder path your stuff would be in exactly but can you list openhab???/userdata/config/org/openhab/
Looks like this:

I tried some experiments. I made a simple flow in node-red. Listen to "mysensors-out/#" then print it to debug. And yes, it works.

I also tried to add a channel to the "MQTT Broker" thing, also "mysensors-out/#"

It showed up without any problems... not very usable, but can see the connection...
But the "Mysensors MQTT Gateway"... just dead in the water...
-
yeah, mysensors in 2.4+ is very touchy.
Have you restarted the openhab service lately?
Try deleting your mysensors gateway then restart openhab and re-add the mysensors mqtt gateway. Just for grins...
@waspie said in Help! openHAB 2.4 binding MQTT:
yeah, mysensors in 2.4+ is very touchy.
Have you restarted the openhab service lately?
Try deleting your mysensors gateway then restart openhab and re-add the mysensors mqtt gateway. Just for grins...
I did that now... same thing...

So, The "Mysensors Binding" creates a Thing, "Mysensors MQTT Gateway".
The "Mysensors MQTT Gateway" needs a "MQTT Broker" Thing. This thing is called "mosquitto". The mosquitto thing is configured to connect to 127.0.0.1:1883
In "Mysensors MQTT Gateway" I say "Broker Name" is "mosquitto".In log "Mysensors MQTT Gateway" says "No connection to broker: mosquitto"
Maybe I should just revert back to Ethernet. I have spent 3 days with this, and somthing that "mysterious" can just not be right.
-
@waspie said in Help! openHAB 2.4 binding MQTT:
yeah, mysensors in 2.4+ is very touchy.
Have you restarted the openhab service lately?
Try deleting your mysensors gateway then restart openhab and re-add the mysensors mqtt gateway. Just for grins...
I did that now... same thing...

So, The "Mysensors Binding" creates a Thing, "Mysensors MQTT Gateway".
The "Mysensors MQTT Gateway" needs a "MQTT Broker" Thing. This thing is called "mosquitto". The mosquitto thing is configured to connect to 127.0.0.1:1883
In "Mysensors MQTT Gateway" I say "Broker Name" is "mosquitto".In log "Mysensors MQTT Gateway" says "No connection to broker: mosquitto"
Maybe I should just revert back to Ethernet. I have spent 3 days with this, and somthing that "mysterious" can just not be right.
@magpern
sorry, without direct access to tinker with it I can't say where it is stuck. At this moment I've dumped the binding altogether and just do everything via MQTT. I have a good feeling the binding was somehow crashing the mqtt broker which is why I stopped using the binding. -
I have exactly same problem. Does it work for anyone not using the system broker?
Both binding and openhab are 2.4. -
I have exactly same problem. Does it work for anyone not using the system broker?
Both binding and openhab are 2.4.@gahlawathome said in Help! openHAB 2.4 binding MQTT:
I have exactly same problem. Does it work for anyone not using the system broker?
Both binding and openhab are 2.4.Googleing this problem at it is quite reoccurring that the questions are about "How to get mysensors mqtt gateway online". Something must be wrong with it, otherwise so many cannot report the same thing.
@TimO as the developer, do you have any leads?


