Problem adding nodes to HA


  • Hardware Contributor

    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


  • Plugin Developer

    @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


Log in to reply
 

Suggested Topics

  • 1
  • 2
  • 1
  • 5
  • 3

0
Online

11.4k
Users

11.1k
Topics

112.7k
Posts