Custom Component solaredge-modbus-multi

Battery detection depends on the inverter proxying the battery. Some inverters don’t do it, possibly because of an internal setting SolarEdge can control.

You can turn on debug logging and post your startup sequence where it runs battery detection to see what it returns, but almost always this issue is becasue the inverter doesn’t support battery over the modbus/TCP interface. It has been said SolarEdge can enable this internally, but I don’t personally have batteries so I don’t know personally.

Hello I have solardge SE600H Hybrid inverter with battery LG chem resu prime 16kw
I don’t see the photovoltaic production sensor anywhere.
Since I have a three-phase house with 2 other inverters connected to other phases.
AC POWER shows a negative value which would be its production + the production of the other inverters.
It would also be useful to have the real production sensor of the inverter to which the battery is connected. What can I do to obtain it?

Modbus data doesn’t have a “PV power” sensor. You have to calculate it with templates when you have batteries.

This thread discusses it:

Thanks for the work on the integration.

I only have one issue. Battery import or export energy value goes unknown about once a day. I did power cycle the full system a few times but that doesn’t change the behavior.
I noticed that if I reload the integration it comes back.
For now I made an automation that detects when it is unknown and will reload the integration.

If battery energy values go backwards (current poll value is less than previous polled value), the warning messages Battery Import Energy went backwards or Battery Export Energy went backwards will be logged, and the entity values will change to unavailable.

I installed this to shut down my inverter when the energy rates are negative, but whatever I do, I can’t find a way to do this. Modbus is installed and open for communication, but how can I limit my inverter?

I appear to be having an issue with throttling, the _i1_status entity is regularly htting throttled for 1 minute, before going back to normal and the active_power_limit keeps setting itself anywhere from 20% up to 100% (seemingly at the same time as the throttling). Could somebody share their screenshot, here or via DM of a standard sunny day of these entities please?)

Couldn’t figure out the best place to ask for another user to share this data, so trying here. Thanks!

Have you enabled power options? You could try setting the power limit to 0%

Hi,

in the near future, I receive my SolarEdge with 9.2 KWh Battery Capacity combined from 2 modules. You read that it is possible that 1 inverter can use 3 batteries.
Here is my question. When I expand the Capacity with 2 more Modules, is one Mobule not usable with that integration or is the Number of Batteries meant for Battery Towers, because it is possible to stack up to 3 Battery Modules.

Where can I do that?

Turn on auto detect additional entities in config options. If your inverter supports commands it will add entities for active power limit. Not all inverters support commands over modbus (mine don’t).

Hello, I’ve been trying for months to set up my SolarEdge system with 18 kWp in Home Assistant. I have 2 inverters and a battery.
MTR-240-3PC1-D-A-MW
SE10K-RWB48BFN4
SolarEdge Home Battery 13.8kWh

I’m only getting strange values, and I can’t figure out the configuration.

I have a Go-E charger that I’d like to integrate with the setup.

Can someone help me or has any idea what I might be doing wrong?

Thank you very much!

Hallo, ich versuche seit Monaten meine Solar Edge anlage mit 18kw peak in Homeassistant einzurichten ich habe 2 wechselrichter und batterie.
MTR-240-3PC1-D-A-MW
SE10K-RWB48BFN4
SolarEdge Home Battery 13.8kWh

mir werden nur komische Werte ausgespruckt und ich komme mit der Konfiguration nicht zurecht.

Habe einen Go-E Charger für den ich das ganze gern einrichten möchte.

Kann wir von euch jemand helfen oder hat ideen woran es liegen könnte, was ich falsch gemacht habe?

Danke schön

einmal für eure Hilfe!

Hello,
thank you for the integration!
Can you help me with the template sensors, I copied it from the wiki page, but the sensors are always unavailable:

This is my config yaml:

# Loads default set of integrations. Do not remove.
default_config:

# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

