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. Announcements
  3. πŸ’¬ MYSController

πŸ’¬ MYSController

Scheduled Pinned Locked Moved Announcements
58 Posts 24 Posters 7.4k Views 23 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.
  • G Guillermo Schimmel

    @jimmy-loyens Yes the mqtt gateway is very simple, just use some arduino+nrf4+ethernet.

    There is a simple sketch for that.

    In order to connect to openhab you should use openhab 2.4 and the mysensors (unofficial) binding. If you are on an older openhab you can just use the mqtt 1.x binding.

    I did a post a few weeks ago. I'll try to find it for you.

    G Offline
    G Offline
    Guillermo Schimmel
    wrote on last edited by
    #27

    @guillermo-schimmel Here you have some openhab+mqtt+mysensors examples

    https://forum.mysensors.org/topic/4786/openhab/9

    J 1 Reply Last reply
    0
    • G Guillermo Schimmel

      @guillermo-schimmel Here you have some openhab+mqtt+mysensors examples

      https://forum.mysensors.org/topic/4786/openhab/9

      J Offline
      J Offline
      jimmy loyens
      wrote on last edited by
      #28

      @guillermo-schimmel thanks, seems i have an ethernet shiel + spare uno lying around. I will give it a go. Is the mysensors binding compattible with custom nodes i written my own code for? Wich metod is less work to reprogram my openhab? I'm asking because my openhab is quite elaborate. I have a few 100 items and about 80 mylight sensors plugged in to openhab 😁 right now (serial gateway) they all enter openhab via 1 rule with a large hashmap. If i understand correctly i have to create a thing for each sensor and link each item to the channel of this thing. Got a lot of work to doπŸ˜‰πŸ˜‹

      J G 2 Replies Last reply
      0
      • J jimmy loyens

        @guillermo-schimmel thanks, seems i have an ethernet shiel + spare uno lying around. I will give it a go. Is the mysensors binding compattible with custom nodes i written my own code for? Wich metod is less work to reprogram my openhab? I'm asking because my openhab is quite elaborate. I have a few 100 items and about 80 mylight sensors plugged in to openhab 😁 right now (serial gateway) they all enter openhab via 1 rule with a large hashmap. If i understand correctly i have to create a thing for each sensor and link each item to the channel of this thing. Got a lot of work to doπŸ˜‰πŸ˜‹

        J Offline
        J Offline
        jimmy loyens
        wrote on last edited by
        #29

        @jimmy-loyens i use a mosquitto broker to get messages from my esp milight hub in openhab. Can i use this same broker with different topic? I beleive openhab uses mqtt binding for this. Sorry still got a lot to learn about mqttπŸ€”

        G 1 Reply Last reply
        0
        • J jimmy loyens

          @jimmy-loyens i use a mosquitto broker to get messages from my esp milight hub in openhab. Can i use this same broker with different topic? I beleive openhab uses mqtt binding for this. Sorry still got a lot to learn about mqttπŸ€”

          G Offline
          G Offline
          Guillermo Schimmel
          wrote on last edited by
          #30

          @jimmy-loyens Yes, use the same broker for everything.

          1 Reply Last reply
          0
          • J jimmy loyens

            @guillermo-schimmel thanks, seems i have an ethernet shiel + spare uno lying around. I will give it a go. Is the mysensors binding compattible with custom nodes i written my own code for? Wich metod is less work to reprogram my openhab? I'm asking because my openhab is quite elaborate. I have a few 100 items and about 80 mylight sensors plugged in to openhab 😁 right now (serial gateway) they all enter openhab via 1 rule with a large hashmap. If i understand correctly i have to create a thing for each sensor and link each item to the channel of this thing. Got a lot of work to doπŸ˜‰πŸ˜‹

            G Offline
            G Offline
            Guillermo Schimmel
            wrote on last edited by
            #31

            @jimmy-loyens said in πŸ’¬ MYSController:

            @guillermo-schimmel thanks, seems i have an ethernet shiel + spare uno lying around. I will give it a go.

            Same setup here.

            Is the mysensors binding compattible with custom nodes i written my own code for? Wich metod is less work to reprogram my openhab? I'm asking because my openhab is quite elaborate. I have a few 100 items and about 80 mylight sensors plugged in to openhab 😁 right now (serial gateway) they all enter openhab via 1 rule with a large hashmap.

            Yes, it supports custom nodes.

            If i understand correctly i have to create a thing for each sensor and link each item to the channel of this thing. Got a lot of work to doπŸ˜‰πŸ˜‹

            Yes, but if you do it in text files it's not that bad.

            J 1 Reply Last reply
            0
            • J Offline
              J Offline
              jimmy loyens
              wrote on last edited by
              #32

              Ok, thanks for all your help! I'll get started this weekend with the mysensors binding approach. 🀞

              1 Reply Last reply
              0
              • G Guillermo Schimmel

                @jimmy-loyens said in πŸ’¬ MYSController:

                @guillermo-schimmel thanks, seems i have an ethernet shiel + spare uno lying around. I will give it a go.

                Same setup here.

                Is the mysensors binding compattible with custom nodes i written my own code for? Wich metod is less work to reprogram my openhab? I'm asking because my openhab is quite elaborate. I have a few 100 items and about 80 mylight sensors plugged in to openhab 😁 right now (serial gateway) they all enter openhab via 1 rule with a large hashmap.

                Yes, it supports custom nodes.

                If i understand correctly i have to create a thing for each sensor and link each item to the channel of this thing. Got a lot of work to doπŸ˜‰πŸ˜‹

                Yes, but if you do it in text files it's not that bad.

                J Offline
                J Offline
                jimmy loyens
                wrote on last edited by
                #33

                @guillermo-schimmel hi, when i look under mysensors binding in openhab paperui i only see things for serial gw & ethernet gw but not for mqtt gateway. Am i supposed to build a ethernet gw or is mqtt gw allso supported? Just asking to know wich firmware to flash since hw is the same. Thanks

                G 1 Reply Last reply
                0
                • J jimmy loyens

                  @guillermo-schimmel hi, when i look under mysensors binding in openhab paperui i only see things for serial gw & ethernet gw but not for mqtt gateway. Am i supposed to build a ethernet gw or is mqtt gw allso supported? Just asking to know wich firmware to flash since hw is the same. Thanks

                  G Offline
                  G Offline
                  Guillermo Schimmel
                  wrote on last edited by
                  #34

                  @jimmy-loyens You have to build an mqtt gateway. On the hardware side it is identical to the ethernet gateway.

                  There is another sketch for it though:

                  https://www.mysensors.org/build/mqtt_gateway

                  It is very easy.

                  Please let me know it if works. I really like the openhab+mqtt+mysensors combination, I think that eventually there will be a lot of us here.

                  J 1 Reply Last reply
                  0
                  • G Guillermo Schimmel

                    @jimmy-loyens You have to build an mqtt gateway. On the hardware side it is identical to the ethernet gateway.

                    There is another sketch for it though:

                    https://www.mysensors.org/build/mqtt_gateway

                    It is very easy.

                    Please let me know it if works. I really like the openhab+mqtt+mysensors combination, I think that eventually there will be a lot of us here.

                    J Offline
                    J Offline
                    jimmy loyens
                    wrote on last edited by
                    #35

                    @guillermo-schimmel I have been looking at the mysensors binding this evening (see my posts here: https://forum.mysensors.org/topic/7176/openhab-2-2-binding/118), but at first sight i cant get it working (i cant find a lot of clear documentation on the binding either) so i'm leaning more to the MQTT-binding approach right now. I will be exploring this route tomorrow. allready reflashed the gateway with MQTT-firmware

                    J 1 Reply Last reply
                    0
                    • J jimmy loyens

                      @guillermo-schimmel I have been looking at the mysensors binding this evening (see my posts here: https://forum.mysensors.org/topic/7176/openhab-2-2-binding/118), but at first sight i cant get it working (i cant find a lot of clear documentation on the binding either) so i'm leaning more to the MQTT-binding approach right now. I will be exploring this route tomorrow. allready reflashed the gateway with MQTT-firmware

                      J Offline
                      J Offline
                      jimmy loyens
                      wrote on last edited by
                      #36

                      @jimmy-loyens do you use the mysensors-binding in openhab or the mqtt-binding (or a combination of the two)

                      G 1 Reply Last reply
                      0
                      • J jimmy loyens

                        @jimmy-loyens do you use the mysensors-binding in openhab or the mqtt-binding (or a combination of the two)

                        G Offline
                        G Offline
                        Guillermo Schimmel
                        wrote on last edited by
                        #37

                        @jimmy-loyens I use the openHAB-mysensors 2.3 binding.

                        But if you are unsure your mysensors setup works, it’s reasonable to start with mqtt binding and then migrate. Lots of moving parts.

                        I have posted here my own files for your reference.

                        J 1 Reply Last reply
                        0
                        • G Guillermo Schimmel

                          @jimmy-loyens I use the openHAB-mysensors 2.3 binding.

                          But if you are unsure your mysensors setup works, it’s reasonable to start with mqtt binding and then migrate. Lots of moving parts.

                          I have posted here my own files for your reference.

                          J Offline
                          J Offline
                          jimmy loyens
                          wrote on last edited by
                          #38

                          @guillermo-schimmel can you tell me where you downloaded the binding? I think im using the 2.2 binding. Is it possible you forgot the link to your setup files? Greets

                          G 1 Reply Last reply
                          0
                          • J jimmy loyens

                            @guillermo-schimmel can you tell me where you downloaded the binding? I think im using the 2.2 binding. Is it possible you forgot the link to your setup files? Greets

                            G Offline
                            G Offline
                            Guillermo Schimmel
                            wrote on last edited by
                            #39

                            @jimmy-loyens said in πŸ’¬ MYSController:

                            @guillermo-schimmel can you tell me where you downloaded the binding? I think im using the 2.2 binding. Is it possible you forgot the link to your setup files? Greets

                            Please take a look here:

                            https://www.mysensors.org/controller/openhab

                            You will find my config and also a link to the 2.4 version of the binding.

                            J 2 Replies Last reply
                            0
                            • G Guillermo Schimmel

                              @jimmy-loyens said in πŸ’¬ MYSController:

                              @guillermo-schimmel can you tell me where you downloaded the binding? I think im using the 2.2 binding. Is it possible you forgot the link to your setup files? Greets

                              Please take a look here:

                              https://www.mysensors.org/controller/openhab

                              You will find my config and also a link to the 2.4 version of the binding.

                              J Offline
                              J Offline
                              jimmy loyens
                              wrote on last edited by
                              #40

                              @guillermo-schimmel ok thanks, the link was formilliar, i have come by this link at one time in the past but i couldnt find it anymoreπŸ™ƒ. I will give it another try tomorrow with the newer binding. The configuration examples will help alot. ThanksπŸ‘

                              1 Reply Last reply
                              0
                              • G Guillermo Schimmel

                                @jimmy-loyens said in πŸ’¬ MYSController:

                                @guillermo-schimmel can you tell me where you downloaded the binding? I think im using the 2.2 binding. Is it possible you forgot the link to your setup files? Greets

                                Please take a look here:

                                https://www.mysensors.org/controller/openhab

                                You will find my config and also a link to the 2.4 version of the binding.

                                J Offline
                                J Offline
                                jimmy loyens
                                wrote on last edited by jimmy loyens
                                #41
                                This post is deleted!
                                1 Reply Last reply
                                0
                                • A Offline
                                  A Offline
                                  andy5211d
                                  wrote on last edited by
                                  #42

                                  Have Mysensors in use with Home Assistant for several years, no issues. Using a Sensebender Ethernet MQTT gateway to feed HA. Just found this software. Can only get this software to connect via serial connection, not IP, and only shows data in the MYSController Debug tab. No nodes are discovered just 0 and 255. Is there something I need to do with the Gateway to allow connection for this software? Example of debug tab messages:

                                  22/04/2020 18:34:56 ERROR ErrorFlag=255, Msg=2433158 GWT:TPS:TOPIC=mygateway2-out/23/1/1/0/0,MSG SENT
                                  22/04/2020 18:34:56 RX 2433224 TSF:MSG:READ,23-23-0,s=2,c=1,t=0,pt=7,l=5,sg=0:28.1
                                  22/04/2020 18:34:56 ERROR ErrorFlag=255, Msg=2433224 TSF:MSG:READ,23-23-0,s=2,c=1,t=0,pt=7,l=5,sg=0:28.1
                                  22/04/2020 18:34:56 RX 2433224 GWT:TPS:TOPIC=mygateway2-out/23/2/1/0/0,MSG SENT
                                  22/04/2020 18:34:56 ERROR ErrorFlag=255, Msg=2433224 GWT:TPS:TOPIC=mygateway2-out/23/2/1/0/0,MSG SENT
                                  22/04/2020 18:35:00 RX 2437119 TSF:MSG:READ,23-23-0,s=1,c=1,t=0,pt=7,l=5,sg=0:28.5
                                  22/04/2020 18:35:00 ERROR ErrorFlag=255, Msg=2437119 TSF:MSG:READ,23-23-0,s=1,c=1,t=0,pt=7,l=5,sg=0:28.5
                                  22/04/2020 18:35:00 RX 2437120 GWT:TPS:TOPIC=mygateway2-out/23/1/1/0/0,MSG SENT
                                  22/04/2020 18:35:00 ERROR ErrorFlag=255, Msg=2437120 GWT:TPS:TOPIC=mygateway2-out/23/1/1/0/0,MSG SENT
                                  22/04/2020 18:35:00 RX 2437186 TSF:MSG:READ,23-23-0,s=2,c=1,t=0,pt=7,l=5,sg=0:28.5
                                  22/04/2020 18:35:00 ERROR ErrorFlag=255, Msg=2437186 TSF:MSG:READ,23-23-0,s=2,c=1,t=0,pt=7,l=5,sg=0:28.5
                                  22/04/2020 18:35:00 RX 2437186 GWT:TPS:TOPIC=mygateway2-out/23/2/1/0/0,MSG SENT
                                  22/04/2020 18:35:00 ERROR ErrorFlag=255, Msg=2437186 GWT:TPS:TOPIC=mygateway2-out/23/2/1/0/0,MSG SENT
                                  22/04/2020 18:35:03 RX 2439780 GWT:TPC:IP=192.168.1.96
                                  22/04/2020 18:35:03 ERROR ErrorFlag=255, Msg=2439780 GWT:TPC:IP=192.168.1.96
                                  22/04/2020 18:35:04 RX 2440780 GWT:RMQ:CONNECTING...
                                  22/04/2020 18:35:04 ERROR ErrorFlag=255, Msg=2440780 GWT:RMQ:CONNECTING...
                                  22/04/2020 18:35:04 RX 2440783 GWT:RMQ:OK
                                  22/04/2020 18:35:04 ERROR ErrorFlag=255, Msg=2440783 GWT:RMQ:OK
                                  22/04/2020 18:35:04 RX 2440784 GWT:TPS:TOPIC=mygateway2-out/0/255/0/0/18,MSG SENT
                                  22/04/2020 18:35:04 ERROR ErrorFlag=255, Msg=2440784 GWT:TPS:TOPIC=mygateway2-out/0/255/0/0/18,MSG SENT
                                  22/04/2020 18:35:04 RX 2441081 TSF:MSG:READ,23-23-0,s=1,c=1,t=0,pt=7,l=5,sg=0:28.4
                                  22/04/2020 18:35:04 ERROR ErrorFlag=255, Msg=2441081 TSF:MSG:READ,23-23-0,s=1,c=1,t=0,pt=7,l=5,sg=0:28.4
                                  22/04/2020 18:35:04 RX 2441081 GWT:TPS:TOPIC=mygateway2-out/23/1/1/0/0,MSG SENT

                                  Any suggestions anyone? Thanks.

                                  tekkaT 1 Reply Last reply
                                  0
                                  • A andy5211d

                                    Have Mysensors in use with Home Assistant for several years, no issues. Using a Sensebender Ethernet MQTT gateway to feed HA. Just found this software. Can only get this software to connect via serial connection, not IP, and only shows data in the MYSController Debug tab. No nodes are discovered just 0 and 255. Is there something I need to do with the Gateway to allow connection for this software? Example of debug tab messages:

                                    22/04/2020 18:34:56 ERROR ErrorFlag=255, Msg=2433158 GWT:TPS:TOPIC=mygateway2-out/23/1/1/0/0,MSG SENT
                                    22/04/2020 18:34:56 RX 2433224 TSF:MSG:READ,23-23-0,s=2,c=1,t=0,pt=7,l=5,sg=0:28.1
                                    22/04/2020 18:34:56 ERROR ErrorFlag=255, Msg=2433224 TSF:MSG:READ,23-23-0,s=2,c=1,t=0,pt=7,l=5,sg=0:28.1
                                    22/04/2020 18:34:56 RX 2433224 GWT:TPS:TOPIC=mygateway2-out/23/2/1/0/0,MSG SENT
                                    22/04/2020 18:34:56 ERROR ErrorFlag=255, Msg=2433224 GWT:TPS:TOPIC=mygateway2-out/23/2/1/0/0,MSG SENT
                                    22/04/2020 18:35:00 RX 2437119 TSF:MSG:READ,23-23-0,s=1,c=1,t=0,pt=7,l=5,sg=0:28.5
                                    22/04/2020 18:35:00 ERROR ErrorFlag=255, Msg=2437119 TSF:MSG:READ,23-23-0,s=1,c=1,t=0,pt=7,l=5,sg=0:28.5
                                    22/04/2020 18:35:00 RX 2437120 GWT:TPS:TOPIC=mygateway2-out/23/1/1/0/0,MSG SENT
                                    22/04/2020 18:35:00 ERROR ErrorFlag=255, Msg=2437120 GWT:TPS:TOPIC=mygateway2-out/23/1/1/0/0,MSG SENT
                                    22/04/2020 18:35:00 RX 2437186 TSF:MSG:READ,23-23-0,s=2,c=1,t=0,pt=7,l=5,sg=0:28.5
                                    22/04/2020 18:35:00 ERROR ErrorFlag=255, Msg=2437186 TSF:MSG:READ,23-23-0,s=2,c=1,t=0,pt=7,l=5,sg=0:28.5
                                    22/04/2020 18:35:00 RX 2437186 GWT:TPS:TOPIC=mygateway2-out/23/2/1/0/0,MSG SENT
                                    22/04/2020 18:35:00 ERROR ErrorFlag=255, Msg=2437186 GWT:TPS:TOPIC=mygateway2-out/23/2/1/0/0,MSG SENT
                                    22/04/2020 18:35:03 RX 2439780 GWT:TPC:IP=192.168.1.96
                                    22/04/2020 18:35:03 ERROR ErrorFlag=255, Msg=2439780 GWT:TPC:IP=192.168.1.96
                                    22/04/2020 18:35:04 RX 2440780 GWT:RMQ:CONNECTING...
                                    22/04/2020 18:35:04 ERROR ErrorFlag=255, Msg=2440780 GWT:RMQ:CONNECTING...
                                    22/04/2020 18:35:04 RX 2440783 GWT:RMQ:OK
                                    22/04/2020 18:35:04 ERROR ErrorFlag=255, Msg=2440783 GWT:RMQ:OK
                                    22/04/2020 18:35:04 RX 2440784 GWT:TPS:TOPIC=mygateway2-out/0/255/0/0/18,MSG SENT
                                    22/04/2020 18:35:04 ERROR ErrorFlag=255, Msg=2440784 GWT:TPS:TOPIC=mygateway2-out/0/255/0/0/18,MSG SENT
                                    22/04/2020 18:35:04 RX 2441081 TSF:MSG:READ,23-23-0,s=1,c=1,t=0,pt=7,l=5,sg=0:28.4
                                    22/04/2020 18:35:04 ERROR ErrorFlag=255, Msg=2441081 TSF:MSG:READ,23-23-0,s=1,c=1,t=0,pt=7,l=5,sg=0:28.4
                                    22/04/2020 18:35:04 RX 2441081 GWT:TPS:TOPIC=mygateway2-out/23/1/1/0/0,MSG SENT

                                    Any suggestions anyone? Thanks.

                                    tekkaT Offline
                                    tekkaT Offline
                                    tekka
                                    Admin
                                    wrote on last edited by tekka
                                    #43

                                    @andy5211d MYSController won't work with GW debug output. Use the GatewaySerial or GatewayW5100 example sketch to interact with your nodes.

                                    1 Reply Last reply
                                    0
                                    • A Offline
                                      A Offline
                                      andy5211d
                                      wrote on last edited by
                                      #44

                                      @tekka, thanks for the pointer. I'm using the GatewayW5100MQTTClient sketch, is this not the correct one? Works well though! Or, I do have MY_DEBUG at the beginning enabled, is then incorrect? However I can't connect MYSController via the IP port either. So if it is MY_DEBUG enabled as the problem then it impacts on both connections?

                                      Jan SpiesJ 1 Reply Last reply
                                      0
                                      • A andy5211d

                                        @tekka, thanks for the pointer. I'm using the GatewayW5100MQTTClient sketch, is this not the correct one? Works well though! Or, I do have MY_DEBUG at the beginning enabled, is then incorrect? However I can't connect MYSController via the IP port either. So if it is MY_DEBUG enabled as the problem then it impacts on both connections?

                                        Jan SpiesJ Offline
                                        Jan SpiesJ Offline
                                        Jan Spies
                                        wrote on last edited by
                                        #45

                                        @andy5211d It seems that MYScontroller does not work when MQTT is involved. I've tested both sketches, GatewayW5100 and GatewayW5100MQTTClient, and only GatewayW5100 could connect to MYSController.

                                        1 Reply Last reply
                                        0
                                        • A Offline
                                          A Offline
                                          andy5211d
                                          wrote on last edited by
                                          #46

                                          @Jan Spies, Thanks for your help. Was about to try different sketches over the weekend but guess I'll try some other approach now. Would really like to get MYSController or something similar to work. I can see data on the serial port (as shown below) but nothing on the ethernet port that looks useful other than what is sent and is returned from MQTT (I'm using Home Assistant). I have Lazerus so may have a play with the data on the serial port. Perhaps could feed the serial data into another Arduino and make it available on another IP address for different MySensor controller software. as not easy to get to my gateway hardware with a serail connection. Or seeing that the data is in MQTT perhaps feeding it into another app to display similar to MYSController. Wonder if the source of MYSController in in Guthub. Will have a look; no point in re-inventing the wheel... Wish I could work out what the ERROR ErrorFlag=255, etc means in my serial port output in the post below.

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


                                          15

                                          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