#picam2ctrl fails to connect to HA mosquitto MQTT broker

1 messages · Page 1 of 1 (latest)

potent vigil
#

I've recently been trying to setup picam2ctrl on a raspberry pi zero 2 W, to send a live video feed and captured stills to HA running on my separate raspberry pi 4. I've done the basic installation steps on the zero 2 W.

I also setup the mosquitto MQTT broker in HA, where I changed the username and password in the integration settings to the username and password of the new HA user I created as per the instructions. In this case the username I created is "mosquitto".

I've been trying to start picam2ctrl by running the script:

cd picam2ctrl
python3 picam2ctrl.py

However it keeps giving this error:
ERROR - [Errno -2] Name or service not known: connection to MQTT Broker core-mosquitto has failed & exit ()

Any idea what I need to change on either the HA/mosquitto side, or the picam2ctrl side to get them to talk to eachother over MQTT?

I've attached my picam2ctrl config.json (except for the plaintext MQTT broker password):
https://dpaste.org/2hPCR

late relic
#

The host isn't resolving. Try using the ipaddress of your HA instance.