Frequent disconnects #845
-
Hi all I'm completely lost and frustrated. I have searched in Mosquitto, Home Assistant and Ring-Mqtt discussions for a while and seen some similar issues, but no solutions. Please let me describe my problem here hoping that someone can get me on the right track - apologies if I choose the wrong place to start with. I'm trying to get my Ring alarm system (base station, sensors, sirens) connected to my Home Assistant installation. I am using a Docker container installation of HA so no out-of-the-box addon support - what I did therefore is I installed another Docker container with Ring-Mqtt and one with Eclipse-Mosquitto (all latest version as of 2024-6-6). For Mosquitto I have added 2 users to passwd_file ("home_assistant" and "ring_mqtt") and the following mosquitto.conf: password_file /mosquitto/config/passwd_file For Ring-Mqtt I added an oauth token and the following config.json: { Then I configured a default MQTT integration in HA using the home_assistant user. Now I have done 2 approaches: First I have configured all containers to use the default bridge network and mapped port 1883 of the host machine to the Mosquitto container. In this case I used the ip address of the host in the json above ("READ_BELOW") as well as in the HA MQTT integration. After doing this I was able to see all my devices in HA. I was even able to change the alarm from Inactive to Away mode in the HA dashboard. However, events seem to transmit a bit slow and I got frequent disconnects for both users. This was shown in the Mosquitto log: 1717654094: New connection from 172.17.0.1:59640 on port 1883. And also in the HA history where all entities had frequent gaps causing HA to report a lot of events every time the connection was lost and re-established. So I went for another approach and configured all containers to use a custom bridge network and removed all port mappings of the host machine. In this case I used the container name in the json above ("READ_BELOW") as well as in the HA MQTT integration. The HA connection succeeded but RingMqtt failed to connect so I opened a console on all three machines and started to ping each other. Every machine was able to reolve the others IP and ping worked for HA<->Mosquitto and HA<->RingMqtt but not for Mosquitto<->RingMqtt. I see absolutely no reason why this should not work but it ain't. Questions: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Seems like most questions in here remain unanswered... too bad. Anyway, I was able to find and solve my problem(s). For the record:
Learning 1: Always check all settings of your Docker containers. |
Beta Was this translation helpful? Give feedback.
Seems like most questions in here remain unanswered... too bad.
Anyway, I was able to find and solve my problem(s). For the record: