Presentation failing



  • I'm trying to use Home Assistant as a controller for three nodes (two S_COVER, one S_HVAC) via a serial gateway (protocol v2.0). My nodes present to MYSController just fine, but not to HA. Here are the messages from HA when a node is reset. They appear the same on my Windows laptop as on my Fedora machine.

    Can anyone help me? I'm really excited to automate these devices!

    WARNING:mysensors.mysensors:Node 3 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    WARNING:mysensors.mysensors:Node 3 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    WARNING:mysensors.mysensors:Node 3 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    WARNING:mysensors.mysensors:Node 3 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    ERROR:mysensors.mysensors:Node 3 is unknown, will not add child 10.
    WARNING:mysensors.mysensors:Node 3 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    WARNING:mysensors.mysensors:Node 3 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    WARNING:mysensors.mysensors:Node 3 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    ERROR:mysensors.mysensors:Node 3 is unknown, will not add child 10.
    WARNING:mysensors.mysensors:Node 3 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    WARNING:mysensors.mysensors:Node 3 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    WARNING:mysensors.mysensors:Node 3 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    ERROR:mysensors.mysensors:Node 3 is unknown, will not add child 10.
    WARNING:mysensors.mysensors:Node 3 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    WARNING:mysensors.mysensors:Node 3 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    WARNING:mysensors.mysensors:Node 3 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    ERROR:mysensors.mysensors:Node 3 is unknown, will not add child 10.
    WARNING:mysensors.mysensors:Node 3 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    WARNING:mysensors.mysensors:Node 3 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    WARNING:mysensors.mysensors:Node 3 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    ERROR:mysensors.mysensors:Node 3 is unknown, will not add child 10.
    WARNING:mysensors.mysensors:Node 3 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    WARNING:mysensors.mysensors:Node 3 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    WARNING:mysensors.mysensors:Node 3 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    ERROR:mysensors.mysensors:Node 3 is unknown, will not add child 10.
    WARNING:mysensors.mysensors:Node 3 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    WARNING:mysensors.mysensors:Node 3 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    WARNING:mysensors.mysensors:Node 3 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    ERROR:mysensors.mysensors:Node 3 is unknown, will not add child 10.
    WARNING:mysensors.mysensors:Node 3 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    WARNING:mysensors.mysensors:Node 3 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    WARNING:mysensors.mysensors:Node 3 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    ERROR:mysensors.mysensors:Node 3 is unknown, will not add child 10.
    WARNING:mysensors.mysensors:Node 3 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    WARNING:mysensors.mysensors:Node 3 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    WARNING:mysensors.mysensors:Node 3 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    ERROR:mysensors.mysensors:Node 3 is unknown, will not add child 10.
    WARNING:mysensors.mysensors:Node 3 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    WARNING:mysensors.mysensors:Node 3 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    WARNING:mysensors.mysensors:Node 3 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    ERROR:mysensors.mysensors:Node 3 is unknown, will not add child 10.
    WARNING:mysensors.mysensors:Node 3 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    WARNING:mysensors.mysensors:Node 3 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    WARNING:mysensors.mysensors:Node 3 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    ERROR:mysensors.mysensors:Node 3 is unknown, will not add child 10.
    WARNING:mysensors.mysensors:Node 3 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    WARNING:mysensors.mysensors:Node 3 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    WARNING:mysensors.mysensors:Node 3 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    ERROR:mysensors.mysensors:Node 3 is unknown, will not add child 10.
    WARNING:mysensors.mysensors:Node 3 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    WARNING:mysensors.mysensors:Node 3 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    WARNING:mysensors.mysensors:Node 3 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    ERROR:mysensors.mysensors:Node 3 is unknown, will not add child 10.
    WARNING:mysensors.mysensors:Node 3 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    WARNING:mysensors.mysensors:Node 3 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    WARNING:mysensors.mysensors:Node 3 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    ERROR:mysensors.mysensors:Node 3 is unknown, will not add child 10.
    INFO:homeassistant.components.mysensors:No sketch_name: node 3
    INFO:homeassistant.components.mysensors:No sketch_name: node 3
    INFO:homeassistant.components.mysensors:No sketch_name: node 3
    INFO:homeassistant.components.mysensors:No sketch_name: node 3
    INFO:homeassistant.components.mysensors:No sketch_name: node 3
    INFO:homeassistant.components.mysensors:No sketch_name: node 3
    WARNING:mysensors.mysensors:Child 255 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    WARNING:mysensors.mysensors:Child 10 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    ERROR:netdisco.ssdp:Error fetching description at http://192.168.0.1:8200/rootDesc.xml
    WARNING:mysensors.mysensors:Child 10 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 3
    

  • Plugin Developer

    Looks like the node presentation message is not sent/received. Are the sensors local on the gateway?



  • No, the sensors communicate via RF24.


  • Plugin Developer

    Then I think there's a comm issue. Post a serial debug log from a node, and we'll know.



  • I plugged in the gateway and reset one of the (S_COVER) nodes:

    0;255;3;0;14;Gateway startup complete.
    0;255;0;0;18;2.0.0
    3;10;2;0;3;
    3;255;3;0;6;0
    3;255;3;0;11;MyServoBlinds
    3;255;3;0;12;2
    3;10;0;0;5;North
    

  • Plugin Developer

    Yeah, you're missing a node presentation message from node 3. If you can hook up the node via serial/USB and get a debug log, you can confirm if the node tries to send the message and fails, or if something else is going on. Comm issues are usually radio/power/distance related. You can follow the debug schema in the sticky thread in the troubleshooting section.



  • @martinhjelmare Isn't that fourth message a presentation message?

    I think that I actually had two problems:

    First, I was erroneously requesting information from the controller in my setup() function, before presentation(). I mixed old and new sample code without knowing what I was doing. This is now fixed.

    Second, my nodes were not reporting any initial state, so HA was not showing them in the GUI. This sounds like reasonable behaviour, so why do no actuator node sketches report EEPROM-saved state on presentation? I have just hacked a sketch to do this, and the node shows in HA correctly. But messages fail to send from inside presentation(), so I have to watch for a flag in my loop(). Why is this?

    void loop()
    {
      if(needreport)
      {
        needreport = false;
        report();
      }
    }
    

  • Plugin Developer

    There are two presentation messages in the output. One is from the gateway presenting itself as node 0. One is from node 3 presenting child 10 as sensor type 5. There is no presentation of node 3 itself.

    Until a node is registered at the gateway it can't send any set/req messages. Registration happens after presentation is finished. In mysensors 2.0 registration is done after setup is called. In mysensors development branch setup is done after registration.


Log in to reply
 

Suggested Topics

  • 1
  • 5
  • 8
  • 3
  • 17
  • 1

0
Online

11.4k
Users

11.1k
Topics

112.7k
Posts