Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Controllers
  3. Homie MySensors bridge Controller. For use in OpenHab 3 (and others)

Homie MySensors bridge Controller. For use in OpenHab 3 (and others)

Scheduled Pinned Locked Moved Controllers
4 Posts 3 Posters 90 Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • David DawsonD Offline
    David DawsonD Offline
    David Dawson
    wrote on last edited by
    #1

    Hallo, so I came back to automation after a while away and set up MySensors again on MQTT and tried to pick a decent automation controller. I tried home assistant, but it kept corrupting itself, and then fired up openhab again, not realising that version 3 had just been released.

    That worked well with ZWave, till I tried attaching to MySensors and realised that the binding for openhab had all been deprecated and abandoned, which made me sad.

    I tried doing direct MQTT, which works, but is easy to forget and debugging numeric IDs each time I want to alter the system was becoming a chore.

    After seeing this issue - https://github.com/mysensors/MySensors/issues/1212 a thought came to me.

    Could the MySensors MQTT setup be bridged to the Homie conventional one? OpenHab already understands that well enough (they share a dev, so I believe), so that would be an easy integration.

    I spend the last few days researching and have built this in node/ typescript

    https://github.com/daviddawson/mysensors-homie-bridge

    It acts as a (very simplistic) MySensors controller on the MQTT gateway, giving out IDs and what not and provides bidirectional communication between MySensors MQTT and Homie MQTT. It advertises MySensors devices using Homie, and you can receive data and set values using the Homie protocol.

    Right now, I've only put support for S_BINARY, but its easy to add in the other types, just that my first use case is relay control.

    This lets me auto detect switches in OpenHab 3 and control them, I'll be adding in others soon, but if anyone likes the idea, adding support for the types is easy - https://github.com/daviddawson/mysensors-homie-bridge/blob/master/src/type-handler/s_binary.ts

    I'm not sure how complete the controller side of things needs to be, right now it only handles I_ID_REQUEST and I_ID_RESPONSE.

    K 1 Reply Last reply
    3
    • David DawsonD David Dawson

      Hallo, so I came back to automation after a while away and set up MySensors again on MQTT and tried to pick a decent automation controller. I tried home assistant, but it kept corrupting itself, and then fired up openhab again, not realising that version 3 had just been released.

      That worked well with ZWave, till I tried attaching to MySensors and realised that the binding for openhab had all been deprecated and abandoned, which made me sad.

      I tried doing direct MQTT, which works, but is easy to forget and debugging numeric IDs each time I want to alter the system was becoming a chore.

      After seeing this issue - https://github.com/mysensors/MySensors/issues/1212 a thought came to me.

      Could the MySensors MQTT setup be bridged to the Homie conventional one? OpenHab already understands that well enough (they share a dev, so I believe), so that would be an easy integration.

      I spend the last few days researching and have built this in node/ typescript

      https://github.com/daviddawson/mysensors-homie-bridge

      It acts as a (very simplistic) MySensors controller on the MQTT gateway, giving out IDs and what not and provides bidirectional communication between MySensors MQTT and Homie MQTT. It advertises MySensors devices using Homie, and you can receive data and set values using the Homie protocol.

      Right now, I've only put support for S_BINARY, but its easy to add in the other types, just that my first use case is relay control.

      This lets me auto detect switches in OpenHab 3 and control them, I'll be adding in others soon, but if anyone likes the idea, adding support for the types is easy - https://github.com/daviddawson/mysensors-homie-bridge/blob/master/src/type-handler/s_binary.ts

      I'm not sure how complete the controller side of things needs to be, right now it only handles I_ID_REQUEST and I_ID_RESPONSE.

      K Offline
      K Offline
      Klabbe
      wrote on last edited by
      #2

      @David-Dawson
      Have you seen this topic? TimO has updated the binding to work with openhab 3. Works great for me. Hope it will work for you too!

      [https://forum.mysensors.org/topic/11482/oh3-mysensors-binding/30](link url)

      David DawsonD 1 Reply Last reply
      0
      • K Klabbe

        @David-Dawson
        Have you seen this topic? TimO has updated the binding to work with openhab 3. Works great for me. Hope it will work for you too!

        [https://forum.mysensors.org/topic/11482/oh3-mysensors-binding/30](link url)

        David DawsonD Offline
        David DawsonD Offline
        David Dawson
        wrote on last edited by
        #3

        @Klabbe Yes I have seen that :smile:

        I'll probably give it a try, but I've quite enjoyed the dev in any case and it seems to be a potentially useful thing to have for cases other than OH3.

        1 Reply Last reply
        1
        • P Offline
          P Offline
          Peter Loeffler
          wrote on last edited by
          #4

          @David-Dawson
          great idea for that translation from homie to mysensors and back.

          but I think it would be a better approach, if mysensors would have the ability to "speak" homie-convention in MQTT optionally (e.g. #MY_GATEWAY_MQTT_HOMIE)
          that would eliminate the need of tweaking on an extra binding and let mysensors talk an IOT-standard

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          14

          Online

          11.7k

          Users

          11.2k

          Topics

          113.1k

          Posts


          Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • MySensors
          • OpenHardware.io
          • Categories
          • Recent
          • Tags
          • Popular