mosquitto icon indicating copy to clipboard operation
mosquitto copied to clipboard

Cannot connect 2 devices simultaneously

Open sunsetseatime opened this issue 1 year ago • 6 comments

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

sunsetseatime avatar Sep 20 '24 17:09 sunsetseatime

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.

ptjm avatar Sep 22 '24 01:09 ptjm

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

sunsetseatime avatar Sep 23 '24 16:09 sunsetseatime

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?`

Daedaluz avatar Oct 06 '24 12:10 Daedaluz

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

sunsetseatime avatar Oct 07 '24 17:10 sunsetseatime

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.

ralight avatar Oct 08 '24 23:10 ralight

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

sunsetseatime avatar Oct 09 '24 10:10 sunsetseatime