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. None nnn Node in Home Assistant

None nnn Node in Home Assistant

Scheduled Pinned Locked Moved Home Assistant
home assistantnrf5nrf52832node
5 Posts 3 Posters 71 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.
  • K Offline
    K Offline
    KevinT
    wrote last edited by
    #1

    I ran into a problem while testing out an nRF52832 board with home assistant. Sometimes, when a new node connected, it would show in Home Assistsant as None nnn (where nnn is the node number) with only a battery sensor and no other sensors. Looking in the mysensors.json file, I found the sensors were defined but the sketch_name was "null".

        "211": {
            "sensor_id": 211,
            "children": {
                "0": {
                    "id": 0,
                    "type": 6,
                    "description": "Temperature",
                    "values": {
                        "0": "22.99"
                    }
                },
                "1": {
                    "id": 1,
                    "type": 8,
                    "description": "Pressure",
                    "values": {
                        "43": "kPa",
                        "4": "101.86"
                    }
                }
            },
            "type": 17,
            "sketch_name": null,
            "sketch_version": "1.0",
            "battery_level": 0,
            "protocol_version": "2.3.2",
            "heartbeat": 0
        }
    

    The sketch name is set by sendSketchInfo(), which made me think that this message was getting lost sometimes, perhaps the transport message system was still processing previous messages.
    I added a 10ms wait, and the problem was solved, the nodes now consistently register with home assistant.

    void presentation()  {
      // Send the sketch name & version information to the gateway and Controller
      wait(10);		// allow transport to setup, sometimes sketch info is being lost
      sendSketchInfo("BMP280 Sensor", "1.0");
    
      present(CHILD_ID_TEMP, S_TEMP, "Temperature");
      present(CHILD_ID_PRES, S_BARO, "Pressure");
    }
    

    I just thought I would share this, in case others run into the same problem.

    1 Reply Last reply
    0
    • OldSurferDudeO Offline
      OldSurferDudeO Offline
      OldSurferDude
      wrote last edited by
      #2

      Yeah, you need the sketch name.

      I found that wait() was required pretty much after every send. I don't why exactly, I suspect the the send commands were overrunning the previous send command.

      nagelcN 1 Reply Last reply
      0
      • K Offline
        K Offline
        KevinT
        wrote last edited by
        #3

        Good to know. I'll have to check and see if all my sensor measurements are getting through to ha. Out of curiosity, what hardware are you using for your gateway and controller?

        1 Reply Last reply
        0
        • OldSurferDudeO Offline
          OldSurferDudeO Offline
          OldSurferDude
          wrote last edited by
          #4

          Home Assistant is my controller. It runs in a virtualbox under linux on a refurbished PC. On that same computer I run an MQTT broker (not using HA's)

          My gateway, which uses MQTT for transport, runs on an RPi zero 2W running Raspberry Pi OS. It also controls my irrigation relays.

          I also have a serial gateway which has no radio network which is its own node for "pushing" the buttons on a remote control. This gateway essentially gives a PC digital IO.

          1 Reply Last reply
          0
          • OldSurferDudeO OldSurferDude

            Yeah, you need the sketch name.

            I found that wait() was required pretty much after every send. I don't why exactly, I suspect the the send commands were overrunning the previous send command.

            nagelcN Offline
            nagelcN Offline
            nagelc
            wrote last edited by
            #5

            @OldSurferDude said:

            Yeah, you need the sketch name.

            I found that wait() was required pretty much after every send. I don't why exactly, I suspect the the send commands were overrunning the previous send command.

            I second this. Waiting after send can help some odd behavior.

            I have also had nodes the performed well with debug turned on, then not work when it is off. The debug prints are slow in processor time and I think they act like a wait. If this happens, check where you have debug messages and try some waits there, especially if it is after a send.

            1 Reply Last reply
            0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            33

            Online

            12.0k

            Users

            11.2k

            Topics

            113.4k

            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