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. MyController.org
  4. Serial Gateway and MQTT Broker

Serial Gateway and MQTT Broker

Scheduled Pinned Locked Moved MyController.org
31 Posts 7 Posters 8.4k Views 6 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.
  • talhatecT Offline
    talhatecT Offline
    talhatec
    wrote on last edited by
    #22

    @jkandasa has the independent service been created? I would really love to see this feature. Im using Home Assistant for overall home automation. But I want to manage MySensors with MyController due to the better features to handle MySensor Nodes.

    J 2 Replies Last reply
    0
    • talhatecT talhatec

      @jkandasa has the independent service been created? I would really love to see this feature. Im using Home Assistant for overall home automation. But I want to manage MySensors with MyController due to the better features to handle MySensor Nodes.

      J Offline
      J Offline
      jkandasa
      Plugin Developer
      wrote on last edited by
      #23

      @talhatec Still I am working on this feature. I will update you once it gets ready.

      1 Reply Last reply
      0
      • talhatecT talhatec

        @jkandasa has the independent service been created? I would really love to see this feature. Im using Home Assistant for overall home automation. But I want to manage MySensors with MyController due to the better features to handle MySensor Nodes.

        J Offline
        J Offline
        jkandasa
        Plugin Developer
        wrote on last edited by
        #24

        @talhatec Thank you for your patience
        Finally the first version of serial2mqtt adapter available and released for public. Kindly report issues if you find any on issues page

        1 Reply Last reply
        0
        • Diego BaravalleD Offline
          Diego BaravalleD Offline
          Diego Baravalle
          wrote on last edited by
          #25

          @jkandasa Thanks very very much!

          Awesome work!

          :clap: :clap: :clap:

          1 Reply Last reply
          1
          • talhatecT Offline
            talhatecT Offline
            talhatec
            wrote on last edited by
            #26

            @jkandasa Thank you very much, will give it a go over the weekend.

            1 Reply Last reply
            1
            • talhatecT Offline
              talhatecT Offline
              talhatec
              wrote on last edited by
              #27

              @jkandasa The serial2MQTT adapter worked for a while, but then it started to fail. Looking at the logs, its not receiving the data from serial properly

              2017-08-07 18:04:00,942 ERROR [Thread-1] [org.mycontroller.serial2mqtt.gateway.MessageMonitorThread:66] Exception on processing [RawMessage(gatewayId=null, data=%ヘ보ᅭ￲▒ᅪ゙ノ<*▒oᄚ볘ロ¦▒0;255;3;0;9;TSF:MSG:READ,254-254-0,s=255,c=3,t=1,pt=0,l=0,sg=0:, subData=null, isTxMessage=false, networkType=MY_SENSORS, timestamp=1502125439421)],
              java.lang.NumberFormatException: For input string: "%ヘ보ᅭ￲▒ᅪ゙ノ<*▒oᄚ볘ロ¦▒0"
                      at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
                      at java.lang.Integer.parseInt(Integer.java:569)
                      at java.lang.Integer.valueOf(Integer.java:766)
                      at org.mycontroller.serial2mqtt.gateway.MessageEngine.postOnMqtt(MessageEngine.java:53)
                      at org.mycontroller.serial2mqtt.gateway.MessageMonitorThread.processRawMessage(MessageMonitorThread.java:63)
                      at org.mycontroller.serial2mqtt.gateway.MessageMonitorThread.run(MessageMonitorThread.java:85)
                      at java.lang.Thread.run(Thread.java:745)
              
              J 1 Reply Last reply
              0
              • talhatecT Offline
                talhatecT Offline
                talhatec
                wrote on last edited by
                #28

                @jkandasa Not sure what the issue is, but the adapter seems to be working fine now. Ill leave it running for a day and see if the data issue reappears. I was trying to get HomeAssistant and myController to work off the same MQTT topics. maybe thats what cause the data issue.

                1 Reply Last reply
                0
                • talhatecT talhatec

                  @jkandasa The serial2MQTT adapter worked for a while, but then it started to fail. Looking at the logs, its not receiving the data from serial properly

                  2017-08-07 18:04:00,942 ERROR [Thread-1] [org.mycontroller.serial2mqtt.gateway.MessageMonitorThread:66] Exception on processing [RawMessage(gatewayId=null, data=%ヘ보ᅭ￲▒ᅪ゙ノ<*▒oᄚ볘ロ¦▒0;255;3;0;9;TSF:MSG:READ,254-254-0,s=255,c=3,t=1,pt=0,l=0,sg=0:, subData=null, isTxMessage=false, networkType=MY_SENSORS, timestamp=1502125439421)],
                  java.lang.NumberFormatException: For input string: "%ヘ보ᅭ￲▒ᅪ゙ノ<*▒oᄚ볘ロ¦▒0"
                          at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
                          at java.lang.Integer.parseInt(Integer.java:569)
                          at java.lang.Integer.valueOf(Integer.java:766)
                          at org.mycontroller.serial2mqtt.gateway.MessageEngine.postOnMqtt(MessageEngine.java:53)
                          at org.mycontroller.serial2mqtt.gateway.MessageMonitorThread.processRawMessage(MessageMonitorThread.java:63)
                          at org.mycontroller.serial2mqtt.gateway.MessageMonitorThread.run(MessageMonitorThread.java:85)
                          at java.lang.Thread.run(Thread.java:745)
                  
                  J Offline
                  J Offline
                  jkandasa
                  Plugin Developer
                  wrote on last edited by
                  #29

                  @talhatec Are you seeing this error often?

                  1 Reply Last reply
                  0
                  • talhatecT Offline
                    talhatecT Offline
                    talhatec
                    wrote on last edited by
                    #30

                    @jkandasa It seems to be stable now. Think that it was a one off issue. Ive now got both HomeAssistant and MyController working on the same MQTT in/out topics.

                    However, when a sensor calls back to the controller, both HomeAssistant and myController send out replies, and due to this, i think the messages clash, and the controllers endup sending it multiple times.

                    Have to think of a way to make only one respond to requests.

                    J 1 Reply Last reply
                    0
                    • talhatecT talhatec

                      @jkandasa It seems to be stable now. Think that it was a one off issue. Ive now got both HomeAssistant and MyController working on the same MQTT in/out topics.

                      However, when a sensor calls back to the controller, both HomeAssistant and myController send out replies, and due to this, i think the messages clash, and the controllers endup sending it multiple times.

                      Have to think of a way to make only one respond to requests.

                      J Offline
                      J Offline
                      jkandasa
                      Plugin Developer
                      wrote on last edited by
                      #31

                      @talhatec

                      However, when a sensor calls back to the controller, both HomeAssistant and myController send out replies, and due to this, i think the messages clash, and the controllers endup sending it multiple times.

                      I do not know your preference about, which controller wants to response for your sensors request. Suppose you want MyController only on listen mode, you have to change MQTT Topic publish to some dummy topic on MyController gateway settings.

                      0_1502333682942_upload-c572e22b-04f1-423a-a9a2-35e7e42eb3e4

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


                      20

                      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