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. Troubleshooting
  3. Need help with initial setup

Need help with initial setup

Scheduled Pinned Locked Moved Troubleshooting
4 Posts 4 Posters 988 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.
  • simonszuS Offline
    simonszuS Offline
    simonszu
    wrote on last edited by
    #1

    Hi,

    i need some help with the initial setup.
    I have built a gateway with the W5100 Ethernet module, which should be controlled by a Home Assistant controller.
    The gateway starts up and the Home Assistant connects to it just fine:

    INFO:mysensors.mysensors:Trying to connect to ('192.168.1.233', 5003)
    INFO:mysensors.mysensors:Connected to ('192.168.1.233', 5003)
    

    So, after that, i built a sensor node with the DHT22-Temperature/Humidity Sensor. And now, i have problems with the communication between the sensor node and the gateway.
    This is the serial monitor output of the gateway during the setup: http://pastebin.com/caVf9RwX
    It looks like it is restarting some times (The lines with INIT:TSP:OK), although i have already added a decoupling capacitor and the power comes from a 2A-enabled Power Source.

    This is the output of the sensor node: http://pastebin.com/1ZCkWNnL - there, also a decoupling capacitor and a 2A-enabled USB Power source.

    To me, it looks like the gateway does indeed receive some messages from the node (the lines like

    0;255;3;0;9;TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
    0;255;3;0;9;TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
    

    look suspicious), but the node does not receive anything. It sends messages, and fails after that.
    During all this time, the log file of Home Assistant is empty, which means, there are no new lines associated to the MySensors component.

    So i am asking: Am i right with my assumptions regarding the log files? If yes, why does the receive on the node side fail? If no, what could be other reasons for the process to fail? I am quite sure it's not the distance between the two devices which is too big - they're lying right next to each other on my soldering table.

    So, any advices could be very helpful. Thank you.

    Boots33B 1 Reply Last reply
    0
    • korttomaK Offline
      korttomaK Offline
      korttoma
      Hero Member
      wrote on last edited by korttoma
      #2

      Hi @simonszu,

      Please try the log parser to read your logs -> https://www.mysensors.org/build/parser

      It seems like your node is asking for an Node ID but never gets one. Please look in to if Home Assistant can hand out Node IDs automatically or if you need to hard code the Node IDs in to your sketches.

      Maybe HA is handing out Node ID 0, this is not a valid Node ID.

      Home Assistant supports "node ID generation" According to this table -> https://www.mysensors.org/controller

      There are some instructions for Presentation here, did you try them? -> https://home-assistant.io/components/mysensors/

      • Tomas
      1 Reply Last reply
      0
      • gohanG Offline
        gohanG Offline
        gohan
        Mod
        wrote on last edited by
        #3

        You could also connect myscontroller to your gateway that will auto assign a node ID to the node that is requesting it, or you can specify it on the code of the node. It's a common problem when you are new to mysensors, don't worry 😁

        1 Reply Last reply
        0
        • simonszuS simonszu

          Hi,

          i need some help with the initial setup.
          I have built a gateway with the W5100 Ethernet module, which should be controlled by a Home Assistant controller.
          The gateway starts up and the Home Assistant connects to it just fine:

          INFO:mysensors.mysensors:Trying to connect to ('192.168.1.233', 5003)
          INFO:mysensors.mysensors:Connected to ('192.168.1.233', 5003)
          

          So, after that, i built a sensor node with the DHT22-Temperature/Humidity Sensor. And now, i have problems with the communication between the sensor node and the gateway.
          This is the serial monitor output of the gateway during the setup: http://pastebin.com/caVf9RwX
          It looks like it is restarting some times (The lines with INIT:TSP:OK), although i have already added a decoupling capacitor and the power comes from a 2A-enabled Power Source.

          This is the output of the sensor node: http://pastebin.com/1ZCkWNnL - there, also a decoupling capacitor and a 2A-enabled USB Power source.

          To me, it looks like the gateway does indeed receive some messages from the node (the lines like

          0;255;3;0;9;TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
          0;255;3;0;9;TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
          

          look suspicious), but the node does not receive anything. It sends messages, and fails after that.
          During all this time, the log file of Home Assistant is empty, which means, there are no new lines associated to the MySensors component.

          So i am asking: Am i right with my assumptions regarding the log files? If yes, why does the receive on the node side fail? If no, what could be other reasons for the process to fail? I am quite sure it's not the distance between the two devices which is too big - they're lying right next to each other on my soldering table.

          So, any advices could be very helpful. Thank you.

          Boots33B Offline
          Boots33B Offline
          Boots33
          Hero Member
          wrote on last edited by
          #4

          @simonszu said in Need help with initial setup:

          It looks like it is restarting some times

          There were some issues with the w5100 and some ide versions causing the gateway to constantly re start

          Have a look at

          GatewayW5100 - unable to get working w/ v2.0.0

          MySensors 2.0 Ethernet gateway Atmega+W5100) restart all time

          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