Hallo Zusammen,
ich bin neu in der HA.
Jetzt möchte ich die "SolarEdge Modbus Multi Device" integration zum laufen bringen.
Habe schon den Modbus TCP aktiviert.
Habe die Integration dann installiert, aber das Fenster "SolarEdge Modbus Configuration" kommt nicht wie in der Anleitung.
Jetzt weis ich nicht woran es liegt ob ich im WR noch Anpassungen machen muss oder an was sonst.
Steht auch das es bei Wlan Verbindungen zu Problemen kommen kann, meiner ist per Wlan verbunden.
Vielleicht hat einer von euch es schon erfolgreich geschaft.
Servus,
ich hatte es vor einiger Zeit erfolgreich eingerichtet. Versuche mit den Ports zu probieren (1502 / 502). Mittlerweile ruft aber evcc die Werte ab und diese landen dann via mqtt wieder in HA + API Abruf aus der SE-Cloud.
Wichtig: Es darf nur eine Instanz die Werte vom Wechselrichter über Modbus abrufen. Schau also, dass nicht mehrere Systeme gleichzeitig Daten wollen.
Also ganz so würde ich das nicht unterschreiben. Habe einen SMA WR den frage ich über Modbus yaml, mit SBFSpot und SMA Speedwire integration ab und momentan sogar mit 2 Rechner gleichzeitig und alles funktioniert.
SMA ist halt kein Solaredge … war nur ein Hinweis.
Hab ich schon Verstanden ich bin auch gerade am überlegen das eine oder andere unscharf zu schalten.
Mit freundlichen Grüßen
Auch wenn der Beitrag schon etwas älter ist: der Zugriff auf ModBus TCP ist bei SolarEdge Wechselrichtern nur per LAN möglich. Daran wird es gelegen haben.
1 „Gefällt mir“
Hallo, ich habe meine Solaredge PV über modbus in HA eingebunden. Leider kann ich die Entität Sonnenenergie Power nicht finden. Muss ich das Berechen?
Ja habe so ziemlich alles berechnet und in die richtige Einheit gewandelt
Hi, ich habe gerade das gleiche Problem.
@bikerboy-86 wie hast du das alles berechnet? Kannst du das hier rein stellen?
Veritas
3. Februar 2024 um 11:44
10
Habe jetzt auch alles berechnet, hier mein Code:
template:
- sensor:
- name: "Solar Panel Production"
unique_id: solar_panel_production_w
unit_of_measurement: "W"
icon: mdi:solar-power
state: >
{% set i1_dc_power = states('sensor.solaredge_i1_dc_power') | float(0) %}
{% set b1_dc_power = states('sensor.solaredge_b1_dc_power') | float(0) %}
{% if (i1_dc_power + b1_dc_power <= 0) %}
0
{% else %}
{{ (i1_dc_power + b1_dc_power) }}
{% endif %}
availability: >
{{ states('sensor.solaredge_i1_dc_power') | is_number and states('sensor.solaredge_b1_dc_power') | is_number }}
- name: "Solar House Consumption"
unique_id: solar_house_consumption_w
unit_of_measurement: "W"
icon: mdi:home
state: >
{% set i1_ac_power = states('sensor.solaredge_i1_ac_power') | float(0) %}
{% set m1_ac_power = states('sensor.solaredge_m1_ac_power') | float(0) %}
{% if (i1_ac_power - m1_ac_power <= 0) %}
0
{% else %}
{{ (i1_ac_power - m1_ac_power) }}
{% endif %}
availability: >
{{ states('sensor.solaredge_i1_ac_power') | is_number and states('sensor.solaredge_m1_ac_power') | is_number }}
- name: "Solar Inverter Consumption"
unique_id: solar_inverter_consumption_w
unit_of_measurement: "W"
icon: mdi:home-lightning-bolt-outline
state: >
{% set i1_ac_power = states('sensor.solaredge_i1_ac_power') | float(0) %}
{% set i1_dc_power = states('sensor.solaredge_i1_dc_power') | float(0) %}
{% if (i1_ac_power > i1_dc_power < 0) %}
{{ (i1_ac_power - i1_dc_power)| round(2) }}
{% else %}
{{ ( i1_dc_power - i1_ac_power)| round(2)}}
{% endif %}
availability: >
{{ states('sensor.solaredge_i1_ac_power') | is_number and states('sensor.solaredge_i1_dc_power') | is_number }}
- name: "Solar Imported Power"
unique_id: solar_imported_power_w
unit_of_measurement: "W"
icon: mdi:transmission-tower-export
state: >
{% set m1_ac_power = states('sensor.solaredge_m1_ac_power') | float(0) %}
{% if (m1_ac_power < 0) %}
{{ (m1_ac_power * -1) }}
{% else %}
0
{% endif %}
availability: >
{{ states('sensor.solaredge_m1_ac_power') | is_number}}
- name: "Solar Exported Power"
unique_id: solar_exported_power_w
unit_of_measurement: "W"
icon: mdi:transmission-tower-import
state: >
{% set m1_ac_power = states('sensor.solaredge_m1_ac_power') | float(0) %}
{% if (m1_ac_power > 0) %}
{{ (m1_ac_power) }}
{% else %}
0
{% endif %}
availability: >
{{ states('sensor.solaredge_m1_ac_power') | is_number }}
- name: "Solarpanelleistung"
unit_of_measurement: "kW"
unique_id: solar_panel_leistung_kw
icon: mdi:solar-power
device_class: power
state_class: measurement
state: >-
{{ (float(states('sensor.solar_panel_production_w'))) * 0.001 }}
# Produktion - riemann sum integral sensor für Solar. Umrechnung W zu kWh
sensor:
- platform: integration
source: sensor.solar_panel_production_w
method: left
unit_prefix: k
name: solar_panel_production_kwh
unique_id: solar_panel_production_kwh
- platform: integration
source: sensor.solar_house_consumption_w
method: left
unit_prefix: k
name: solar_house_consumption_kwh
unique_id: solar_house_consumption_kwh
- platform: integration
source: sensor.solar_imported_power_w
method: left
unit_prefix: k
name: solar_imported_power_kwh
unique_id: solar_imported_power_kwh
- platform: integration
source: sensor.solar_exported_power_w
method: left
unit_prefix: k
name: solar_exported_power_kwh
unique_id: solar_exported_power_kwh
utility_meter:
solar_panel_production_daily:
source: sensor.solar_panel_production_kwh
name: "Solar Panel Production Daily"
unique_id: solar_panel_production_daily_kwh
cycle: daily
solar_house_consumption_daily:
source: sensor.solar_house_consumption_kwh
name: "Solar House Consumption Daily"
unique_id: solar_house_consumption_daily_kwh
cycle: daily
solar_imported_power_daily:
source: sensor.solar_imported_power_kwh
name: "Solar Imported Power Daily"
unique_id: solar_imported_power_daily_kwh
cycle: daily
solar_exported_power_daily:
source: sensor.solar_exported_power_kwh
name: "Solar Exported Power Daily"
unique_id: solar_exported_power_daily_kwh
cycle: daily
solar_imported_power_weekly:
source: sensor.solar_imported_power_kwh
name: "Solar Imported Power Weekly"
unique_id: solar_imported_power_weekly
cycle: weekly
solar_house_consumption_weekly:
source: sensor.solar_house_consumption_kwh
name: "Solar House Consumption Weekly"
unique_id: solar_house_consumption_weekly
cycle: weekly
solar_panel_production_weekly:
source: sensor.solar_panel_production_kwh
name: "Solar Panel Production Weekly"
unique_id: solar_panel_production_weekly
cycle: weekly
solar_exported_power_weekly:
source: sensor.solar_exported_power_kwh
name: "Solar Exported Power Weekly"
unique_id: solar_exported_power_weekly
cycle: weekly
solar_imported_power_monthly:
source: sensor.solar_imported_power_kwh
name: "Solar Imported Power Monthly"
unique_id: solar_imported_power_monthly
cycle: monthly
solar_house_consumption_monthly:
source: sensor.solar_house_consumption_kwh
name: "Solar House Consumption Monthly"
unique_id: solar_house_consumption_monthly
cycle: monthly
solar_panel_production_monthly:
source: sensor.solar_panel_production_kwh
name: "Solar Panel Production Monthly"
unique_id: solar_panel_production_monthly
cycle: monthly
solar_exported_power_monthly:
source: sensor.solar_exported_power_kwh
name: "Solar Exported Power Monthly"
unique_id: solar_exported_power_monthly
cycle: monthly
solar_imported_power_yearly:
source: sensor.solar_imported_power_kwh
name: "Solar Imported Power Yearly"
unique_id: solar_imported_power_yearly
cycle: yearly
solar_house_consumption_yearly:
source: sensor.solar_house_consumption_kwh
name: "Solar House Consumption Yearly"
unique_id: solar_house_consumption_yearly
cycle: yearly
solar_panel_production_yearly:
source: sensor.solar_panel_production_kwh
name: "Solar Panel Production Yearly"
unique_id: solar_panel_production_yearly
cycle: yearly
solar_exported_power_yearly:
source: sensor.solar_exported_power_kwh
name: "Solar Exported Power Yearly"
unique_id: solar_exported_power_yearly
cycle: yearly
solar_imported_power_infinity:
source: sensor.solar_imported_power_kwh
name: "Solar Imported Power Infinity"
unique_id: solar_imported_power_infinity
solar_house_consumption_infinity:
source: sensor.solar_house_consumption_kwh
name: "Solar House Consumption Infinity"
unique_id: solar_house_consumption_infinity
solar_panel_production_infinity:
source: sensor.solar_panel_production_kwh
name: "Solar Panel Production Infinity"
unique_id: solar_panel_production_infinity
solar_exported_power_infinity:
source: sensor.solar_exported_power_kwh
name: "Solar Exported Power Infinity"
unique_id: solar_exported_power_infinity
1 „Gefällt mir“
Meine Umrechnung
#-------Umrechnung Solaredge------------------------
- platform: template
sensors:
solaredge_hausverbrauch:
friendly_name: 'Solaredge Hausverbrauch'
value_template: "{{ ((((states('sensor.solaredge_m1_ac_power')|float)*(-1)) + states('sensor.solaredge_ac_power')|float)/1000)|round(2) }}"
unit_of_measurement: "kW"
icon_template: mdi:home
- platform: template
sensors:
solaredge_pv_erzeugung:
friendly_name: 'Solaredge PV ezeugung'
value_template: "{{ ((states('sensor.solaredge_ac_power')|float + (states('sensor.solaredge_battery1_power')|float))/1000)|round(2) }}"
unit_of_measurement: "kW"
icon_template: mdi:solar-power
- platform: template
sensors:
solaredge_netz_einspeisung:
friendly_name: 'Solaredge Netz Einspeisung'
value_template: >
{% if states('sensor.solaredge_m1_ac_power') | int > 0 %}
{{ ((states('sensor.solaredge_m1_ac_power')|float)/1000)|round(2) }}
{% else %}
0
{% endif %}
unit_of_measurement: "kW"
icon_template: mdi:transmission-tower-export
- platform: template
sensors:
solaredge_netz_bezug:
friendly_name: 'Solaredge Netz Bezug'
value_template: >
{% if states('sensor.solaredge_m1_ac_power') | int < 0 %}
{{ (((states('sensor.solaredge_m1_ac_power')|float)*(-1))/1000)|round(2) }}
{% else %}
0
{% endif %}
unit_of_measurement: "kW"
icon_template: mdi:transmission-tower-import
- platform: template
sensors:
solaredge_batterie_einspeisung:
friendly_name: 'Solaredge Batterie Einspeisung'
value_template: >
{% if states('sensor.solaredge_battery1_power') | int > 0 %}
{{ ((states('sensor.solaredge_battery1_power')|float)/1000)|round(2) }}
{% else %}
0
{% endif %}
unit_of_measurement: "kW"
icon_template: mdi:battery
- platform: template
sensors:
solaredge_batterie_bezug:
friendly_name: 'Solaredge Batterie Bezug'
value_template: >
{% if states('sensor.solaredge_battery1_power') | int < 0 %}
{{ (((states('sensor.solaredge_battery1_power')|float)*(-1))/1000)|round(2) }}
{% else %}
0
{% endif %}
unit_of_measurement: "kW"
icon_template: mdi:battery-outline
1 „Gefällt mir“
Soweit so gut… Aber wie füge ich einen zweiten Wechselrichter und Batterie hinzu?
Ich habe 2 Wechselrichter mit jeweils 1 Batterie.
Zusätzlich zeigt ihr diese Fehler an:
Platform template does not generate unique IDs. ID solar_panel_production_w already exists - ignoring sensor.solar_panel_production_w
Platform template does not generate unique IDs. ID solar_house_consumption_w already exists - ignoring sensor.solar_house_consumption_w
Platform template does not generate unique IDs. ID solar_imported_power_w already exists - ignoring sensor.solar_imported_power_w
Platform template does not generate unique IDs. ID solar_exported_power_w already exists - ignoring sensor.solar_exported_power_w
Wobei die Uniques einzigartig sind.
Hallo zusammen,
ich komme leider mit den Berechnungen der PV Panel Produktion nicht zurecht.
Wenn bei mir Strom vom Dach kommt zeigt AC und DC Power einen Minuswert.
Ist das bei euch auch so, oder stimmt bei mir was nicht?
Moin,
ich bin recht frisch bei Homeassistant und habe einen Solaredge WR und auch schon das Modbus Multi am laufen. Jetzt denke ich das ich einer Lösung, um mein Energie-dashboard ans laufen zu bringen, recht nah bin. Fehlt nur, das mir mal kurz jemand einen Tip gibt, wo ich euren Code intergrieren muss ;-). Stehe da gerade ziemlich auf dem Schlauch…
Lieben Dank,
Andreas