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. Mysensors Node not being recognized (added)

Mysensors Node not being recognized (added)

Scheduled Pinned Locked Moved Home Assistant
3 Posts 3 Posters 358 Views 3 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.
  • pw44P Offline
    pw44P Offline
    pw44
    wrote on last edited by
    #1

    Hi All,

    i have HA Core and mysensors gateway + one mysensors door sensor node.

    I simply not finding out how to add the node to be monitored.

    Log debug shows:

    root@wolke:/var/homeassistant/homeassistant# cat home-assistant.log 
    2020-07-06 08:47:01 INFO (MainThread) [homeassistant.setup] Setting up http
    2020-07-06 08:47:01 INFO (MainThread) [homeassistant.setup] Setup of domain logger took 0.2 seconds.
    2020-07-06 08:47:01 INFO (MainThread) [homeassistant.setup] Setup of domain http took 0.0 seconds.
    2020-07-06 08:47:01 INFO (MainThread) [homeassistant.setup] Setting up system_log
    2020-07-06 08:47:01 INFO (MainThread) [homeassistant.setup] Setup of domain system_log took 0.0 seconds.
    2020-07-06 08:47:01 INFO (MainThread) [homeassistant.setup] Setup of domain recorder took 0.1 seconds.
    2020-07-06 08:47:01 INFO (MainThread) [homeassistant.bootstrap] Setting up stage 1: {'cloud', 'alexa', 'auth', 'frontend', 'websocket_api', 'config', 'system_log', 'person', 'lovelace', 'device_automation', 'search', 'webhook', 'onboarding', 'api', 'http'}
    2020-07-06 08:47:01 INFO (MainThread) [homeassistant.setup] Setting up person
    2020-07-06 08:47:01 INFO (MainThread) [homeassistant.setup] Setting up lovelace
    2020-07-06 08:47:01 INFO (MainThread) [homeassistant.setup] Setting up device_automation
    2020-07-06 08:47:01 INFO (MainThread) [homeassistant.setup] Setting up alexa
    2020-07-06 08:47:01 INFO (MainThread) [homeassistant.setup] Setting up auth
    2020-07-06 08:47:01 INFO (MainThread) [homeassistant.setup] Setting up websocket_api
    2020-07-06 08:47:01 INFO (MainThread) [homeassistant.setup] Setting up config
    2020-07-06 08:47:01 INFO (MainThread) [homeassistant.setup] Setup of domain device_automation took 0.1 seconds.
    2020-07-06 08:47:01 INFO (MainThread) [homeassistant.setup] Setting up webhook
    2020-07-06 08:47:01 INFO (MainThread) [homeassistant.setup] Setting up api
    2020-07-06 08:47:01 INFO (MainThread) [homeassistant.setup] Setup of domain alexa took 0.0 seconds.
    2020-07-06 08:47:01 INFO (MainThread) [homeassistant.setup] Setup of domain auth took 0.0 seconds.
    2020-07-06 08:47:01 INFO (MainThread) [homeassistant.setup] Setup of domain websocket_api took 0.0 seconds.
    2020-07-06 08:47:01 INFO (MainThread) [homeassistant.setup] Setup of domain webhook took 0.0 seconds.
    2020-07-06 08:47:01 INFO (MainThread) [homeassistant.setup] Setup of domain api took 0.0 seconds.
    2020-07-06 08:47:01 INFO (MainThread) [homeassistant.setup] Setup of domain lovelace took 0.1 seconds.
    2020-07-06 08:47:01 INFO (MainThread) [homeassistant.setup] Setup of domain config took 0.0 seconds.
    2020-07-06 08:47:01 INFO (MainThread) [homeassistant.setup] Setting up search
    2020-07-06 08:47:01 INFO (MainThread) [homeassistant.setup] Setup of domain search took 0.0 seconds.
    2020-07-06 08:47:01 INFO (SyncWorker_2) [homeassistant.loader] Loaded camera from homeassistant.components.camera
    2020-07-06 08:47:01 INFO (MainThread) [homeassistant.setup] Setup of domain person took 0.1 seconds.
    2020-07-06 08:47:01 INFO (SyncWorker_4) [homeassistant.loader] Loaded google_assistant from homeassistant.components.google_assistant
    2020-07-06 08:47:01 INFO (SyncWorker_2) [homeassistant.loader] Loaded media_player from homeassistant.components.media_player
    2020-07-06 08:47:01 INFO (MainThread) [homeassistant.setup] Setting up onboarding
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setting up cloud
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setup of domain onboarding took 0.7 seconds.
    2020-07-06 08:47:02 INFO (SyncWorker_8) [homeassistant.loader] Loaded device_tracker from homeassistant.components.device_tracker
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setup of domain cloud took 0.0 seconds.
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setting up frontend
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setup of domain frontend took 0.0 seconds.
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.bootstrap] Setting up stage 2: {'default_config', 'input_number', 'input_select', 'zeroconf', 'mysensors', 'updater', 'group', 'scene', 'tts', 'ipp', 'logbook', 'automation', 'zone', 'geo_location', 'sun', 'history', 'system_health', 'nextcloud', 'script', 'mobile_app', 'ssdp', 'input_text', 'mqtt', 'input_datetime', 'map', 'input_boolean', 'upnp', 'met'}
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setting up input_number
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setting up input_select
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setting up updater
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setting up group
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setting up scene
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setting up automation
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setting up zone
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setting up sun
    2020-07-06 08:47:02 INFO (SyncWorker_11) [homeassistant.loader] Loaded geo_json_events from homeassistant.components.geo_json_events
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setting up nextcloud
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setting up script
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setting up input_text
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setting up input_datetime
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setting up input_boolean
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setting up met
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.components.scene] Setting up scene.homeassistant
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setting up geo_location
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setup of domain updater took 0.1 seconds.
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setup of domain group took 0.1 seconds.
    2020-07-06 08:47:02 INFO (SyncWorker_7) [homeassistant.loader] Loaded binary_sensor from homeassistant.components.binary_sensor
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setting up logbook
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setup of domain automation took 0.1 seconds.
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setup of domain sun took 0.1 seconds.
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setting up history
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setting up system_health
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setup of domain script took 0.1 seconds.
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setting up map
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setup of domain met took 0.1 seconds.
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.components.geo_location] Setting up geo_location.geo_json_events
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setting up binary_sensor
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setting up zeroconf
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setup of domain geo_location took 0.1 seconds.
    2020-07-06 08:47:02 INFO (SyncWorker_13) [homeassistant.loader] Loaded google_translate from homeassistant.components.google_translate
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setting up ipp
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setup of domain history took 0.1 seconds.
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setup of domain system_health took 0.1 seconds.
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setting up mobile_app
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setting up mqtt
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setup of domain map took 0.1 seconds.
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setup of domain scene took 0.2 seconds.
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setup of domain input_number took 0.2 seconds.
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setup of domain input_select took 0.2 seconds.
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setup of domain input_text took 0.2 seconds.
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setup of domain input_datetime took 0.2 seconds.
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setup of domain input_boolean took 0.2 seconds.
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setup of domain binary_sensor took 0.1 seconds.
    2020-07-06 08:47:02 INFO (SyncWorker_8) [homeassistant.loader] Loaded weather from homeassistant.components.weather
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setting up tts
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setting up upnp
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setup of domain ipp took 0.1 seconds.
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setup of domain logbook took 0.2 seconds.
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setup of domain mqtt took 0.0 seconds.
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setting up weather
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setup of domain zone took 0.2 seconds.
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.updater
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setup of domain weather took 0.0 seconds.
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setup of domain mobile_app took 0.1 seconds.
    2020-07-06 08:47:02 INFO (SyncWorker_3) [homeassistant.loader] Loaded notify from homeassistant.components.notify
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.components.weather] Setting up weather.met
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setup of domain upnp took 0.0 seconds.
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setting up notify
    2020-07-06 08:47:02 WARNING (zeroconf-ServiceBrowser__elg._tcp.local.-_ipps._tcp.local.-_miio._udp.local.-_googlecast._tcp.local.-_api._udp.local.-_daap._tcp.local.-_esphomelib._tcp.local.-_printer._tcp.local.-_nut._tcp.local.-_spotify-connect._tcp.local.-_dkapi._tcp.local.-_ipp._tcp.local.-_axis-video._tcp.local.-_hap._tcp.local.-_wled._tcp.local.-_viziocast._tcp.local._140061348976384) [zeroconf] Error sending through socket 12
    Traceback (most recent call last):
      File "/var/homeassistant/lib/python3.7/site-packages/zeroconf/__init__.py", line 2792, in send
        bytes_sent = s.sendto(packet, 0, (real_addr, port))
    OSError: [Errno 126] Required key not available
    2020-07-06 08:47:02 INFO (Thread-5) [homeassistant.components.mqtt] Connected to MQTT server wolke.wollny.com.br:1883 (0)
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.mobile_app
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setup of domain notify took 0.0 seconds.
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setup of domain zeroconf took 0.2 seconds.
    2020-07-06 08:47:02 INFO (SyncWorker_18) [homeassistant.loader] Loaded sensor from homeassistant.components.sensor
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setting up device_tracker
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setup of domain tts took 0.1 seconds.
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setting up sensor
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.components.notify] Setting up notify.mobile_app
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setting up ssdp
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setup of domain sensor took 0.0 seconds.
    2020-07-06 08:47:02 INFO (SyncWorker_5) [homeassistant.loader] Loaded brother from homeassistant.components.brother
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setting up mysensors
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setup of domain device_tracker took 0.1 seconds.
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.setup] Setup of domain ssdp took 0.0 seconds.
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.mobile_app
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.ipp
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.components.device_tracker] Setting up device_tracker.mobile_app
    2020-07-06 08:47:02 INFO (MainThread) [homeassistant.components.sensor] Not adding entity HP LaserJet 1010 - CUPS+Gutenprint v5.2.13 Uptime because it's disabled
    2020-07-06 08:47:03 WARNING (SyncWorker_9) [mysensors.persistence] File does not exist or is not readable: /var/homeassistant/.homeassistant/mysensors.json
    2020-07-06 08:47:03 INFO (MainThread) [homeassistant.setup] Setting up default_config
    2020-07-06 08:47:03 WARNING (SyncWorker_9) [mysensors.persistence] Trying backup file: /var/homeassistant/.homeassistant/mysensors.json.bak
    2020-07-06 08:47:03 WARNING (SyncWorker_9) [mysensors.persistence] File does not exist or is not readable: /var/homeassistant/.homeassistant/mysensors.json.bak
    2020-07-06 08:47:03 WARNING (SyncWorker_9) [mysensors.persistence] Failed to load sensors from file: /var/homeassistant/.homeassistant/mysensors.json
    2020-07-06 08:47:03 DEBUG (SyncWorker_7) [mysensors.persistence] Saving sensors to persistence file /var/homeassistant/.homeassistant/mysensors.json
    2020-07-06 08:47:03 INFO (MainThread) [homeassistant.setup] Setup of domain default_config took 0.0 seconds.
    2020-07-06 08:47:03 INFO (MainThread) [homeassistant.setup] Setup of domain mysensors took 0.5 seconds.
    2020-07-06 08:47:03 INFO (MainThread) [mysensors.gateway_tcp] Trying to connect to ('192.168.80.9', 5003)
    2020-07-06 08:47:03 INFO (MainThread) [mysensors] Connected to <_SelectorSocketTransport fd=23 read=polling write=<idle, bufsize=0>>
    2020-07-06 08:47:03 DEBUG (MainThread) [mysensors] Receiving 0;255;3;0;14;Gateway startup complete.
    2020-07-06 08:47:03 INFO (MainThread) [mysensors.handler] n:0 c:255 t:3 s:14 p:Gateway startup complete.
    2020-07-06 08:47:03 DEBUG (MainThread) [homeassistant.components.mysensors.gateway] Node update: node 0 child 255
    2020-07-06 08:47:03 DEBUG (MainThread) [mysensors] Receiving 0;255;0;0;18;2.3.2
    2020-07-06 08:47:03 DEBUG (MainThread) [homeassistant.components.mysensors.gateway] Node update: node 0 child 255
    2020-07-06 08:47:03 INFO (MainThread) [homeassistant.components.updater] Submitted analytics to Home Assistant servers. Information submitted includes {}
    2020-07-06 08:47:04 INFO (MainThread) [homeassistant.setup] Setup of domain nextcloud took 1.7 seconds.
    2020-07-06 08:47:04 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.nextcloud
    2020-07-06 08:47:04 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.nextcloud
    2020-07-06 08:47:12 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.upnp
    2020-07-06 08:47:12 INFO (MainThread) [homeassistant.bootstrap] Home Assistant initialized in 11.66s
    2020-07-06 08:47:12 INFO (MainThread) [homeassistant.core] Starting Home Assistant
    2020-07-06 08:47:12 INFO (SyncWorker_6) [homeassistant.components.zeroconf] Starting Zeroconf broadcast
    2020-07-06 08:47:13 DEBUG (SyncWorker_17) [mysensors.persistence] Saving sensors to persistence file /var/homeassistant/.homeassistant/mysensors.json
    2020-07-06 08:47:13 DEBUG (MainThread) [mysensors] Sending 0;255;3;0;2;
    2020-07-06 08:47:13 DEBUG (MainThread) [mysensors] Receiving 0;255;3;0;2;2.3.2
    2020-07-06 08:47:14 INFO (MainThread) [homeassistant.core] Timer:starting
    2020-07-06 08:47:23 DEBUG (MainThread) [mysensors] Sending 0;255;3;0;2;
    2020-07-06 08:47:23 DEBUG (MainThread) [mysensors] Receiving 0;255;3;0;2;2.3.2
    2020-07-06 08:47:33 DEBUG (MainThread) [mysensors] Sending 0;255;3;0;2;
    2020-07-06 08:47:33 DEBUG (MainThread) [mysensors] Receiving 0;255;3;0;2;2.3.2
    2020-07-06 08:47:43 DEBUG (MainThread) [mysensors] Sending 0;255;3;0;2;
    2020-07-06 08:47:43 DEBUG (MainThread) [mysensors] Receiving 0;255;3;0;2;2.3.2
    2020-07-06 08:47:53 DEBUG (MainThread) [mysensors] Sending 0;255;3;0;2;
    2020-07-06 08:47:53 DEBUG (MainThread) [mysensors] Receiving 0;255;3;0;2;2.3.2
    2020-07-06 08:48:03 DEBUG (MainThread) [mysensors] Sending 0;255;3;0;2;
    2020-07-06 08:48:04 DEBUG (MainThread) [mysensors] Receiving 0;255;3;0;2;2.3.2
    
    

    mysensors.json shows:

    root@wolke:/var/homeassistant/homeassistant# cat mysensors.json 
    {
        "0": {
            "sensor_id": 0,
            "children": {},
            "type": 18,
            "sketch_name": null,
            "sketch_version": null,
            "battery_level": 0,
            "protocol_version": "2.3.2",
            "heartbeat": 0
        }
    
    

    What am i missing in order to have UI showing the node?

    Thx in advance

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Sasquatch
      wrote on last edited by
      #2

      you add entry for your door sensor node to mysensors.json
      AFAIK HA can't detect and automatically add your nodes

      1 Reply Last reply
      0
      • monteM Offline
        monteM Offline
        monte
        wrote on last edited by
        #3

        Please read carefully the HA documentation: https://www.home-assistant.io/integrations/mysensors/
        There it says that you need to present your node to HA by sending initial value of the node. Then HA adds it to its device list.

        if (!initialValueSent) {
            Serial.println("Sending initial value");
            send(msg.set(state?RELAY_ON:RELAY_OFF));
            Serial.println("Requesting initial value from controller");
            request(CHILD_ID, V_STATUS);
            wait(2000, C_SET, V_STATUS);
          }
        
        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


        25

        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