ned-kelly / docker-voltronic-homeassistant

Programmatically read data from your Voltronic, Axpert, Mppsolar PIP, Voltacon, Effekta etc Inverter and send it to Home Assistant via MQTT - Works with RS232 & USB!
GNU General Public License v3.0
260 stars 140 forks source link

How to Start the MQTT #56

Open shanrahul opened 2 years ago

shanrahul commented 2 years ago

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

audio-catalyst commented 2 years ago

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

UV-PWRD commented 2 years ago

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.

GastonJ commented 2 years ago

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

vimepri commented 2 years ago

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

avillafoto commented 1 year ago

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?

UV-PWRD commented 1 year ago

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

avfoto commented 1 year ago

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?

UV-PWRD commented 1 year ago

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

chafikt commented 1 year ago

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.

garethmo commented 10 months ago

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

garethmo commented 1 month ago

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

Any ideas, yet I've just pulled this repo down again