Hoellenwesen / home-assistant-configurations

Some Home Assistant Configurations for different things
4 stars 0 forks source link

Sungrow -->SH10RT+SBR128 Battery+AC011E-01 Wallbox evcc->mqtt(localhost) failed #1

Closed btota closed 1 day ago

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/sensors 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 plus Mosquitto broker 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?

Hoellenwesen commented 1 year ago

Hi,

do you use the Home Assistant Mosquitto broker Addon? I have exposed the port 1883 in the Mosquitto addon config and use my IP address of Home Assistant instead of "localhost". If you are using the addon you could also try to use "core-mosquitto:1883" as broker address in EVCC.

With the tool MQTT Explorer (http://mqtt-explorer.com/) you could then also check if HA is publishing the data correctly into the MQTT broker.

Unfortunately i do not own a AC011E-01 Wallbox. Currently i'm trying to integrate my Heidelberg Wallbox.

markus023 commented 1 year ago

FYI Just installed mkaiser modbus integration (SH6.0RT / SBR096) using local LAN-Port. Everything is working. Now installed HA-evcc add-on using the mqtt export automation on local HA-mosquito Addon. evcc is starting and getting all pv data from HA mqtt.

@Hoellenwesen just a short reply that your automation is generally working , thanks for your work/sharing 👍

I haven't tried to use evcc ( got a Wallbox Pulsar with OCPP ) , but basically everything shows up on evcc.

btota commented 1 year ago

Hi,

do you use the Home Assistant Mosquitto broker Addon? I have exposed the port 1883 in the Mosquitto addon config and use my IP address of Home Assistant instead of "localhost". If you are using the addon you could also try to use "core-mosquitto:1883" as broker address in EVCC.

With the tool MQTT Explorer (http://mqtt-explorer.com/) you could then also check if HA is publishing the data correctly into the MQTT broker.

Unfortunately i do not own a AC011E-01 Wallbox. Currently i'm trying to integrate my Heidelberg Wallbox.

Hey - I hope you made it :), I'm still struggling with starting evcc (evcc protocol-->missing loadpoints?). modbus-proxy-->modbustcpmqtt-->mosquito-->your pvdataevcc addon--> seems to work (mqtt-explorer)

Bildschirmfoto vom 2023-07-21 18-57-01 Bildschirmfoto vom 2023-07-21 19-00-13 Bildschirmfoto vom 2023-07-21 19-00-42

automations.yaml `alias: PV Daten zu EVCC via MQTT description: "" trigger:

evcc.yaml `meters:

site: title: Home # display name for UI meters: grid: grid # grid meter pv:

mqtt: broker: 192.168.178.43:1883 # user: yyy password: xxx`

Bildschirmfoto vom 2023-07-21 19-19-43

Hoellenwesen commented 1 year ago

Hi, according to your error message i think you are missing the configuration for a loadpoint in your evcc.yaml. You need to configure all required sections in your config file. e.g. https://docs.evcc.io/docs/reference/configuration/loadpoints/