tobof / openhab-addons

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

OH3 support? #142

Closed ploeffler closed 3 years ago

ploeffler commented 3 years ago

hi tim

will there be an OH3 version of the mysensors-binding ?

tobof commented 3 years ago

Hey!

To be honest: I don't think so. My plan was to integrate the binding in the official repository and I was not able to fulfill this task. I'm pretty sure it won't be that hard to port the binding to version 3 of OH, but I'm not sure it is possible for me to integrate it in the official repository and that's the reason I don't think further development makes any sense.

ploeffler commented 3 years ago

thank you for your honest answer, though its bad news (for me and my sensors)

tobof commented 3 years ago

I myself switched recently from ethernet and serial gateway to MQTT gateway without the binding because I use MQTT in other scenarios (heating, light control) too. With textual configuration (in OH2 for now) it's really straightforward.

Gifford47 commented 3 years ago

I myself switched recently from ethernet and serial gateway to MQTT gateway without the binding because I use MQTT in other scenarios (heating, light control) too. With textual configuration (in OH2 for now) it's really straightforward.

can you please explain how you configured this? how do you interpret the messages from your mqtt gateway and update your mysensors items?

tobof commented 3 years ago

As you may have seen I've migrated the binding to OH3. Feel free to test: https://forum.mysensors.org/topic/11482/oh3-mysensors-binding/16

Here are some examples of my MQTT configuration for MySensors in OH:

Things:

Bridge mqtt:broker:mosquitto [ host="localhost", secure=false ]{
Thing topic MySGWRFM {
        Channels:
Type switch : livingLight01     "Stehlampe Ecke"            [ stateTopic="mysensors-out/0/1/1/0/2", commandTopic="mysensors-in/0/1/1/0/2", on="1", off="0"]
Type number : corridorTemp01    "Temp. Flur"        [ stateTopic="mysensors-out/100/1/1/0/0" ]
Type number : corridorHum01     "Feucht. Flur"      [ stateTopic="mysensors-out/100/2/1/0/1" ]
Type number : corridorBat01     "Batterie Flur"     [ stateTopic="mysensors-out/100/255/3/0/0" ]
Type contact : corridorOGPir01   "Bewegungsmelder OG"   [ stateTopic="mysensors-out/111/3/1/0/16", on="1", off="0"]
}
}

Items:

Switch livingLight01 "Stehlampe Ecke" <light> (gLivingroom) { channel="mqtt:broker:mosquitto:MySGWRFM:livingLight01" }
guillebot commented 3 years ago

Does it works now with mqtt gateway? I assumed that it was ethernet gw only for now.

On Wed, 13 Jan 2021 at 16:39 Tim notifications@github.com wrote:

As you may have seen I've migrated the binding to OH3. Feel free to test: https://forum.mysensors.org/topic/11482/oh3-mysensors-binding/16

Here are some examples of my MQTT configuration for MySensors in OH:

Things:

Bridge mqtt:broker:mosquitto [ host="localhost", secure=false ]{ Thing topic MySGWRFM { Channels: Type switch : livingLight01 "Stehlampe Ecke" [ stateTopic="mysensors-out/0/1/1/0/2", commandTopic="mysensors-in/0/1/1/0/2", on="1", off="0"] Type number : corridorTemp01 "Temp. Flur" [ stateTopic="mysensors-out/100/1/1/0/0" ] Type number : corridorHum01 "Feucht. Flur" [ stateTopic="mysensors-out/100/2/1/0/1" ] Type number : corridorBat01 "Batterie Flur" [ stateTopic="mysensors-out/100/255/3/0/0" ] Type contact : corridorOGPir01 "Bewegungsmelder OG" [ stateTopic="mysensors-out/111/3/1/0/16", on="1", off="0"] } }

Items:

Switch livingLight01 "Stehlampe Ecke" (gLivingroom) { channel="mqtt:broker:mosquitto:MySGWRFM:livingLight01" }

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tobof/openhab2-addons/issues/142#issuecomment-759686585, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIXVWLXS6YWSXFBAMIT3ZTSZXZFVANCNFSM4VCBNIFQ .