Hi all, new to HA in general so sorry in advance about dumb mistakes.
I’m troubleshooting the AMR2MQTT/MQTT connection and coming up empty. Everything is up to date, sysinfo below:
Add-on version: 2.1.2
You are running the latest version of this add-on.
System: Home Assistant OS 10.3 (aarch64 / raspberrypi4-64)
Home Assistant Core: 2023.7.0
Home Assistant Supervisor: 2023.07.1
I’ve verified that my RTL-SDR works and that my meters are readable on my PC using RTLAMR. And I can see messages published by my MQTT broker from my pc using MQTT explorer.
My mosquitto config:
logins:
- username: mqtt-user
password: #######
require_certificate: false
certfile: fullchain.pem
keyfile: privkey.pem
customize:
active: false
folder: mosquitto
debug: true
debug: true
Ports are standard 1883 etc.
My AMR2MQTT config:
meters:
- id: 17737313
protocol: scm
name: Electrical Meter
type: energy
manufacturer: Itron
- id: 1567099574
protocol: r900
name: Water Meter
type: water
manufacturer: Neptune
mqtt:
host: 127.0.0.1
port: 1883
log_level: debug
The important part of the log seems to be:
INFO:root:Connecting to MQTT broker at 127.0.0.1:1883
Traceback (most recent call last):
File "/amr2mqtt/amr2mqtt.py", line 515, in <module>
mqttc = create_mqtt_client()
File "/amr2mqtt/amr2mqtt.py", line 182, in create_mqtt_client
client.connect(
File "/usr/lib/python3/dist-packages/paho/mqtt/client.py", line 941, in connect
return self.reconnect()
File "/usr/lib/python3/dist-packages/paho/mqtt/client.py", line 1075, in reconnect
sock = self._create_socket_connection()
File "/usr/lib/python3/dist-packages/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.9/socket.py", line 843, in create_connection
raise err
File "/usr/lib/python3.9/socket.py", line 831, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
[10:18:51] WARNING: Halt add-on with exit code 1
Various levels of logging all indicate that the connection to the broker is refused, I’ve tried the shotgun approach of changing the address to everything I can think of; core-mosquitto, core-mosquitto.local, homeassistant.local, the IP of my RP4…
I have no idea. If anyone can help that would be really appreciated. Thanks