nygma2004 / growatt2mqtt

Growatt Solar Inverter Modbus Data to MQTT Gateway
MIT License
136 stars 33 forks source link

Use growatt2mqtt for evcc #25

Open aherzer69 opened 1 year ago

aherzer69 commented 1 year ago

Hello,

I would like to use the data from growatt2mqtt for EVCC

EVCC propsed following for Growatt inverter: (https://docs.evcc.io/docs/devices/meters)

`meters:

Is it possible to implement here the growatt2mqtt data?

or

I found also an older generic format of evcc:

`meters:

As I understood, this is refering directly to modbus data.? But I don't know how to use. Is the "uri" the IP of my Inverter or from D1-mini with growatt2mqtt? "id" = ? "address" = modbus id of Growatt protocol? ("1" for "Input power (high)", ...)

I am sure it is possible, but I was not able to solve.

nygma2004 commented 1 year ago

OK, after reading about this page for 15-20 minutes, it looks like this software can read modbus directly. Ideally you don't even need my converter at all. You can plug an RS485 to USB converter into the computer/SBC this software is running on and connect the A/B lines to Growatt directly. And it will read the data straight from the inverter. You can see Growatt examples in their page. Remember RS485 can travel few hundred meters without any problems.

Or you can get a modbus RS485 to TCP gateway, and use the TCP example. I would try either of these routes and it will be a direct communication between evcc and the inverter.

As far as I can see, these examples support some generic Growatt Hybrid inverter and TL-XH series, so if you have one of those it will work. But they don't seem to have a template for other models.

aherzer69 commented 1 year ago

Thank you very much for effort and quick reply!!! I am very happy with your software! It is running since weeks w/o problems. With your software I have robust values (just in time!) to use it for my Home Assistant activities. If it is not possible to use the access of growatt2mqtt to evcc, I will try to use the mqtt data in evcc.

nygma2004 commented 1 year ago

I don't think it is possible. I have seen modbus client implementation for the ESP, but a modbus master. The only option I can think about is a modbus RS485 to TCP gateway and through that evcc and homeassistant could read your inverter as well.