roleoroleo / yi-hack_ha_integration

Home Assistant custom integration for Yi cameras: yi-hack-MStar, yi-hack-Allwinner, yi-hack-Allwinner-v2, yi-hack-v5 and sonoff-hack
GNU General Public License v3.0
205 stars 32 forks source link

Constant reconnect on MQTT server (mosquitto) #120

Closed pannal closed 1 year ago

pannal commented 1 year ago

Firmware: 0.2.6 Base version: 9.0.05.32_202004101552 Model: r30gb

When setting the Yi-Hack MQTT server to the server IP, everything works, but there's a constant reconnect happening apparently:

1681011815: Client mosqpub|10767-yicam1 disconnected.
1681011885: New connection from 192.168.0.20:45992 on port 1883.
1681011885: New client connected from 192.168.0.20:45992 as mosqpub|11520-yicam1 (p2, c1, k60).
1681011885: Client mosqpub|11520-yicam1 disconnected.
1681011886: New connection from 192.168.0.20:45994 on port 1883.
1681011886: New client connected from 192.168.0.20:45994 as mosqpub|11642-yicam1 (p2, c1, k60).
1681011886: Client mosqpub|11642-yicam1 disconnected.
1681011887: New connection from 192.168.0.20:45996 on port 1883.
1681011887: New client connected from 192.168.0.20:45996 as mosqpub|11768-yicam1 (p2, c1, k60).
1681011887: Client mosqpub|11768-yicam1 disconnected.
1681011888: New connection from 192.168.0.20:45998 on port 1883.
1681011888: New client connected from 192.168.0.20:45998 as mosqpub|11892-yicam1 (p2, c1, k60).
1681011888: Client mosqpub|11892-yicam1 disconnected.
1681011897: New connection from 192.168.0.20:46000 on port 1883.
1681011897: New client connected from 192.168.0.20:46000 as mosqpub|12569-yicam1 (p2, c1, k60).
1681011897: Client mosqpub|12569-yicam1 disconnected.
1681011898: New connection from 192.168.0.20:46002 on port 1883.
1681011898: New client connected from 192.168.0.20:46002 as mosqpub|12707-yicam1 (p2, c1, k60).
1681011898: Client mosqpub|12707-yicam1 disconnected.
1681011935: New connection from 192.168.0.20:46004 on port 1883.
1681011935: New client connected from 192.168.0.20:46004 as mosqpub|14800-yicam1 (p2, c1, k60).
1681011935: Client mosqpub|14800-yicam1 disconnected.
1681011937: New connection from 192.168.0.20:46006 on port 1883.
1681011937: New client connected from 192.168.0.20:46006 as mosqpub|14958-yicam1 (p2, c1, k60).
1681011937: Client mosqpub|14958-yicam1 disconnected.
1681011938: New connection from 192.168.0.20:46008 on port 1883.
1681011938: New client connected from 192.168.0.20:46008 as mosqpub|15102-yicam1 (p2, c1, k60).
1681011938: Client mosqpub|15102-yicam1 disconnected.
1681011950: New connection from 192.168.0.20:46010 on port 1883.
1681011950: New client connected from 192.168.0.20:46010 as mosqpub|15947-yicam1 (p2, c1, k60).
1681011950: Client mosqpub|15947-yicam1 disconnected.
1681011952: New connection from 192.168.0.20:46012 on port 1883.
1681011952: New client connected from 192.168.0.20:46012 as mosqpub|16110-yicam1 (p2, c1, k60).
1681011952: Client mosqpub|16110-yicam1 disconnected.
1681011965: New connection from 192.168.0.20:46014 on port 1883.
1681011965: New client connected from 192.168.0.20:46014 as mosqpub|16775-yicam1 (p2, c1, k60).
1681011965: Client mosqpub|16775-yicam1 disconnected.
1681011977: New connection from 192.168.0.20:46016 on port 1883.
1681011977: New client connected from 192.168.0.20:46016 as mosqpub|17604-yicam1 (p2, c1, k60).
1681011977: Client mosqpub|17604-yicam1 disconnected.
1681011978: New connection from 192.168.0.20:46018 on port 1883.
1681011978: New client connected from 192.168.0.20:46018 as mosqpub|17788-yicam1 (p2, c1, k60).
1681011978: Client mosqpub|17788-yicam1 disconnected.
1681011980: New connection from 192.168.0.20:46020 on port 1883.
1681011980: New client connected from 192.168.0.20:46020 as mosqpub|17909-yicam1 (p2, c1, k60).
1681011980: Client mosqpub|17909-yicam1 disconnected.
1681011981: New connection from 192.168.0.20:46022 on port 1883.
1681011981: New client connected from 192.168.0.20:46022 as mosqpub|18034-yicam1 (p2, c1, k60).
1681011981: Client mosqpub|18034-yicam1 disconnected.
1681011982: New connection from 192.168.0.20:46024 on port 1883.
1681011982: New client connected from 192.168.0.20:46024 as mosqpub|18160-yicam1 (p2, c1, k60).
1681011982: Client mosqpub|18160-yicam1 disconnected.
1681011984: New connection from 192.168.0.20:46026 on port 1883.
1681011984: New client connected from 192.168.0.20:46026 as mosqpub|18288-yicam1 (p2, c1, k60).
1681011984: Client mosqpub|18288-yicam1 disconnected.
1681011986: New connection from 192.168.0.20:46028 on port 1883.
1681011986: New client connected from 192.168.0.20:46028 as mosqpub|18431-yicam1 (p2, c1, k60).
1681011987: Client mosqpub|18431-yicam1 disconnected.
roleoroleo commented 1 year ago

Are you using the same client id for 2 devices?

pannal commented 1 year ago

Might've been the case, yes. I'll reopen should this reappear!