tobof / openhab-addons

The next-generation open Home Automation Bus (openHAB)
Eclipse Public License 2.0
39 stars 30 forks source link

Using the binding via mqtt gateway possible? #131

Closed guillebot closed 5 years ago

guillebot commented 5 years ago

Hi guys, as the tittle says, do you think that would be possible to use the binding via mqtt?

I have the openhab server running in a virtual machine and I use mqtt-mysensors gateway for the communications.

Any hints?

I'm on OpenHAB 2.4 now, which has an improved mqtt binding, but they don't recognize mysensors devices (only homie convention devices).

Thanks a lot

tobof commented 5 years ago

@guillebot there are two options to connect a MQTT gateway to openhab. 1) Use the binding, which has build in support for the MQTT gateway and should continue to work with OpenHAB 2.4. The binding is using the same MQTT implementation / library which is used by the new MQTT binding for OpenHAB.

2) Use the generic MQTT binding included in OpenHAB 2.4. I'm experimenting with the generic binding myself to connect my ebusd to OpenHAB. A MySensors gateway should work too.

I'm looking into OpenHAB 2.4 myself at the moment and haven't finished testing yet.

guillebot commented 5 years ago

@guillebot there are two options to connect a MQTT gateway to openhab.

  1. Use the binding, which has build in support for the MQTT gateway and should continue to work with OpenHAB 2.4. The binding is using the same MQTT implementation / library which is used by the new MQTT binding for OpenHAB.

Will try this today.

  1. Use the generic MQTT binding included in OpenHAB 2.4. I'm experimenting with the generic binding myself to connect my ebusd to OpenHAB. A MySensors gateway should work too.

I can confirm that this works of course. You just have to create the mqtt broker thing and then a channel for each sensor variable.

I'm looking into OpenHAB 2.4 myself at the moment and haven't finished testing yet.

andreypopov commented 5 years ago

guys, can you give me working example of .things and .items for OH 2.4 ?

I am using mqtt gateway

guillebot commented 5 years ago

Here have some of mine. It all works ok.

I have defined the broker in Paper UI.

On Mon, Dec 24, 2018 at 11:48 AM Andrey notifications@github.com wrote:

guys, can you give me working example of .things and .items for OH 2.4 ?

I am using mqtt gateway

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tobof/openhab2-addons/issues/131#issuecomment-449742410, or mute the thread https://github.com/notifications/unsubscribe-auth/ABF62RRGZwkv66KPFPhZHWdRwNNT55srks5u8Ok1gaJpZM4ZZFkH .

guillebot commented 5 years ago

The binding works GREAT over MQTT.

I think this issue has to be closed.

Thanks a lot.