Can't see any sensors in Domoticz


  • Plugin Developer

    Hi.
    I have just started to build my sensors and now i got a problem that i hope you can help me with.

    I am using version 1.5.1 of the API.
    Have a ESP8266 Gateway that i only change ssid and password from the example sketch.

    In Domoticz (version 2.3799) i have added the gateway as an "MySensors Gateway with LAN interface" with the right ip and port 5003.
    I can see in the log in Domoticz

    2015-12-12 22:03:52.065 MySensors: connected to: 10.0.1.6:5003
    2015-12-12 22:03:52.066 MySensors: Gateway Ready... 
    

    I have also created a MotionSensor and the logg when i start it is looks like this.

    sensor started, id=255, parent=255, distance=255
    find parent
    send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
    find parent
    send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
    find parent
    send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
    0
    find parent
    send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
    1
    find parent
    send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
    

    The log for my gateway when i trigger a motion infront of my MotionSensor is this.

    0;0;3;0;9;read: 255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
    0;0;3;0;9;send: 0-0-255-255 s=255,c=3,t=8,pt=1,l=1,sg=0,st=bc:0
    0;0;3;0;9;read: 255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
    0;0;3;0;9;send: 0-0-255-255 s=255,c=3,t=8,pt=1,l=1,sg=0,st=bc:0
    0;0;3;0;9;read: 255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
    0;0;3;0;9;send: 0-0-255-255 s=255,c=3,t=8,pt=1,l=1,sg=0,st=bc:0
    0;0;3;0;9;read: 255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
    0;0;3;0;9;send: 0-0-255-255 s=255,c=3,t=8,pt=1,l=1,sg=0,st=bc:0
    

    So i think it looks like the gateway can see what the MotionSensor send.

    But i can't find the MotionSensor in Domoticz.
    I am also using the Domoticz for my z-wave components.

    Any one that can give me some tips on what i do wrong?


  • Hardware Contributor

    id=255 means it has not got any ID yet, strange.
    What does the gw log looks like when you power on the node?


  • Plugin Developer

    Thanks for your quick response.

    When i start the gateway it looks like this.

    rl�l��|��l�|�l�b|����r�b�b��nn�lnn���bp��lrlrlp�n��l��bn�|l����b��nn��l��l`�nnl`nr���n��l`r��n��l`��n�
    
    ESP8266 MySensors Gateway
    Connecting to XXX
    ...Connected!
    IP: 10.0.1.6
    0;0;3;0;9;gateway started, id=0, parent=0, distance=0
    

    And when i start the motionSensor it looks like this in the gateway.

    0;0;3;0;9;read: 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
    255;255;3;0;3;
    0;0;3;0;9;read: 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
    255;255;3;0;3;
    0;0;3;0;9;read: 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
    255;255;3;0;3;
    0;0;3;0;9;read: 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
    255;255;3;0;3;
    

    In the motionsensor it looks like this.

    sensor started, id=255, parent=0, distance=1
    req id
    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
    req id
    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
    req id
    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
    0
    req id
    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
    1
    req id
    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
    0
    

    I have now connect them to two seperate usb ports on my Mac to use the serial monitor.


  • Plugin Developer

    I have now tried to reuplode the sketch to both the gateway and the sensor.

    I think the problem is with the gateway.
    Look here at the log.

    tail 0
    chksum 0x42
    csum 0x42
    
    
    ESP8266 MySensors Gateway
    Connecting to XXX
    ...Connected!
    IP: 10.0.1.6
    0;0;3;0;9;gateway started, id=0, parent=0, distance=0
    Client 0 connected
    0;0;3;0;14;Gateway startup complete.
    0;0;3;0;9;read: 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
    255;255;3;0;3;
    Client 0: 0;0;3;0;2;
    
    Exception (28):
    epc1=0x4000bf80 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000
    
    ctx: cont 
    sp: 3ffeac40 end: 3ffeaec0 offset: 01a0
    
    >>>stack>>>
    3ffeade0:  00000080 3fffc6fc 3ffe977f 40203ac0  
    3ffeadf0:  3ffeaf20 00000001 3ffe8f8f 4020b794  
    3ffeae00:  3ffeaf20 00000009 3ffe9872 00000000  
    3ffeae10:  00000003 00000000 3ffe9860 4020ae11  
    3ffeae20:  00000001 3ffe9869 3ffeaf20 4020ae11  
    3ffeae30:  3ffe9869 3ffe9869 3ffeaf20 3ffeaf20  
    3ffeae40:  3ffe9869 3ffe9778 3ffe977f 402024b4  
    3ffeae50:  3ffe9a68 3ffe9869 00000000 40202784  
    3ffeae60:  3ffe8e18 00000000 000003e8 3ffe9bf8  
    3ffeae70:  00000000 3fff4c28 3fff4bb8 3ffeaeec  
    3ffeae80:  00000000 0000000a 00000000 00000000  
    3ffeae90:  40201c35 0601000a 00000000 3ffeaeec  
    3ffeaea0:  3fffdc20 00000000 3ffeaee4 40201c92  
    3ffeaeb0:  00000000 00000000 3ffe9ea0 40100378  
    <<<stack<<<
    
     ets Jan  8 2013,rst cause:2, boot mode:(1,7)
    
    
     ets Jan  8 2013,rst cause:4, boot mode:(1,7)
    
    wdt reset
    

    It craches when i connect the sensor.


  • Plugin Developer

    Now this is working.
    I use Arduino 1.6.5 and develop version of mysensors API (1.6.0-beta) .
    Here is how it looks in Domoticz

    Screen Shot 2015-12-16 at 09.32.35.png



  • @ErrK, see this topic http://www.esp8266.com/viewtopic.php?f=6&t=10901

    I had the same issue, pressing reset didn't work but reconnecting the USB cable did the trick.


 

358
Online

7.9k
Users

8.7k
Topics

93.6k
Posts