"Node 1 is unknown" requires a restart. 2nd child element never presents



  • I'm attempting to use the TemperatureAndHumidity example sketch.
    Gateway and Node are running 2.0

    When I start up the node, gateway and HA, I get repeat errors Node 1 is unknown in the HA log. To fix this, I restart the temperature sensor and the first child (child ID 0) presents and displays in HA correctly and continues to update. However, the second child (ID 1) never presents leaving HA to constantly logging:

    WARNING:mysensors.mysensors:Child 1 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 1
    

    I also tried using the dev branch of Home Assistant with the same results.

    I should also mention I tried configuring the sensor to only run with one child. That worked regardless of whether I was sending Temperature or Humidity sensor info. It seems like it is an issue with 2 or more child elements.

    Temp sensor log:
    Contains initial startup and the first restart to get it working with HA.

    MCO:BGN:INIT NODE,CP=RNNNA--,VER=2.0.1-beta
    TSM:INIT
    TSM:INIT:TSP OK
    TSF:ASID:OK,ID=1
    TSM:FPAR
    TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSF:MSG:READ,0-0-1,s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSF:MSG:FPAR RES,ID=0,D=0
    TSF:MSG:FPAR OK,ID=0,D=1
    TSM:FPAR:OK
    TSM:ID
    TSM:ID:OK,ID=1
    TSM:UPL
    TSF:PING:SEND,TO=0
    TSF:MSG:SEND,1-1-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=OK:1
    TSF:MSG:READ,0-0-1,s=255,c=3,t=25,pt=1,l=1,sg=0:1
    TSF:MSG:PONG RECV,HP=1
    TSF:CHKUPL:OK
    TSM:UPL:OK
    TSM:READY
    TSF:MSG:SEND,1-1-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
    TSF:MSG:SEND,1-1-0-0,s=255,c=0,t=17,pt=0,l=10,sg=0,ft=0,st=OK:2.0.1-beta
    TSF:MSG:SEND,1-1-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=OK:0
    TSF:MSG:READ,0-0-1,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
    TSF:MSG:SEND,1-1-0-0,s=255,c=3,t=11,pt=0,l=22,sg=0,ft=0,st=OK:TemperatureAndHumidity
    TSF:MSG:SEND,1-1-0-0,s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=OK:1.4
    TSF:MSG:SEND,1-1-0-0,s=0,c=0,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    TSF:MSG:SEND,1-1-0-0,s=1,c=0,t=6,pt=0,l=0,sg=0,ft=0,st=OK:
    MCO:REG:REQ
    !TSF:MSG:SEND,1-1-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=NACK:2
    TSF:MSG:SEND,1-1-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=1,st=OK:2
    TSF:MSG:READ,0-0-1,s=255,c=3,t=27,pt=1,l=1,sg=0:1
    MCO:PIM:NODE REG=1
    MCO:BGN:STP
    MCO:SLP:MS=1000,SMS=0,I1=255,M1=255,I2=255,M2=255
    MCO:SLP:TPD
    MCO:SLP:WUP=-1
    MCO:BGN:INIT OK,ID=1,PAR=0,DIS=1,REG=1
    TSF:MSG:SEND,1-1-0-0,s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=OK:73.4
    T: 73.40
    TSF:MSG:SEND,1-1-0-0,s=0,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=OK:56.0
    H: 56.00
    MCO:SLP:MS=10000,SMS=0,I1=255,M1=255,I2=255,M2=255
    MCO:SLP:TPD
    MCO:SLP:WUP=-1
    TSF:MSG:SEND,1-1-0-0,s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=OK:73.4
    T: 73.40
    TSF:MSG:SEND,1-1-0-0,s=0,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=OK:56.0
    H: 56.00
    MCO:SLP:MS=10000,SMS=0,I1=255,M1=255,I2=255,M2=255
    MCO:SLP:TPD
    MCO:SLP:WUP=-1
    TSF:MSG:SEND,1-1-0-0,s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=OK:73.4
    T: 73.40
    TSF:MSG:SEND,1-1-0-0,s=0,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=OK:56.0
    H: 56.00
    MCO:SLP:MS=10000,SMS=0,I1=255,M1=255,I2=255,M2=255
    MCO:SLP:TPD
    MCO:SLP:WUP=-1
    TSF:MSG:SEND,1-1-0-0,s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=OK:73.4
    T: 73.40
    TSF:MSG:SEND,1-1-0-0,s=0,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=OK:56.0
    H: 56.00
    MCO:SLP:MS=10000,SMS=0,I1=255,M1=255,I2=255,M2=255
    MCO:SLP:TPD
    MCO:BGN:INIT NODE,CP=RNNNA--,VER=2.0.1-beta
    TSM:INIT
    TSM:INIT:TSP OK
    TSF:ASID:OK,ID=1
    TSM:FPAR
    TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSF:MSG:READ,0-0-1,s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSF:MSG:FPAR RES,ID=0,D=0
    TSF:MSG:FPAR OK,ID=0,D=1
    TSM:FPAR:OK
    TSM:ID
    TSM:ID:OK,ID=1
    TSM:UPL
    TSF:PING:SEND,TO=0
    TSF:MSG:SEND,1-1-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=OK:1
    TSF:MSG:READ,0-0-1,s=255,c=3,t=25,pt=1,l=1,sg=0:1
    TSF:MSG:PONG RECV,HP=1
    TSF:CHKUPL:OK
    TSM:UPL:OK
    TSM:READY
    TSF:MSG:SEND,1-1-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
    TSF:MSG:SEND,1-1-0-0,s=255,c=0,t=17,pt=0,l=10,sg=0,ft=0,st=OK:2.0.1-beta
    TSF:MSG:SEND,1-1-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=OK:0
    TSF:MSG:READ,0-0-1,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
    TSF:MSG:READ,0-0-1,s=255,c=3,t=6,pt=0,l=1,sg=0:I
    TSF:MSG:SEND,1-1-0-0,s=255,c=3,t=11,pt=0,l=22,sg=0,ft=0,st=OK:TemperatureAndHumidity
    TSF:MSG:SEND,1-1-0-0,s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=OK:1.4
    TSF:MSG:SEND,1-1-0-0,s=0,c=0,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    !TSF:MSG:SEND,1-1-0-0,s=1,c=0,t=6,pt=0,l=0,sg=0,ft=0,st=NACK:
    MCO:REG:REQ
    TSF:MSG:SEND,1-1-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=1,st=OK:2
    TSF:MSG:READ,0-0-1,s=255,c=3,t=27,pt=1,l=1,sg=0:1
    MCO:PIM:NODE REG=1
    MCO:BGN:STP
    MCO:SLP:MS=1000,SMS=0,I1=255,M1=255,I2=255,M2=255
    MCO:SLP:TPD
    MCO:SLP:WUP=-1
    MCO:BGN:INIT OK,ID=1,PAR=0,DIS=1,REG=1
    TSF:MSG:SEND,1-1-0-0,s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=OK:73.4
    T: 73.40
    TSF:MSG:SEND,1-1-0-0,s=0,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=OK:56.0
    H: 56.00
    MCO:SLP:MS=10000,SMS=0,I1=255,M1=255,I2=255,M2=255
    MCO:SLP:TPD
    MCO:SLP:WUP=-1
    TSF:MSG:SEND,1-1-0-0,s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=OK:73.4
    T: 73.40
    TSF:MSG:SEND,1-1-0-0,s=0,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=OK:56.0
    H: 56.00
    MCO:SLP:MS=10000,SMS=0,I1=255,M1=255,I2=255,M2=255
    MCO:SLP:TPD
    MCO:SLP:WUP=-1
    TSF:MSG:SEND,1-1-0-0,s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=OK:73.4
    T: 73.40
    TSF:MSG:SEND,1-1-0-0,s=0,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=OK:56.0
    H: 56.00
    MCO:SLP:MS=10000,SMS=0,I1=255,M1=255,I2=255,M2=255
    MCO:SLP:TPD
    MCO:SLP:WUP=-1
    TSF:MSG:SEND,1-1-0-0,s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=OK:73.4
    T: 73.40
    TSF:MSG:SEND,1-1-0-0,s=0,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=OK:56.0
    H: 56.00
    MCO:SLP:MS=10000,SMS=0,I1=255,M1=255,I2=255,M2=255
    MCO:SLP:TPD
    MCO:SLP:WUP=-1
    TSF:MSG:SEND,1-1-0-0,s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=OK:73.4
    T: 73.40
    TSF:MSG:SEND,1-1-0-0,s=0,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=OK:56.0
    H: 56.00
    MCO:SLP:MS=10000,SMS=0,I1=255,M1=255,I2=255,M2=255
    MCO:SLP:TPD
    MCO:SLP:WUP=-1
    TSF:MSG:SEND,1-1-0-0,s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=OK:73.4
    T: 73.40
    TSF:MSG:SEND,1-1-0-0,s=0,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=OK:56.0
    H: 56.00
    MCO:SLP:MS=10000,SMS=0,I1=255,M1=255,I2=255,M2=255
    MCO:SLP:TPD
    MCO:SLP:WUP=-1
    TSF:MSG:SEND,1-1-0-0,s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=OK:73.4
    T: 73.40
    TSF:MSG:SEND,1-1-0-0,s=0,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=OK:56.0
    H: 56.00
    MCO:SLP:MS=10000,SMS=0,I1=255,M1=255,I2=255,M2=255
    MCO:SLP:TPD
    MCO:SLP:WUP=-1
    TSF:MSG:SEND,1-1-0-0,s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=OK:73.4
    T: 73.40
    TSF:MSG:SEND,1-1-0-0,s=0,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=OK:56.0
    H: 56.00
    MCO:SLP:MS=10000,SMS=0,I1=255,M1=255,I2=255,M2=255
    MCO:SLP:TPD
    MCO:SLP:WUP=-1
    TSF:MSG:SEND,1-1-0-0,s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=OK:73.4
    T: 73.40 
    TSF:MSG:SEND,1-1-0-0,s=0,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=OK:56.0
    H: 56.00
    MCO:SLP:MS=10000,SMS=0,I1=255,M1=255,I2=255,M2=255
    MCO:SLP:TPD
    MCO:SLP:WUP=-1
    TSF:MSG:SEND,1-1-0-0,s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=OK:73.4
    T: 73.40
    TSF:MSG:SEND,1-1-0-0,s=0,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=OK:56.0
    H: 56.00
    MCO:SLP:MS=10000,SMS=0,I1=255,M1=255,I2=255,M2=255
    MCO:SLP:TPD
    MCO:SLP:WUP=-1
    TSF:MSG:SEND,1-1-0-0,s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=OK:73.4
    T: 73.40
    TSF:MSG:SEND,1-1-0-0,s=0,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=OK:56.0
    H: 56.00
    MCO:SLP:MS=10000,SMS=0,I1=255,M1=255,I2=255,M2=255
    MCO:SLP:TPD
    MCO:SLP:WUP=-1
    TSF:MSG:SEND,1-1-0-0,s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=OK:73.4
    T: 73.40
    TSF:MSG:SEND,1-1-0-0,s=0,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=OK:56.0
    H: 56.00
    MCO:SLP:MS=10000,SMS=0,I1=255,M1=255,I2=255,M2=255
    MCO:SLP:TPD
    MCO:SLP:WUP=-1
    TSF:MSG:SEND,1-1-0-0,s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=OK:73.4
    T: 73.40
    TSF:MSG:SEND,1-1-0-0,s=0,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=OK:56.0
    H: 56.00
    MCO:SLP:MS=10000,SMS=0,I1=255,M1=255,I2=255,M2=255
    MCO:SLP:TPD
    MCO:SLP:WUP=-1
    TSF:MSG:SEND,1-1-0-0,s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=OK:73.4
    T: 73.40
    TSF:MSG:SEND,1-1-0-0,s=0,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=OK:56.0
    H: 56.00
    MCO:SLP:MS=10000,SMS=0,I1=255,M1=255,I2=255,M2=255
    MCO:SLP:TPD
    MCO:SLP:WUP=-1
    TSF:MSG:SEND,1-1-0-0,s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=OK:73.4
    T: 73.40
    TSF:MSG:SEND,1-1-0-0,s=0,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=OK:56.0
    H: 56.00
    MCO:SLP:MS=10000,SMS=0,I1=255,M1=255,I2=255,M2=255
    MCO:SLP:TPD
    MCO:SLP:WUP=-1
    TSF:MSG:SEND,1-1-0-0,s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=OK:73.4
    T: 73.40
    TSF:MSG:SEND,1-1-0-0,s=0,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=OK:56.0
    H: 56.00
    MCO:SLP:MS=10000,SMS=0,I1=255,M1=255,I2=255,M2=255
    MCO:SLP:TPD
    

    Netcat log of gateway:
    This is after the first restart to get the Node actually presented to HA.

    1;255;3;0;11;TemperatureAndHumidity
    1;255;3;0;12;1.4
    1;0;0;0;7;
    1;1;1;0;0;73.4
    1;0;1;0;1;56.0
    1;1;1;0;0;73.4
    1;0;1;0;1;56.0
    1;1;1;0;0;73.4
    1;0;1;0;1;56.0
    

    I've tried everything I can think of. I really hope someone can shed some light on why the second child never presents.


  • Plugin Developer

    @Cravecode

    Please post a debug log from home assistant after start with all mysensors related lines included. See this thread for how to set log level to debug:
    https://forum.mysensors.org/topic/4894/enable-serial-debugs-from-the-rs485-gw-in-the-log/2



  • @martinhjelmare, thanks for the quick reply. I'll post the logs when I get home tonight.



  • @martinhjelmare

        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
            Hello, and welcome to Home Assistant!
    
            We'll hope that we can make all your dreams come true.
    
            Here are some resources to get started:
    
             - Configuring Home Assistant:
               https://home-assistant.io/getting-started/configuration/
    
             - Available components:
               https://home-assistant.io/components/
    
             - Troubleshooting your configuration:
               https://home-assistant.io/getting-started/troubleshooting-configuration/
    
             - Getting help:
               https://home-assistant.io/help/
    
            This message is generated by the introduction component. You can
            disable it in configuration.yaml.
    
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=introduction>
    INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=recorder>
    WARNING:mysensors.mysensors:File does not exist or is not readable: /Users/cravecode/.homeassistant/mysensors/esp8266-gateway.json
    WARNING:mysensors.mysensors:Trying backup file: /Users/cravecode/.homeassistant/mysensors/esp8266-gateway.json.bak
    WARNING:mysensors.mysensors:File does not exist or is not readable: /Users/cravecode/.homeassistant/mysensors/esp8266-gateway.json.bak
    WARNING:mysensors.mysensors:Failed to load sensors from file: /Users/cravecode/.homeassistant/mysensors/esp8266-gateway.json
    INFO:mysensors.mysensors:Trying to connect to ('192.168.3.103', 5003)
    INFO:mysensors.mysensors:Connected to ('192.168.3.103', 5003)
    DEBUG:mysensors.mysensors:Received 0;255;3;0;14;Gateway startup complete.
    
    DEBUG:mysensors.mysensors:Received 1;1;1;0;0;71.6
    
    WARNING:mysensors.mysensors:Node 1 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 1
    DEBUG:mysensors.mysensors:Sending 1;255;3;0;19;
    
    DEBUG:mysensors.mysensors:Received 1;0;1;0;1;53.0
    
    WARNING:mysensors.mysensors:Node 1 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 1
    DEBUG:mysensors.mysensors:Sending 1;255;3;0;19;
    
    DEBUG:mysensors.mysensors:Received 1;1;1;0;0;71.6
    
    WARNING:mysensors.mysensors:Node 1 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 1
    DEBUG:mysensors.mysensors:Sending 1;255;3;0;19;
    
    DEBUG:mysensors.mysensors:Received 1;0;1;0;1;53.0
    
    WARNING:mysensors.mysensors:Node 1 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 1
    DEBUG:mysensors.mysensors:Sending 1;255;3;0;19;
    
    DEBUG:mysensors.mysensors:Received 1;1;1;0;0;71.6
    
    WARNING:mysensors.mysensors:Node 1 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 1
    DEBUG:mysensors.mysensors:Sending 1;255;3;0;19;
    
    DEBUG:mysensors.mysensors:Received 1;0;1;0;1;53.0
    
    WARNING:mysensors.mysensors:Node 1 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 1
    DEBUG:mysensors.mysensors:Sending 1;255;3;0;19;
    
    DEBUG:mysensors.mysensors:Received 1;255;0;0;17;2.0.1-beta
    
    >>>>> @martinhjelmare, Below is where I restart the sensor to get it to present.
    
    DEBUG:homeassistant.components.mysensors:Update sensor_update: node 1
    INFO:homeassistant.components.mysensors:No sketch_name: node 1
    INFO:homeassistant.components.mysensors:No sketch_name: node 1
    INFO:homeassistant.components.mysensors:No sketch_name: node 1
    INFO:homeassistant.components.mysensors:No sketch_name: node 1
    DEBUG:mysensors.mysensors:Received 1;255;3;0;6;0
    
    DEBUG:mysensors.mysensors:Sending 1;255;3;0;6;I
    
    DEBUG:mysensors.mysensors:Received 1;255;3;0;11;TemperatureAndHumidity
    
    DEBUG:homeassistant.components.mysensors:Update sensor_update: node 1
    DEBUG:mysensors.mysensors:Received 1;255;3;0;12;1.4
    
    DEBUG:homeassistant.components.mysensors:Update sensor_update: node 1
    DEBUG:mysensors.mysensors:Received 1;0;0;0;7;
    
    DEBUG:homeassistant.components.mysensors:Update sensor_update: node 1
    DEBUG:mysensors.mysensors:Received 1;1;1;0;0;71.6
    
    WARNING:mysensors.mysensors:Child 1 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 1
    DEBUG:mysensors.mysensors:Sending 1;255;3;0;19;
    
    DEBUG:mysensors.mysensors:Received 1;0;1;0;1;53.0
    
    DEBUG:homeassistant.components.mysensors:Update sensor_update: node 1
    INFO:homeassistant.components.mysensors:Adding new devices: <Entity TemperatureAndHumidity 1 0: None>
    DEBUG:homeassistant.components.mysensors:TemperatureAndHumidity 1 0: value_type 1, value = 53.0
    DEBUG:mysensors.mysensors:Received 1;1;1;0;0;71.6
    
    WARNING:mysensors.mysensors:Child 1 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 1
    DEBUG:mysensors.mysensors:Sending 1;255;3;0;19;
    
    DEBUG:mysensors.mysensors:Received 1;0;1;0;1;52.0
    
    DEBUG:homeassistant.components.mysensors:Update sensor_update: node 1
    DEBUG:homeassistant.components.mysensors:TemperatureAndHumidity 1 0: value_type 1, value = 52.0
    DEBUG:mysensors.mysensors:Received 1;1;1;0;0;71.6
    
    WARNING:mysensors.mysensors:Child 1 is unknown
    INFO:mysensors.mysensors:Requesting new presentation for node 1
    DEBUG:mysensors.mysensors:Sending 1;255;3;0;19;
    
    DEBUG:mysensors.mysensors:Received 1;0;1;0;1;53.0
    
    DEBUG:homeassistant.components.mysensors:Update sensor_update: node 1
    DEBUG:homeassistant.components.mysensors:TemperatureAndHumidity 1 0: value_type 1, value = 53.0
    DEBUG:mysensors.mysensors:Received 1;1;1;0;0;71.6
    

  • Plugin Developer

    It seems the gateway/controller doesn't receive the presentation of the second child, child 1. Try add a short wait between presenting child 0 and 1. Try with 50-100ms.

    Is your node sleeping? If so add a short wait, 300 ms, before going back to sleep. Then it will pickup the request for new presentation that the controller sends when it receives a message from an unknown node or child.



  • @martinhjelmare Thanks!!
    I added a 500ms delay between each sensor's present call. I also added a 1000ms delay before the sensor sleeps. That seems to have fixed the issue.

    I also confirmed that both delays, between children presentation and before sleep were required.


  • Plugin Developer

    @Cravecode

    You should use wait and not delay. Delay will block incoming messages but wait will process messages in the background.



  • @martinhjelmare,
    Updated my sketch, thanks again!



  • I'll create a pull request to update the Air Humidity Sensor example (DhtTemperatureAndHumiditySensor.ino) and reference this post.


Log in to reply
 

Looks like your connection to MySensors Forum was lost, please wait while we try to reconnect.