This worked with OH2.1, but stopped today after upgrading to 2.2
I do not only have the MQTT-Binding working, but also the MQTT-Eventbus. The Eventbus works fine and I can update via the bus without problems. But neither the Sonoff-POWs, nor if I send MQTT-Messages tele/sonoffDryer/ENERGY manually, the items get updated. Using my Eventbus logic openHAB/slave/${item}/state works.
Isn’t it possible anymore to use both methods in parallel?
Sorry, didn’t work out… Same procedure as before:
MQTT-Eventbus working
MQTT-Itemupdate (via different Topic) not working
Seems like you can’t use both anymore…? I could update a Proxy-item with the Sonoff-JSON via Eventbus Topic and then updating the items via a rule… but this really isn’t the solution…
This one switches the Dryer’s Sonoff POW ON and OFF. But again - if I Switch the Sonoff via Sonoff’s GUI or at the Switch, the message gets send, but OH2 doesn’t receive it.
I am having the same issue too. Looking at the mqtt broker logs i don’t see any connections coming from the openhab server. So its not actually subscribing to the broker.
I have also tried uninstalling and then reinstalling the mqtt binding. Any help here would be greatly appreciated!
cleared cache and tmp (which were already cleared), but also config and jsondb
started OH2-sevice
=> still no incoming MQTT-items…
strange thing: If installed MQTT1-binding on my DEV-Pi (new openHABian, freshly installed) both ways work.
as my productive Pi not only has openhab on it, but also some 3rd party tools I need to run for my environment, I’m reluctant to completely ditch my OH2 and replace it with a fresh install…
Have a look at your corresponding mqtt.config in /userdata/config/org/openhab, if it has different data than your mqtt.cfg, stop openHAB, delete mqtt.config and restart.
It’s the same. Which is no surprise, because both mqttEventbus as updating items from my OH2 to the broker works.
What doesn’t work is incoming changes like I described above:
I just reinstalled the whole thing (after apt-get purge and apt-get install didn’t work out).
Took me a while, because halfway through I destroyed my raspbian…
but now, I have a clean fresh installation of openHABian including working MQTT in both ways.