docker-voltronic-homeassistant
docker-voltronic-homeassistant copied to clipboard
How to Start the MQTT
I have cloned the repo and did the configuration and after that i ran docker-compose up -d
, After that what is the next step ?
This is my docker ps
output
this doesnt include a MQTT, it just has an mqtt client that is called on each run. you could check again your favorite MQTT server using mqtt explorer if it sees messages comming in
I have cloned the repo and did the configuration and after that i ran
docker-compose up -d
, After that what is the next step ?This is my
docker ps
output
For me, I installed MQTT integration and add-on within HA and used the IP, username and password from my HA instance in the mqtt.json file and I can see entities within HA.
You need to set up an mqqt server. For raspbian
sudo apt update sudo apt upgrade sudo apt install mosquitto mosquitto-clients You'll very likely need to check the config and update it to fit your needs in /etc/mosquitto/mosquitto.conf Update you /opt/ha-inverter-mqtt-agent/config so that you have the correct parameters to your mosquitto server. Then in you're using Homeassistant add the MQTT and configure it to subscribe to you server where you installed mosquitto When you install the mqqt part in homeassistant you can test a subscription by entering solar/# as teh topic and subscribe. It should flash your stats past.
HTH
hello. I have the same problem and with the explanations you give, I can't get it to work.
I have the inverter connected with a serial/usb, which reads data correctly.
mosquitto, installed and working. I can post and subscribe
in inverter.conf, I have set /deb/ttyUSB0
in mqtt.json, I have put the ip of the raspberry where mqtt is installed and port 1883, without login, since I did not configure it.
If after this through the terminal, I subscribe to # everything that mqtt is publishing should appear, but it only shows me the example messages that I publish, it does not receive anything from the investor.
Can you guide me a bit? It's been 2 days and I'm going crazy. Thank you
I'm with the same problem. I've readed a lot and I cannot solve the problem. How I give the data to MQTT?? I can read it from the inverter with the USB cable without problem, but... what's next?
I'm with the same problem. I've readed a lot and I cannot solve the problem. How I give the data to MQTT?? I can read it from the inverter with the USB cable without problem, but... what's next?
You do this through HA directly, I have buttons I can press to change the AC charging current, though I note they will stop working randomly sometimes if there's an Mosquito update or the Pie needs a reboot.
I found this - https://www.rubydoc.info/gems/axpert_rs232/1.0.3/AxpertCommands
Then started playing with MQTT Explorer to test and ended up with the below. I hope this helps?
I'm with the same problem. I've readed a lot and I cannot solve the problem. How I give the data to MQTT?? I can read it from the inverter with the USB cable without problem, but... what's next?
You do this through HA directly, I have buttons I can press to change the AC charging current, though I note they will stop working randomly sometimes if there's an Mosquito update or the Pie needs a reboot.
I found this - https://www.rubydoc.info/gems/axpert_rs232/1.0.3/AxpertCommands
Then started playing with MQTT Explorer to test and ended up with the below. I hope this helps?
![]()
I say it again. In Home Assistant I can't read data, the MQTT can't read data... What steps you made to have the /sensor/voltronic/ in Home Assistant?
I say it again. In Home Assistant I can't read data, the MQTT can't read data... What steps you made to have the /sensor/voltronic/ in Home Assistant?
I said earlier.
For me, I installed MQTT integration and add-on within HA and used the IP, username and password from my HA instance in the mqtt.json file and I can see entities within HA
Dear @ned-kelly ,
iam trying to push MQTT commands without any sucess.
i might be missing smomething below is how the output from MQTT explorer
iam trying the below mqtt publish
maybe iam using a wrong topic or format appreciate your assistance.
Best regards,
Shafik.
Has anyone manged to publish to the inverter from HA and get a response as yet ?