docker-voltronic-homeassistant icon indicating copy to clipboard operation
docker-voltronic-homeassistant copied to clipboard

How to Start the MQTT

Open shanrahul opened this issue 3 years ago • 11 comments

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

Screenshot from 2021-10-22 06-40-09

shanrahul avatar Oct 22 '21 01:10 shanrahul

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

audio-catalyst avatar Oct 25 '21 09:10 audio-catalyst

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

Screenshot from 2021-10-22 06-40-09

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.

UV-PWRD avatar Nov 05 '21 06:11 UV-PWRD

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

GastonJ avatar Feb 26 '22 08:02 GastonJ

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

vimepri avatar Feb 27 '22 13:02 vimepri

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?

avillafoto avatar Sep 07 '22 16:09 avillafoto

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?

image image

UV-PWRD avatar Sep 07 '22 21:09 UV-PWRD

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?

image image

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?

avfoto avatar Sep 15 '22 07:09 avfoto

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

UV-PWRD avatar Sep 18 '22 20:09 UV-PWRD

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 image

iam trying the below mqtt publish

image

maybe iam using a wrong topic or format appreciate your assistance.

Best regards,

Shafik.

chafikt avatar Jul 20 '23 13:07 chafikt

Has anyone manged to publish to the inverter from HA and get a response as yet ?

garethmo avatar Sep 06 '23 19:09 garethmo