Traceback (most recent call last):
File “mqtt-all.py”, line 238, in
main()
File “mqtt-all.py”, line 190, in main
mqtt_client.connect(args.broker, port=args.port)
File “/usr/local/lib/python3.7/dist-packages/paho_mqtt-1.5.1-py3.7.egg/paho/mqtt/client.py”, line 941, in connect
return self.reconnect()
File “/usr/local/lib/python3.7/dist-packages/paho_mqtt-1.5.1-py3.7.egg/paho/mqtt/client.py”, line 1075, in reconnect
sock = self._create_socket_connection()
File “/usr/local/lib/python3.7/dist-packages/paho_mqtt-1.5.1-py3.7.egg/paho/mqtt/client.py”, line 3546, in _create_socket_connection
return socket.create_connection(addr, source_address=source, timeout=self._keepalive)
File “/usr/lib/python3.7/socket.py”, line 727, in create_connection
raise err
File “/usr/lib/python3.7/socket.py”, line 716, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
Good evening, I have set up an MQTT Broker on my openHAB system, but unfortunately I do not receive my data from Enviro without Plus sent to the broker.
The mqtt-all.py script always gives me the same error [Errno 121] Remote I/O error.
I have installed Mosquitto only on my Raspi Zero with the Enviro, not on the Broker. I also start the script via python3.
Is it because I did not connect the PMS5003 sensor? How do I have to adjust the script to use it with the Enviro without Plus?
Unfortunately I am still quite new to the whole topic.