# Motion Sensor
template:
    - trigger:
      - platform: event
        event_type: motioneye.motion_detected
      binary_sensor:
      - name: Door Motion
        unique_id: "Door_Motioneyeos_detection"
        state: "true"
        device_class: motion
        auto_off: 30

# Solar Edge
    - sensor:
      - name: "Power - Solar Generation"
        unit_of_measurement: "W"
        device_class: "power"
        state_class: "measurement"
        # DC power from inverter
        state: "{{ float(states('sensor.solaredge_i1_dc_power'), 0) }}"
        availability: "{{ has_value('sensor.solaredge_i1_dc_power') }}"

      - name: "Power - Consumption"
        unit_of_measurement: "W"
        device_class: "power"
        state_class: "measurement"
        # The net of inverter and grid power
        state: "{{ float(states('sensor.solaredge_i1_ac_power'), 0) - float(states('sensor.solaredge_m1_ac_power'), 0) }}"
        availability: "{{ has_value('sensor.solaredge_i1_ac_power') and has_value('sensor.solaredge_m1_ac_power') }}"

      - name: "Power - Grid - Load"
        unit_of_measurement: "W"
        device_class: "power"
        state_class: "measurement"
        state: "{{ min([float(states('sensor.solaredge_m1_ac_power'), 0), 0]) | abs() }}"
        availability: "{{ has_value('sensor.solaredge_m1_ac_power') }}"
      - name: "Power - PV - Grid"
        unit_of_measurement: "W"
        device_class: "power"
        state_class: "measurement"
        state: "{{ max([float(states('sensor.solaredge_m1_ac_power'), 0), 0]) | abs() }}"
        availability: "{{ has_value('sensor.solaredge_m1_ac_power') }}"
      - name: "Power - PV - Load"
        unit_of_measurement: "W"
        device_class: "power"
        state_class: "measurement"
        # What is being generated less what is being exported, always positive.
        state: "{{ max([float(states('sensor.power_solar_generation'), 0) - float(states('sensor.power_pv_grid'), 0), 0]) }}"
        availability: "{{ has_value('sensor.power_solar_generation') and has_value('sensor.power_pv_grid') }}"

edit

Seems that I don’t have “sensor.solaredge_m1_ac_power”
only have:
“sensor.solaredge_i1_m1_ac_power”
With this sensor it’s working

Hi all,

I have an issue and I do not understand why. I am using the integration since last September without any issue with a with a SE10K, a batteriy and a backup box.

Today I got a Hot water Controller and the Solar Edge Partner has done an firmware update for all components. I saw that TCP/Modbus was on but since the update I can no longer establish a connection to the inverter:

WARNING (MainThread) [pymodbus.logging] Failed to connect [Errno 111] Connect call failed ('172.16.50.233', 1502)

any ideas, what happens?

My issue with the ModBus was solved. We switched off Modbus/TCP on the iverter and the switched it on. After that the connection was there again.

But:
I do not see the Hot Water Unit in Homeassistant. Is it not supported by this integration?

No, the hot water unit doesn’t have any modbus support.

Hi All,

Thanks for the great work on this wonderful component!

I have two inverters and everything was working as expected until my inverters got upgraded to the latest SolarEdge firmware v4.23.27 (in fact only the master has been upgraded, waiting for the slave to be upgraded…).
Before the upgrade, the fw was v4.22.44 on both inverters.

Since the upgrade, I constantly get this error:

Logger: pymodbus.logging
Source: custom_components/solaredge_modbus_multi/hub.py:492
integration: SolarEdge Modbus Multi (documentation, issues)
First occurred: 8:01:15 AM (35 occurrences)
Last logged: 8:32:55 AM

Failed to connect [Errno 111] Connect call failed (‘192.168.1.151’, 1502)

I tried to uninstall and reinstall the component, same issue.

I checked the inverters config and modbus is correctly configured, the fw upgrade has not altered its config.

Have someone else experienced this issue?

Thanks and regards,
Patrick

Hello,
Issue solved by disabling and re-enabling the Modbus on the master inverter.
Regards,
Patrick

1 Like