Hello! Set up the container but i cant get it connected on mqtt. i’m using a raspberry pi 3 b+ with last version of pi os. In sudo docker exec -it voltronic-mqtt bash -c ‘/opt/inverter-cl i/bin/inverter_poller -d -1’ i obtain this response:
pi@raspberrypi:/opt/ha-inverter-mqtt-agent $ docker exec -it voltronic-mqtt bash -c '/opt/inverter-cli/bin/inverter_poller -d -1'
Tue Jun 14 08:46:24 2022 INVERTER: Debug set
Tue Jun 14 08:46:24 2022 INVERTER: Current CRC: 49 C1
Tue Jun 14 08:46:24 2022 INVERTER: QMOD reply size (5 bytes)
Tue Jun 14 08:46:24 2022 INVERTER: QMOD: 5 bytes read: (B
Tue Jun 14 08:46:24 2022 INVERTER: QMOD query finished
Tue Jun 14 08:46:24 2022 INVERTER: Current CRC: B7 A9
Tue Jun 14 08:46:24 2022 INVERTER: QPIGS reply size (110 bytes)
Tue Jun 14 08:46:24 2022 INVERTER: QPIGS: 110 bytes read: (000.0 00.0 230.2 50.0 0000 0000 000 373 26.94 006 100 0031 0006 059.4 27.00 00000 00110110 00 00 00166 110
Tue Jun 14 08:46:24 2022 INVERTER: QPIGS query finished
Tue Jun 14 08:46:24 2022 INVERTER: Current CRC: F8 54
Tue Jun 14 08:46:25 2022 INVERTER: QPIRI reply size (98 bytes)
Tue Jun 14 08:46:25 2022 INVERTER: QPIRI: 98 bytes read: (230.0 13.0 230.0 50.0 13.0 3000 3000 24.0 23.0 21.5 28.2 27.0 0 30 060 0 1 2 1 01 0 0 27.0 0 1
Tue Jun 14 08:46:25 2022 INVERTER: QPIRI query finished
Tue Jun 14 08:46:25 2022 INVERTER: Current CRC: B4 DA
Tue Jun 14 08:46:25 2022 INVERTER: QPIWS reply size (36 bytes)
Tue Jun 14 08:46:25 2022 INVERTER: QPIWS: 36 bytes read: (00000100000000000000000000000000
Tue Jun 14 08:46:25 2022 INVERTER: QPIWS query finished
INVERTER: ampfactor from config is 1.00
INVERTER: wattfactor from config is 1.01
{
"Inverter_mode":4,
"AC_grid_voltage":0.0,
"AC_grid_frequency":0.0,
"AC_out_voltage":230.2,
"AC_out_frequency":50.0,
"PV_in_voltage":59.4,
"PV_in_current":6.0,
"PV_in_watts":163.6,
"PV_in_watthour":5.4540,
"SCC_voltage":27.0000,
"Load_pct":0,
"Load_watt":0,
"Load_watthour":0.0000,
"Load_va":0,
"Bus_voltage":373,
"Heatsink_temperature":31,
"Battery_capacity":100,
"Battery_voltage":26.94,
"Battery_charge_current":6,
"Battery_discharge_current":0,
"Load_status_on":1,
"SCC_charge_on":1,
"AC_charge_on":0,
"Battery_recharge_voltage":23.0,
"Battery_under_voltage":21.5,
"Battery_bulk_voltage":28.2,
"Battery_float_voltage":27.0,
"Max_grid_charge_current":30,
"Max_charge_current":60,
"Out_source_priority":1,
"Charger_source_priority":2,
"Battery_redischarge_voltage":2532947876441777295090823175602176.0,
"Warnings":"00000100000000000000000000000000"
}
So i assume that the software is communicating correctly with the inverter. But i cant get connected to the mosquitto broker, i cant see any new connection.
if i log the container i see this response
pi@raspberrypi:/opt/ha-inverter-mqtt-agent $ docker container logs voltronic-mqtt
Unable to connect (Lookup error.).
Unable to connect (Lookup error.).
Unable to connect (Lookup error.).
Unable to connect (Lookup error.).
Unable to connect (Lookup error.).
Unable to connect (Lookup error.).
Unable to connect (Lookup error.).
Since i have 2 containers running, one with this software and one with home assistant and mosquitto, i think it could be a networking issue, but since i’m not very expert i don’t know how to solve it. I also tried to connect voltronic-mqtt to a cloud hivemq broker but it cant connect. here is the response of the container ps:
pi@raspberrypi:/opt/ha-inverter-mqtt-agent $ docker container ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d892725cd300 bushrangers/ha-voltronic-mqtt "/bin/bash /opt/inve…" 12 hours ago Up 12 hours (unhealthy) voltronic-mqtt
475461e8dac3 containrrr/watchtower "/watchtower --inter…" 12 hours ago Up 12 hours 8080/tcp watchtower
cc1a2c311d4b eclipse-mosquitto "/docker-entrypoint.…" 17 hours ago Up 15 minutes 0.0.0.0:1883->1883/tcp, :::1883->1883/tcp mosquitto
d6b07c4a1350 ghcr.io/home-assistant/home-assistant:stable "/init" 34 hours ago Up 15 minutes home-assistant
and here is the response of the docker compose ls
pi@raspberrypi:/opt/ha-inverter-mqtt-agent $ docker compose ls
NAME STATUS CONFIG FILES
esempio-compose running(2) docker-compose.yaml
ha-inverter-mqtt-agent running(2) docker-compose.yml
hope somene can help me! if you need more information let me know!
thanks