child_id 0 already exists in children of node after loading other sketch



  • Hello, I am having an issue with a sensor with a BMP180 sensor. I can't get the sensor to properly register it seems.
    A fews months ago I tested the same arduino with bmp180 with a modified PressurSensor sketch from the MySensorsArduinoExamples git repo.
    Now I wanted to load the normal PressureSensor sketch with also has a weather prediction included.

    I loaded the PressureSensor sketch on the arduino and it starts but in the HomeAssistant logs i get a message like this :

    Sep 09 15:59:05 keo hass[18926]: WARNING:mysensors:child_id 1 already exists in children of node 6, cannot add child

    So I stopped HA and deleted the whole '6' device from the persistence/mysensors.json
    Started HA and switched on the sensor, same message.
    I record all the readings in a mysql database so I thought maybe that could be the problmen so I deleted the old recordings of the '6_*' entity_id from the states table, stopped HA, removed the '6_' entries from persistence file and switched on the arduino.. Same message again.
    So it appears HA or the gateway arduino already finds the devices somewhere and therefore can't add the new ones. But I fail to see why that is.

    Here is the output of the serial terminal from when I load the sketch on the sensor.

    0 MCO:BGN:INIT NODE,CP=RNNNA--,VER=2.1.1
    3 TSM:INIT
    4 TSF:WUR:MS=0
    11 TSM:INIT:TSP OK
    13 TSF:SID:OK,ID=6
    14 TSM:FPAR
    51 TSF:MSG:SEND,6-6-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    781 TSF:MSG:READ,0-0-6,s=255,c=3,t=8,pt=1,l=1,sg=0:0
    785 TSF:MSG:FPAR OK,ID=0,D=1
    2058 TSM:FPAR:OK
    2059 TSM:ID
    2060 TSM:ID:OK
    2062 TSM:UPL
    2065 TSF:MSG:SEND,6-6-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=OK:1
    2075 TSF:MSG:READ,0-0-6,s=255,c=3,t=25,pt=1,l=1,sg=0:1
    2079 TSF:MSG:PONG RECV,HP=1
    2082 TSM:UPL:OK
    2083 TSM:READY:ID=6,PAR=0,DIS=1
    2091 TSF:MSG:SEND,6-6-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
    2098 TSF:MSG:READ,0-0-6,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
    2109 TSF:MSG:SEND,6-6-0-0,s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=OK:2.1.1
    2117 TSF:MSG:SEND,6-6-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=OK:0
    2132 TSF:MSG:READ,0-0-6,s=255,c=3,t=6,pt=0,l=1,sg=0:M
    2146 TSF:MSG:SEND,6-6-0-0,s=255,c=3,t=11,pt=0,l=22,sg=0,ft=0,st=OK:TemperatureAndPressure
    2156 TSF:MSG:SEND,6-6-0-0,s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=OK:1.1
    2164 TSF:MSG:SEND,6-6-0-0,s=0,c=0,t=8,pt=0,l=0,sg=0,ft=0,st=OK:
    2171 TSF:MSG:SEND,6-6-0-0,s=1,c=0,t=6,pt=0,l=0,sg=0,ft=0,st=OK:
    2178 MCO:REG:REQ
    2183 TSF:MSG:SEND,6-6-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=OK:2
    2189 TSF:MSG:READ,0-0-6,s=255,c=3,t=27,pt=1,l=1,sg=0:1
    2194 MCO:PIM:NODE REG=1
    2196 MCO:BGN:STP

    Is there anything I am missing here ?
    Any pointers are appreciated 🙂



  • You likely need to load the "ClearEepromConfig" sketch to the arduino to clear all of the data from the arduino.


Log in to reply
 

Suggested Topics

  • 1
  • 3
  • 5
  • 8
  • 1

0
Online

11.4k
Users

11.1k
Topics

112.7k
Posts