mkaiser / Sungrow-SHx-Inverter-Modbus-Home-Assistant

Sungrow SH Integration for Home Assistant for SH3K6, SH4K6, SH5K-20, SH5K-V13, SH3K6-30, SH4K6-30, SH5K-30, SH3.RS, SH3.6RS, SH4.0RS, SH5.0RS, SH6.0RS, SH5.0RT, SH6.0RT, SH8.0RT, SH10RT, SH5.0RT-20, SH6.0RT-20, SH8.0RT-20, SH10RT-20, SH5.0RT-V112, SH6.0RT-V112, SH8.0RT-V112, SH10RT-V112, SH5.0RT-V122, SH6.0RT-V122, SH8.0RT-V122, SH10RT-V122, SH4.6R
375 stars 95 forks source link

Publish PV data to EVCC via MQTT #118

Open Hoellenwesen opened 1 year ago

Hoellenwesen commented 1 year ago

Hi,

for all of you which are using this great "integration" for Modbus TCP into HA and also would like to use the EVCC addon.

I wrote some MQTT and EVCC configurations for that you do not have to use a Modbus Proxy to provide the required data. For those who are interested, you can find it here:

https://github.com/Hoellenwesen/home-assistant-configurations/tree/main/evcc

btota commented 1 year ago

Hey, glad to hear that, my constellation: Sungrow -->SH10RT+SBR128 Battery+AC011E-01 Wallbox

everything is working fine with mkaiser (thanksalot) and modbus-proxy addon on hassos; except the Sungrow AC011E-01 wb. I don´t have a clue, which sensors to use, so I installed on hassos ModbusTCP2MQTT, Mosquitto broker to get more registers recognized. Both addons are working fine, but I don´t get the registers/from the AC011E Wallbox. On isolarcloud the AC011E-01 is shown up the right way.

In evcc addon unfortunately I'm not able to use the modbus-proxy (localhost:502), so I tried your automation.yaml and evcc.yaml Using config file: /config/evcc.yaml starting evcc: 'EVCC_DATABASE_DSN=/data/evcc.db evcc --config /config/evcc.yaml' [main ] INFO 2023/07/01 18:29:38 evcc 0.118.2 [main ] INFO 2023/07/01 18:29:38 using config file: /config/evcc.yaml [main ] INFO 2023/07/01 18:29:38 starting ui and api at :7070 [mqtt ] INFO 2023/07/01 18:29:38 connecting evcc-1293083007 at tcp://localhost:1883 [main ] FATAL 2023/07/01 18:29:38 failed configuring mqtt: error connecting: network Error : dial tcp [::1]:1883: connect: connection refused [main ] FATAL 2023/07/01 18:29:38 will attempt restart in: 5m0s with issues?

mkaiser commented 1 year ago

@Hoellenwesen: awesome, took a quick peak at the code. This is exactly, what is missing for a smooth Sungrow --> HA --> EVCC integration.

I am short on time at the moment, but will try that in a few week and then link your project in my readme :)

@ btota maybe post this in https://github.com/Hoellenwesen/home-assistant-configurations/tree/main/evcc ? So it will be more structured hare

btota commented 1 year ago

@Hoellenwesen: awesome, took a quick peak at the code. This is exactly, what is missing for a smooth Sungrow --> HA --> EVCC integration.

I am short on time at the moment, but will try that in a few week and then link your project in my readme :)

@ btota maybe post this in https://github.com/Hoellenwesen/home-assistant-configurations/tree/main/evcc ? So it will be more structured hare

you're right, done :)

github-actions[bot] commented 3 days ago

This issue is stale because it has been open for 30 days with no activity.