-
Notifications
You must be signed in to change notification settings - Fork 422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
esp-rfid keeps disconnecting from mqtt #611
Comments
hey @IVCrossway I'm sorry for your problem :( Unfortunately this is not something that happens to me, MQTT connection is reliable to me. It's strange that HA thinks that the door is open when esp-rfid is disconnected, is it something we can fix on esp-rfid side? Instead on the MQTT connection, maybe you have already tried, but is the esp close to the WiFi AP? Also, have you tried another board? Sometimes boards are not very reliable, maybe try another one. Finally, is the esp-rfid reconnecting to MQTT automatically or only if you reboot? |
I think this should be handled by home assistant itself, I just have to figure out how.
The wifi connection I guess is fine. The esp is connected to a Range Extender to get the best possible signal quality. I don't know if it's dropping packets or something but, correct me if I'm wrong, this should not be an isseue since packet drops happen every so often and the packet will be delivered before the mqtt timeout. (I'll further investigate into my network reliability) The fact is that after some time (could be hours, could be minutes... It's random like the disconnects) it reconnects itself without any reboot. And in this timeframe the web interface is working just fine, so I guess this is not a connectivity issue. |
Hey @IVCrossway are you still interested and using this project? Do you have any news about this issue? Since I've not received any similar issue and not experienced it myself I'm inclined to close this. Let me know how it's going, thanks! |
Yes I'm still using it. As a "workaround" I added another esp with esp-home to have an app control of the garage door. I needed the MQTT connection just to open the door using my phone. |
I'm leaving this here, in case similar reports come through, but right now I don't have clues on what to work on, sorry :( |
esp-rfid latest dev branch. It keeps disconnecting from mqtt and this results in home assistant thinking the door is open.
Rebooting the esp solves the problem temporarly. The disconnects seem to be random and other mqtt devices are not experiencing this issue.
Mosquitto logs show:
While esp-rfid just shows:
![immagine](https://private-user-images.githubusercontent.com/81245485/289317375-d5e55f1e-aa05-4f36-a561-15d98fdb9582.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxMDA2OTcsIm5iZiI6MTcyNDEwMDM5NywicGF0aCI6Ii84MTI0NTQ4NS8yODkzMTczNzUtZDVlNTVmMWUtYWEwNS00ZjM2LWE1NjEtMTVkOThmZGI5NTgyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE5VDIwNDYzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTAyZTIyYzk1YjQ3MTE3OTI5NTg5ZjhiMjMzNGJiMjgwNjZhYTk5MGEwMmYzZTRjMDkxN2IwZjFjOTU5YTIxZWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Md3L9B0VsgmF-HR3TozcxXYDNGDmFmqLsvHO3jiGh9o)
The text was updated successfully, but these errors were encountered: