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. Home Assistant
  4. Node 0 unknown, error decoding message from gateway

Node 0 unknown, error decoding message from gateway

Scheduled Pinned Locked Moved Home Assistant
15 Posts 2 Posters 3.5k Views 2 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.
  • martinhjelmareM Offline
    martinhjelmareM Offline
    martinhjelmare
    Plugin Developer
    wrote on last edited by
    #5

    Looks like presentation function is never called. Try calling it yourself from setup.

    1 Reply Last reply
    0
    • MaKinM Offline
      MaKinM Offline
      MaKin
      wrote on last edited by
      #6

      How would you do that? You can see my sketch above.

      1 Reply Last reply
      0
      • martinhjelmareM Offline
        martinhjelmareM Offline
        martinhjelmare
        Plugin Developer
        wrote on last edited by
        #7

        Put this after the gateway present call in setup:

        presentation();
        

        Also replace all sleep with wait. The gateway is not allowed to sleep.

        MaKinM 1 Reply Last reply
        1
        • martinhjelmareM martinhjelmare

          Put this after the gateway present call in setup:

          presentation();
          

          Also replace all sleep with wait. The gateway is not allowed to sleep.

          MaKinM Offline
          MaKinM Offline
          MaKin
          wrote on last edited by MaKin
          #8

          @martinhjelmare said:

          presentation();

          I'll try that. Thanks. :)

          Now this error remains:

          16-12-17 21:58:00 mysensors.mysensors: Error decoding message from gateway, bad data received: T: 23.90
          
          16-12-17 21:58:00 mysensors.mysensors: Error decoding message from gateway, bad data received: H: 49.30
          
          16-12-17 21:58:02 mysensors.mysensors: Error decoding message from gateway, bad data received: T: 24.00
          
          16-12-17 21:58:14 mysensors.mysensors: Error decoding message from gateway, bad data received: T: 23.90
          

          But the sensors are listed in HASS:

          sensor.temperatureandhumidity_0_0:

          friendly_name: TemperatureAndHumidity 0 0
          V_HUM: 49.2
          node_id: 0
          device: /dev/ttyACM0
          battery_level: 0
          description: 
          child_id: 0
          unit_of_measurement: %
          
          1 Reply Last reply
          0
          • martinhjelmareM Offline
            martinhjelmareM Offline
            martinhjelmare
            Plugin Developer
            wrote on last edited by martinhjelmare
            #9

            That's because you are printing debug to serial from the gateway and the controller doesn't expect serial messages from the gateway other than mysensors API messages. Either ignore the errors or remove those debug prints.

            MaKinM 1 Reply Last reply
            1
            • martinhjelmareM martinhjelmare

              That's because you are printing debug to serial from the gateway and the controller doesn't expect serial messages from the gateway other than mysensors API messages. Either ignore the errors or remove those debug prints.

              MaKinM Offline
              MaKinM Offline
              MaKin
              wrote on last edited by
              #10

              @martinhjelmare thank you so much for your help. :)

              Is there a way to declare sensor names so that HA receives a presentation with something like

              mysensors.livingroom.temp

              Instead of a more cryptic name with node_id?

              1 Reply Last reply
              1
              • martinhjelmareM Offline
                martinhjelmareM Offline
                martinhjelmare
                Plugin Developer
                wrote on last edited by
                #11

                The entity_id always has the same structure, sketchname_nodeid_childid. You can customize the friendly_name in the config under customize to change what is shown in the gui as name of the sensor.

                1 Reply Last reply
                1
                • MaKinM Offline
                  MaKinM Offline
                  MaKin
                  wrote on last edited by
                  #12

                  But my Sketch name is SerialGateWayDHT22 and my sensors are called sensor.temperatureandhumidity_0_0 and sensor.temperatureandhumidity_0_1. If it was the Sketchname, it was much simpler to assign the sensors to the rooms later as I could simply name the switch after the room.

                  But it's not much of a problem, as like you said friendly names can be used.

                  1 Reply Last reply
                  0
                  • martinhjelmareM Offline
                    martinhjelmareM Offline
                    martinhjelmare
                    Plugin Developer
                    wrote on last edited by martinhjelmare
                    #13

                    By sketchname I mean what you send to the controller as sketchname using sendSketchInfo method. This is from your sketch:

                      // Send the sketch version information to the gateway
                      sendSketchInfo("TemperatureAndHumidity", "1.1");
                    
                    1 Reply Last reply
                    0
                    • MaKinM Offline
                      MaKinM Offline
                      MaKin
                      wrote on last edited by
                      #14

                      Just saw that myself. Thanks once again. I'm starting to feel embarrassed... :)

                      1 Reply Last reply
                      1
                      • martinhjelmareM Offline
                        martinhjelmareM Offline
                        martinhjelmare
                        Plugin Developer
                        wrote on last edited by
                        #15

                        Happy to help and great to hear about user stories and also any feedback, both when things are working and when things are not working or missing features.

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


                        16

                        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