Can't get my new mysensors LED-Dimmer to show up.



  • So i've been having this issue for a few days now when trying to add my new pwm-led dimmer to Home-assistant.

    I cleared the eeprom and used the included mysensors example sketch and uploaded it to the arduino, started it and immediately got the error "child_id X already exists in children of node X, cannot add child"

    so i enabled the debugging in home-assistant and i have the logs provided.

    home-assistant log:

    2017-08-19 12:11:30 INFO (MainThread) [homeassistant.loader] Loaded sensor.mysensors from homeassistant.components.sensor.mysensors
    2017-08-19 12:11:30 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.mysensors
    2017-08-19 12:11:38 INFO (Thread-13) [mysensors.gateway_tcp] Trying to connect to ('127.0.0.1', 5003)
    2017-08-19 12:11:38 INFO (Thread-13) [mysensors.gateway_tcp] Connected to ('127.0.0.1', 5003)
    2017-08-19 12:11:38 DEBUG (Thread-13) [mysensors.gateway_tcp] Received 0;255;3;0;14;Gateway startup complete.
    2017-08-19 12:11:38 INFO (Thread-13) [mysensors] n:0 c:255 t:3 s:14 p:Gateway startup complete.
    2017-08-19 12:11:38 DEBUG (Thread-13) [mysensors.gateway_tcp] Sending 255;255;3;0;20;
    2017-08-19 12:11:38 DEBUG (Thread-13) [mysensors.gateway_tcp] Sending 0;255;3;0;2;
    2017-08-19 12:11:39 DEBUG (Thread-13) [mysensors.gateway_tcp] Received 0;255;3;0;2;2.1.1
    2017-08-19 12:11:48 DEBUG (Thread-13) [mysensors.gateway_tcp] Sending 0;255;3;0;2;
    2017-08-19 12:11:48 DEBUG (Thread-13) [mysensors.gateway_tcp] Received 0;255;3;0;2;2.1.1
    2017-08-19 12:11:58 DEBUG (Thread-13) [mysensors.gateway_tcp] Sending 0;255;3;0;2;
    2017-08-19 12:11:58 DEBUG (Thread-13) [mysensors.gateway_tcp] Received 0;255;3;0;2;2.1.1
    2017-08-19 12:12:08 DEBUG (Thread-13) [mysensors.gateway_tcp] Sending 0;255;3;0;2;
    2017-08-19 12:12:08 DEBUG (Thread-13) [mysensors.gateway_tcp] Received 0;255;3;0;2;2.1.1
    2017-08-19 12:12:09 DEBUG (Thread-13) [mysensors.gateway_tcp] Received 2;255;0;0;17;2.1.1
    2017-08-19 12:12:09 DEBUG (Thread-13) [homeassistant.components.mysensors] Update: node 2, child 255 sub_type 17
    2017-08-19 12:12:09 DEBUG (Thread-13) [homeassistant.components.mysensors] No sketch_name: node 2
    2017-08-19 12:12:09 DEBUG (Thread-13) [homeassistant.components.mysensors] No sketch_name: node 2
    2017-08-19 12:12:09 DEBUG (Thread-13) [homeassistant.components.mysensors] No sketch_name: node 2
    2017-08-19 12:12:09 DEBUG (Thread-13) [homeassistant.components.mysensors] No sketch_name: node 2
    2017-08-19 12:12:09 DEBUG (Thread-13) [homeassistant.components.mysensors] No sketch_name: node 2
    2017-08-19 12:12:09 DEBUG (Thread-13) [homeassistant.components.mysensors] No sketch_name: node 2
    2017-08-19 12:12:09 DEBUG (Thread-13) [homeassistant.components.mysensors] No sketch_name: node 2
    2017-08-19 12:12:09 DEBUG (Thread-13) [mysensors.gateway_tcp] Sending 2;255;3;0;6;M
    2017-08-19 12:12:09 DEBUG (Thread-13) [mysensors.gateway_tcp] Received 2;0;0;0;4;
    2017-08-19 12:12:09 DEBUG (Thread-13) [homeassistant.components.mysensors] Update: node 2, child 0 sub_type 4
    2017-08-19 12:12:09 DEBUG (Thread-13) [homeassistant.components.mysensors] No sketch_name: node 2
    2017-08-19 12:12:09 DEBUG (Thread-13) [homeassistant.components.mysensors] No sketch_name: node 2
    2017-08-19 12:12:09 DEBUG (Thread-13) [homeassistant.components.mysensors] No sketch_name: node 2
    2017-08-19 12:12:09 DEBUG (Thread-13) [homeassistant.components.mysensors] No sketch_name: node 2
    2017-08-19 12:12:09 DEBUG (Thread-13) [homeassistant.components.mysensors] No sketch_name: node 2
    2017-08-19 12:12:09 DEBUG (Thread-13) [homeassistant.components.mysensors] No sketch_name: node 2
    2017-08-19 12:12:09 DEBUG (Thread-13) [homeassistant.components.mysensors] No sketch_name: node 2
    2017-08-19 12:12:09 DEBUG (Thread-13) [homeassistant.components.mysensors] Update: node 2, child 255 sub_type 11
    2017-08-19 12:12:09 DEBUG (Thread-13) [mysensors.gateway_tcp] Received 2;255;3;0;12;1.1
    2017-08-19 12:12:09 DEBUG (Thread-13) [homeassistant.components.mysensors] Update: node 2, child 255 sub_type 12
    2017-08-19 12:12:18 DEBUG (Thread-13) [mysensors.gateway_tcp] Sending 0;255;3;0;2;
    2017-08-19 12:12:19 DEBUG (Thread-13) [mysensors.gateway_tcp] Received 0;255;3;0;2;2.1.1
    2017-08-19 12:12:28 DEBUG (Thread-13) [mysensors.gateway_tcp] Sending 0;255;3;0;2;
    2017-08-19 12:12:29 DEBUG (Thread-13) [mysensors.gateway_tcp] Received 0;255;3;0;2;2.1.1
    2017-08-19 12:12:38 DEBUG (Thread-13) [mysensors.gateway_tcp] Sending 0;255;3;0;2;
    2017-08-19 12:12:39 DEBUG (Thread-13) [mysensors.gateway_tcp] Received 0;255;3;0;2;2.1.1
    2017-08-19 12:12:48 DEBUG (Thread-13) [mysensors.gateway_tcp] Sending 0;255;3;0;2;
    2017-08-19 12:12:49 DEBUG (Thread-13) [mysensors.gateway_tcp] Received 0;255;3;0;2;2.1.1
    2017-08-19 12:12:59 DEBUG (Thread-13) [mysensors.gateway_tcp] Sending 0;255;3;0;2;
    2017-08-19 12:12:59 DEBUG (Thread-13) [mysensors.gateway_tcp] Received 0;255;3;0;2;2.1.1
    2017-08-19 12:13:09 DEBUG (Thread-13) [mysensors.gateway_tcp] Sending 0;255;3;0;2;
    2017-08-19 12:13:09 DEBUG (Thread-13) [mysensors.gateway_tcp] Received 0;255;3;0;2;2.1.1
    

    arduino serial monitor:

    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=2
    14 TSM:FPAR
    51 TSF:MSG:SEND,2-2-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    888 TSF:MSG:READ,0-0-2,s=255,c=3,t=8,pt=1,l=1,sg=0:0
    893 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,2-2-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=OK:1
    2071 TSF:MSG:READ,0-0-2,s=255,c=3,t=25,pt=1,l=1,sg=0:1
    2076 TSF:MSG:PONG RECV,HP=1
    2078 TSM:UPL:OK
    2080 TSM:READY:ID=2,PAR=0,DIS=1
    2084 TSF:MSG:SEND,2-2-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
    2092 TSF:MSG:READ,0-0-2,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
    2099 TSF:MSG:SEND,2-2-0-0,s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=OK:2.1.1
    2107 TSF:MSG:SEND,2-2-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=OK:0
    2134 TSF:MSG:READ,0-0-2,s=255,c=3,t=6,pt=0,l=1,sg=0:M
    2141 TSF:MSG:SEND,2-2-0-0,s=0,c=0,t=4,pt=0,l=0,sg=0,ft=0,st=OK:
    2148 TSF:MSG:SEND,2-2-0-0,s=255,c=3,t=11,pt=0,l=11,sg=0,ft=0,st=OK:DimmableLED
    2157 TSF:MSG:SEND,2-2-0-0,s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=OK:1.1
    2163 MCO:REG:REQ
    2167 TSF:MSG:SEND,2-2-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=OK:2
    2178 TSF:MSG:READ,0-0-2,s=255,c=3,t=27,pt=1,l=1,sg=0:1
    2183 MCO:PIM:NODE REG=1
    2185 MCO:BGN:STP
    2188 TSF:MSG:SEND,2-2-0-0,s=0,c=2,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
    2194 MCO:BGN:INIT OK,TSP=1
    

    Can anyone point me in the right direction as to why this doesn't work it would be much appreciated.

    Cheers
    H


  • Plugin Developer

    @heggrik

    You don't send an initial value of the child to home assistant.

    https://home-assistant.io/components/mysensors/#presentation



  • @martinhjelmare

    Thank you!

    After some reading and poorly written code i managed to get it working. 😄


Log in to reply
 

Suggested Topics

  • 3
  • 2
  • 2
  • 24
  • 3
  • 4

1
Online

11.2k
Users

11.1k
Topics

112.5k
Posts