Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fronius Zugriff PV und Batterie via Modbus #18695

Closed
2 tasks done
slxreaper opened this issue Feb 9, 2025 · 1 comment
Closed
2 tasks done

Fronius Zugriff PV und Batterie via Modbus #18695

slxreaper opened this issue Feb 9, 2025 · 1 comment

Comments

@slxreaper
Copy link

Describe the bug

Hallo,
ich habe nun das Problem eingegrenzt.
Ich kann nur via Modbus TCP das grid-meter verbinden. die "PV" und die "Batterie" funktionieren nur über API-Schnittstelle.
Ich habe auch das einzelne Gerät versucht mit Modbus zu verbinden.
Als Template habe ich sunspec-hybrid und inverter und bei der Batterie sunspec-battery-control getestet.

als Fehlermeldung kam:

[main ] FATAL 2025/02/09 14:15:25 cannot create meter 'battery3': cannot create meter type 'template': cannot create meter type 'custom': power: sunspec model not found: [{802 0 W}]
[main ] FATAL 2025/02/09 14:15:25 will attempt restart in: 15m0s

Dies konnte auf einer Windows-instanz und auf einem Addon im homeassistant reproduziert werden.

Der Port 502 des modbusproxys und des WR ist über einen modbustester mit den entsprechenden Registern auszulesen.

Steps to reproduce

...

Configuration details

site:
  title: Home # display name for UI
  meters:
    grid: grid1
    # grid: my_grid
    pv:
      - pv2
    battery:
      - battery3

# define your loadpoints according your needs
# see https://docs.evcc.io/en/docs/reference/configuration/loadpoints
loadpoints:
  - title: Garage # display name for UI
    charger: my_charger # charger
    vehicle: my_car # default vehicle

    # meter definitions
# name can be freely chosen and is used as reference when assigning meters to site and loadpoints
# for documentation see https://docs.evcc.io/docs/devices/meters
meters:
  - name: grid1
    type: template
    template: sunspec-hybrid
    usage: grid
    # Modbus TCP
    modbus: tcpip
    id: 240
    host: 192.xxx.xxx.xxx # Hostname Modbusproxy
    port: 502 # Port

  - name: pv2
    type: template
    template: fronius-solarapi-v1
    # Modbus TCP
    modbus: tcpip
    id: 240
    host: 192.xxx.xxx.xxx # Hostname Modbusproxy
    port: 502 # Port

  - name: battery3
    type: template
    template: fronius-solarapi-v1
    usage: battery
    # Modbus TCP
    modbus: tcpip
    id: 240
    host: 192.xxx.xxx.xxx # Hostname Modbusproxy
    port: 502 # Port

# replace with your real charger
# see https://docs.evcc.io/docs/devices/chargers
chargers:
  - name: my_charger
    type: template
    template: demo-charger
    status: C # charging
    power: 2000 # 2 kW charging power
    enabled: true # optional

Log details

[main  ] FATAL 2025/02/09 14:15:25 cannot create meter 'battery3': cannot create meter type 'template': cannot create meter type 'custom': power: sunspec model not found: [{802 0 W}]
[main  ] FATAL 2025/02/09 14:15:25 will attempt restart in: 15m0s

What type of operating system or environment does evcc run on?

HomeAssistant Add-on

External automation

  • I have made sure that no external automation like HomeAssistant or Node-RED is active or accessing any of the mentioned devices when this issue occurs.

Nightly build

  • I have verified that the issue is reproducible with the latest nightly build

Version

evcc version 0.133.0

@benesolar
Copy link
Contributor

Die IDs bei PV2 und Battery3 sind falsch.

Wenn du einen Gen24 Wechselrichter hast nimm das template: fronius-gen24.
Die IDs kannst dann weglassen.

@evcc-io evcc-io locked and limited conversation to collaborators Feb 9, 2025
@premultiply premultiply converted this issue into discussion #18699 Feb 9, 2025

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants