In a previous message topic, I had a question about synchronising two web UI’s, running on two different Windows machines (in my case, a WinXP and a Win8.1 machine), both talking to one and the same Mosquitto broker running on a Raspberry Pi.
This question is about openHAB runtime running on a Linux distro, Debian Jessie, which runs in VirtualBox on the same Win8.1 machine mentioned in that previous message topic.
The Linux distro has exactly the same demo.sitemaps file content as the ones running on my WinXP and Win8.1 machines and almost the same demo.items file content, apart from the mqtt broker name and clientId, which is different. But that shouldn’t matter, isn’t it?
Also the openhab.cfg file is, apart from the broker name and clientId, exactly the same as the ones running on my Windows machines.
Finally, the transform file “1on0off.map” is a 1-to-1 copy of the ones running on my Windows machines.
The IP address of the Linux distro running in VirtualBox is 192.168.123.128, so in the same address range as both my Windows machines and my Raspberry Pi, running the Mosquitto broker.
My problem is now: when I modifiy something in the web UI on the Linux distro, I don’t see any reaction in the Mosquitto broker logs on the Raspberry Pi. Also, the mosquitto_sub - running on the Raspberry Pi - that listens on the topics submitted through the web UI on the Linux distro doesn’t see any changes passing by.
The other way around is also true: when I modify something through mosquitto_pub on the Raspberry Pi, the openHAB runtime on my Linux distro doesn’t receive anything.
However, when starting the openHAB runtime on my Linux distro, I do see the connection request on the Mosquitto broker logs on the Raspberry Pi. So, both machines do see each other!
I’m puzzled about this: is this explainable? It looks like the Linux distro doesn’t send and/or receive any updates to/from the Mosquitto MQTT broker running on the Raspberry Pi.
Coincidence or not: at the office, I have exactly the same problem with the same setup. The only difference is that the openHAB runtime is running on a “real” Linux machine (also Debian Jessie), not a virtual one running in Windows VirtualBox.