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. Problem adding nodes to HA

Problem adding nodes to HA

Scheduled Pinned Locked Moved Home Assistant
2 Posts 2 Posters 1.7k 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.
  • M Offline
    M Offline
    mardah
    Hardware Contributor
    wrote on last edited by
    #1

    Hi

    I think I have read all threads about adding nodes to HA but I have not found a solution to my problem.

    I have an existing Ethernet GW and several nodes around the house. Currently I'm using Vera and all nodes and GW are working. I would like to switch to HA and have added the following to configuration.yaml

    mysensors:
      gateways:
        - device: '192.168.1.31'
          persistence_file: '/home/homeassistant/.homeassistant/mysensors.json'
          tcp_port: 5003
      optimistic: false
      persistence: true
      retain: true
      version: 1.5
    

    When I restart a node it should send presentation followed by initial values. Since it is working with the Vera I assume that part is working but still the nodes aren't added to HA.

    2017-07-19 09:39:06 DEBUG (Thread-7) [homeassistant.components.mysensors] Update: node 6, child 255 sub_type 18
    2017-07-19 09:39:06 DEBUG (Thread-7) [homeassistant.components.mysensors] No sketch_name: node 6
    2017-07-19 09:39:06 DEBUG (Thread-7) [homeassistant.components.mysensors] No sketch_name: node 6
    2017-07-19 09:39:06 DEBUG (Thread-7) [homeassistant.components.mysensors] No sketch_name: node 6
    2017-07-19 09:39:06 DEBUG (Thread-7) [homeassistant.components.mysensors] No sketch_name: node 6
    2017-07-19 09:39:06 DEBUG (Thread-7) [homeassistant.components.mysensors] No sketch_name: node 6
    2017-07-19 09:39:06 DEBUG (Thread-7) [homeassistant.components.mysensors] No sketch_name: node 6
    2017-07-19 09:39:06 DEBUG (Thread-7) [mysensors.gateway_tcp] Sending 6;255;3;0;6;M
    2017-07-19 09:39:13 DEBUG (Thread-7) [mysensors.gateway_tcp] Sending 0;255;3;0;2;
    2017-07-19 09:39:23 INFO (Thread-7) [mysensors.gateway_tcp] Closing socket at ('192.168.1.31', 5003).
    2017-07-19 09:39:23 ERROR (Thread-7) [mysensors.gateway_tcp] Failed to shutdown socket at ('192.168.1.31', 5003).
    2017-07-19 09:39:23 INFO (Thread-7) [mysensors.gateway_tcp] Socket closed at ('192.168.1.31', 5003).
    2017-07-19 09:39:23 INFO (Thread-7) [mysensors.gateway_tcp] No response. Disconnected.
    2017-07-19 09:39:23 INFO (Thread-7) [mysensors.gateway_tcp] Trying to connect to ('192.168.1.31', 5003)
    2017-07-19 09:39:23 INFO (Thread-7) [mysensors.gateway_tcp] Connected to ('192.168.1.31', 5003)
    2017-07-19 09:39:23 DEBUG (Thread-7) [mysensors.gateway_tcp] Sending 0;255;3;0;2;
    2017-07-19 09:39:23 DEBUG (Thread-7) [mysensors.gateway_tcp] Received 0;0;3;0;14;Gateway startup complete.
    

    Why is the Ethernet GW disconnected after the node sends it presentation? Also, the node does send a sketch name and version, it is visible in Vera.

    BR
    Martrin

    martinhjelmareM 1 Reply Last reply
    0
    • M mardah

      Hi

      I think I have read all threads about adding nodes to HA but I have not found a solution to my problem.

      I have an existing Ethernet GW and several nodes around the house. Currently I'm using Vera and all nodes and GW are working. I would like to switch to HA and have added the following to configuration.yaml

      mysensors:
        gateways:
          - device: '192.168.1.31'
            persistence_file: '/home/homeassistant/.homeassistant/mysensors.json'
            tcp_port: 5003
        optimistic: false
        persistence: true
        retain: true
        version: 1.5
      

      When I restart a node it should send presentation followed by initial values. Since it is working with the Vera I assume that part is working but still the nodes aren't added to HA.

      2017-07-19 09:39:06 DEBUG (Thread-7) [homeassistant.components.mysensors] Update: node 6, child 255 sub_type 18
      2017-07-19 09:39:06 DEBUG (Thread-7) [homeassistant.components.mysensors] No sketch_name: node 6
      2017-07-19 09:39:06 DEBUG (Thread-7) [homeassistant.components.mysensors] No sketch_name: node 6
      2017-07-19 09:39:06 DEBUG (Thread-7) [homeassistant.components.mysensors] No sketch_name: node 6
      2017-07-19 09:39:06 DEBUG (Thread-7) [homeassistant.components.mysensors] No sketch_name: node 6
      2017-07-19 09:39:06 DEBUG (Thread-7) [homeassistant.components.mysensors] No sketch_name: node 6
      2017-07-19 09:39:06 DEBUG (Thread-7) [homeassistant.components.mysensors] No sketch_name: node 6
      2017-07-19 09:39:06 DEBUG (Thread-7) [mysensors.gateway_tcp] Sending 6;255;3;0;6;M
      2017-07-19 09:39:13 DEBUG (Thread-7) [mysensors.gateway_tcp] Sending 0;255;3;0;2;
      2017-07-19 09:39:23 INFO (Thread-7) [mysensors.gateway_tcp] Closing socket at ('192.168.1.31', 5003).
      2017-07-19 09:39:23 ERROR (Thread-7) [mysensors.gateway_tcp] Failed to shutdown socket at ('192.168.1.31', 5003).
      2017-07-19 09:39:23 INFO (Thread-7) [mysensors.gateway_tcp] Socket closed at ('192.168.1.31', 5003).
      2017-07-19 09:39:23 INFO (Thread-7) [mysensors.gateway_tcp] No response. Disconnected.
      2017-07-19 09:39:23 INFO (Thread-7) [mysensors.gateway_tcp] Trying to connect to ('192.168.1.31', 5003)
      2017-07-19 09:39:23 INFO (Thread-7) [mysensors.gateway_tcp] Connected to ('192.168.1.31', 5003)
      2017-07-19 09:39:23 DEBUG (Thread-7) [mysensors.gateway_tcp] Sending 0;255;3;0;2;
      2017-07-19 09:39:23 DEBUG (Thread-7) [mysensors.gateway_tcp] Received 0;0;3;0;14;Gateway startup complete.
      

      Why is the Ethernet GW disconnected after the node sends it presentation? Also, the node does send a sketch name and version, it is visible in Vera.

      BR
      Martrin

      martinhjelmareM Offline
      martinhjelmareM Offline
      martinhjelmare
      Plugin Developer
      wrote on last edited by martinhjelmare
      #2

      @mardah

      Hi! Home assistant sends a request for gateway version every 10 seconds and if the gateway doesn't respond with version within another 10 seconds, home assistant disconnects from the gateway and tries to reconnect.

      Have you monitored your gateway serial port during these tests? Seeing that side of the conversation would be interesting. The gateway not responding to the version request is a sign that something is not working properly with the gateway, or that it is unstable. Once I had this issue when I had built the gateway sketch with an avr version that had a bug, and caused the gateway to reboot when starting the communication.

      This post describes what version of avr had the bug:
      https://forum.mysensors.org/topic/6257/ethernet-gateway-home-assitant/4

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


      23

      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