alexryd / node-shellies

Handles communication with Shelly devices
MIT License
35 stars 13 forks source link

Not auto discovering despite lots of mcast traffic #43

Open m6w6 opened 1 year ago

m6w6 commented 1 year ago

Hi, sorry I'm new to homebridge and node-shellies.

I tried patching in the network address, since the command does not accept one, to no avail. This is in a homebridge container, as you probably have already guessed...

Homebridge Terminal

Node.js Version: v18.13.0
Node.js Path: /opt/homebridge/bin/node
Plugin Path: /var/lib/homebridge/node_modules

Update Node.js: hb-service update-node

Install Plugin: hb-service add homebridge-plugin-name
Remove Plugin: hb-service remove homebridge-plugin-name

root@8d20211fd812:/homebridge $ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.2.253  netmask 255.255.255.0  broadcast 192.168.2.255
        ether 7c:05:07:0d:cf:5f  txqueuelen 0  (Ethernet)
        RX packets 4744  bytes 1135426 (1.1 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 755  bytes 5425882 (5.4 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 288  bytes 62104 (62.1 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 288  bytes 62104 (62.1 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

root@8d20211fd812:/homebridge $ shellies listen
^C

root@8d20211fd812:/homebridge $ tcpdump -A udp port 5683
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes
18:02:04.449729 IP 192.168.5.15.5683 > 224.0.1.187.5683: UDP, length 142
E....................3.3...*P.
..cit.s....SHHT-1#007BCC#2.C......{"G":[[0,9103,0],[0,3101,19.50],[0,3102,67.10],[0,3103,73.0],[0,3115,0],[0,3111,98],[0,9102,["sensor"]]]}
18:02:07.279346 IP shellyplug-s-7C87CEB482A9.5683 > 224.0.1.187.5683: UDP, length 169
E...I.....I....7.....3.3....P....cit.s...       SHPLG-S#7C87CEB482A9#2.C......{"G":[[0,9103,2],[0,1101,1],[0,4101,59.39],[0,4103,76704],[0,6102,0],[0,6109,0.00],[0,3104,27.38],[0,3105,81.28],[0,6101,0]]}
18:02:09.782947 IP shellyplug-s-7C87CEB4A491.5683 > 224.0.1.187.5683: UDP, length 168
E.........
....2.....3.3....P..V.cit.s...  SHPLG-S#7C87CEB4A491#2.C......{"G":[[0,9103,1],[0,1101,1],[0,4101,0.00],[0,4103,97417],[0,6102,0],[0,6109,0.00],[0,3104,27.32],[0,3105,81.17],[0,6101,0]]}
18:02:10.443694 IP shellyplug-s-7C87CEB4828E.5683 > 224.0.1.187.5683: UDP, length 168
E..............3.....3.3....P.]..cit.s...       SHPLG-S#7C87CEB4828E#2.C......{"G":[[0,9103,0],[0,1101,1],[0,4101,0.00],[0,4103,34799],[0,6102,0],[0,6109,0.00],[0,3104,23.80],[0,3105,74.85],[0,6101,0]]}
18:02:12.958574 IP shelly1-485519C93822.5683 > 224.0.1.187.5683: UDP, length 106
E.........      Y...+.....3.3.r).P..9.cit.s....SHSW-1#485519C93822#2.C......{"G":[[0,9103,0],[0,1101,0],[0,2101,0],[0,2102,""],[0,2103,2]]}
18:02:13.710151 IP 192.168.5.17.5683 > 224.0.1.187.5683: UDP, length 143
E....................3.3..k.P..y.cit.s....SHHT-1#008AF1#2.C......{"G":[[0,9103,0],[0,3101,20.38],[0,3102,68.68],[0,3103,57.5],[0,3115,0],[0,3111,100],[0,9102,["sensor"]]]}
18:02:13.875020 IP shellyplug-s-7C87CEB50DB5.5683 > 224.0.1.187.5683: UDP, length 169
E....|.........1.....3.3....P..n.cit.s...       SHPLG-S#7C87CEB50DB5#2.C......{"G":[[0,9103,1],[0,1101,1],[0,4101,3.43],[0,4103,238441],[0,6102,0],[0,6109,0.00],[0,3104,31.05],[0,3105,87.88],[0,6101,0]]}
18:02:13.982021 IP shelly1-485519CA3F31.5683 > 224.0.1.187.5683: UDP, length 106
E.........}..........3.3.r!VP....cit.s....SHSW-1#485519CA3F31#2.C......{"G":[[0,9103,0],[0,1101,0],[0,2101,0],[0,2102,""],[0,2103,0]]}
18:02:15.106786 IP shellyuni-98CDAC2B94B0.5683 > 224.0.1.187.5683: UDP, length 166
E..............*.....3.3..h;P....cit.s...       SHUNI-1#98CDAC2B94B0#2.C......{"G":[[0,9103,0],[0,1101,0],[0,1201,0],[0,2101,0],[0,2102,""],[0,2103,0],[0,2201,0],[0,2202,""],[0,2203,0],[0,3118,0.06]]}
18:02:16.213909 IP shellyplug-s-7C87CEB50DB5.5683 > 224.0.1.187.5683: UDP, length 169
E....~.........1.....3.3....P..o.cit.s...       SHPLG-S#7C87CEB50DB5#2.C......{"G":[[0,9103,1],[0,1101,1],[0,4101,3.46],[0,4103,238441],[0,6102,0],[0,6109,0.00],[0,3104,30.82],[0,3105,87.48],[0,6101,0]]}
^C
10 packets captured
10 packets received by filter
0 packets dropped by kernel
root@8d20211fd812:/homebridge $