eclipse-mosquitto / mosquitto

Eclipse Mosquitto - An open source MQTT broker
https://mosquitto.org
Other
9.07k stars 2.39k forks source link

Cannot connect 2 devices simultaneously #3112

Open sunsetseatime opened 1 month ago

sunsetseatime commented 1 month ago

Im having an issue connecting mosquito to two devices. One works fine but cant get it to communicate with the other entity. It currently works fine with solar assistant. It was working fine with Frigate however it doesn't seem to connect with frigate anymore. Im running home assistant OS with everything up to date. I cant seem to find any documentation on how to setup mosquito to communicate with more than one entity. This would be very helpful. Thank you

ptjm commented 1 month ago

You're not giving a lot of information here. Look for error information in the mosquitto logs. You might want to try running mosquitto in verbose mode (-v flag) while you're debugging the issue.

Taking a wild guess based on the use of "simultaneously" in the topic, make sure that each of your clients is using a unique client ID. User IDs can be shared, but mosquitto will allow only one simultaneous connection for a given client ID.

sunsetseatime commented 1 month ago

Thank you for the response. The issue is there is no documentation on how to set this up in home assistant. Perhaps im looking in the wrong place here

Daedaluz commented 1 month ago

I'm not sure if this ever was solved, but without more information on what you have tried / trying to do / logs or something I don't think this issue will move forward. Could we close or do you want more help?`

sunsetseatime commented 4 weeks ago

I'm not sure if this ever was solved, but without more information on what you have tried / trying to do / logs or something I don't think this issue will move forward. Could we close or do you want more help?`

I'm having an issue connecting mosquito to two devices. One works fine but cant get it to communicate with the other entity. It currently works fine with solar assistant. It was working fine with Frigate however it doesn't seem to connect with frigate anymore. Im running home assistant OS with everything up to date. I cant seem to find any documentation on how to setup mosquito to communicate with more than one entity. This would be very helpful. Thank you

ralight commented 4 weeks ago

The most common reason for this is that two different clients are connecting with the same client id. I'm afraid I don't know about that in the context of homeassistant though.

sunsetseatime commented 3 weeks ago

The most common reason for this is that two different clients are connecting with the same client id. I'm afraid I don't know about that in the context of homeassistant though.

Makes sense. I think this is more related to home assistant and how to set it up there. Wonder where i couls get this sorted