UPDATED! SolarEdge Modbus full setup guide with Energy Dashboard integration for Installations with Battery connected

Of course. This was just a question. Take your time. Thank you so much for all you achieved so far. Really cool and very helpful.

Hi,
I tried your config and it works great! Many thanks

Can you add maybe some round values? (I did for myself already)

What do you mean exactly? Maybe show an example of what you did…

I am not able to start with the energy dashboard with SolarEdge Modbus, because (it seems) I don’t have all your entities?

Can you help please how I have to integrate this availiabe sensor into the dashboar? (I don’t use a battery)

sensor.solaredgemod_ac_current
sensor.solaredgemod_ac_current_a
sensor.solaredgemod_ac_current_b
sensor.solaredgemod_ac_current_c
sensor.solaredgemod_ac_energy_kwh
sensor.solaredgemod_ac_frequency
sensor.solaredgemod_ac_pf
sensor.solaredgemod_ac_power
sensor.solaredgemod_ac_va
sensor.solaredgemod_ac_var
sensor.solaredgemod_ac_voltage_ab
sensor.solaredgemod_ac_voltage_an
sensor.solaredgemod_ac_voltage_bc
sensor.solaredgemod_ac_voltage_bn
sensor.solaredgemod_ac_voltage_ca
sensor.solaredgemod_ac_voltage_cn
sensor.solaredgemod_dc_current
sensor.solaredgemod_dc_power
sensor.solaredgemod_dc_voltage
sensor.solaredgemod_status
sensor.solaredgemod_status_vendor
sensor.solaredgemod_temp_sink

It seems you
a) either use a different integration, since the sensors have different names
b) you have a different solaredge setup without a connected meter and battery: You do not have the “m1” sensors, which represent the imported and exported power. And you do not have a battery sensor, so I am assuming you do not have a battery
c) you did not select the “meter” and “battery” options during the initial setup of your modbus integration. Please refer to that thread for help in getting the right setup of the mobus.

From the sensors you have available, only the “ac_energy_kwh” will be available in the Energy Dashboard, since that is the only one of the correct type.

For my configuration to work, the modbus integration must be setup correctly and the sensors (by default) should all start with “solaredge_” and not like in your case with “solaredgemod_”.

should I delete and reinstall the Modbus Integration in HA?
Correct, I don’t have a battery

I don’t know what setup you have. As I stated in the previous post… Do you have an external meter connected to your inverter to measure import and export. Ok, the battery you don’t have, my config may work without, at least partially, but without the meter it won’t and there would be no way of getting that information from the available data I am afraid

I don’t have an external meter which is connected to my invertert. I only have a integration of “Volkszaehler”, which is connected to my smart meter from my power supply company. I can see the import and export in kW.

Ok… That is something completely different as my setup. I am afraid my configuration will not help you much then. Rather you would need to use the sensors provided by that integration plus the solaredgemod_ac_energy_kwh from the Möbius Integration to feed the energy dashboard.

Hello everybody,
Great Work!
@Remko: Is the Solar Battery out Daily Sensor missing in your first post?
I can´t find it in the HA Energy board and in the Energy.yaml as well? Or am i looking at the wrong places?

The sensor is available after it actually starts counting. So your battery needs to be used by your house, before the sensor gets a value. Probably wait a day or 2 and it will be there.

I use House consumption in Lovelace, so I rounded this value.
Just a small detail nevertheless.

    - name: "Solar House Consumption W"
      unique_id: solar_house_consumption_w
      unit_of_measurement: 'W'
      icon: mdi:home
      state: >             
        {{((states('sensor.solar_panel_to_house_w') | float(0)) + (states('sensor.solar_battery_to_house_w') | float(0)) + (states('sensor.solar_grid_to_house_w') | float(0) ) | round (0))}} 

Ah ok, yes…you can do that of course. I left it unrounded since I do not use those values besides the Tesla Style Card and I like the display there. Thank for the example though, some others may find it usefull.

My solar is hopefully getting installed this week. I do not have a battery but seems like I should be able to utilise this setup by removing the battery references?

I think that should work. It would actually be a lot simpler as a setup with battery. I think you should start with removing the references and go through the entire file to check the formulas. Overall it should work though. if it doesn’t right away, you can send me your updated energy.yaml and I’ll have a look at it.

1 Like

Thanks, I think i’ve altered it appropriately. Solar isnt installed for a few more days so I won’t trouble you with reviewing it until I can test for real.

Your second post in this thread talks about additional template sensors to work around a zeroing issue. These do not appear in your energy.yaml so I was wondering if you have stopped using them now with the updated config?

That second post was obsolete, I worked out that issue in my latest config in the first post. I deleted the second post to avoid confusion.

1 Like

I’m a bit confused. I’ve using your Config since January. I’ve upgraded now to the latest Config/Post and now the Values are changed. Is it right, that the Battery Values are not added to the House consumption?

Later, as the battery was empty the Values are correct (round 5kw is added to the House).

Hmm…these values are interesting and I do not quite understand them. Could you please create some history graphs of the following sensors:

  • solaredge_ac_power
  • solaredge_m1_ac_power
  • solaredge_dc_power
  • solaredge_battery1_power

I did make a significant change to also use the effectiveness (Wirkungsgrad) of the battery in the calculation, but I still do not understand fully understand the values which are displayed in your case. There may be a mistake with the “panel_to_house” sensor in my case, but I would need to see the value of the above mentioned sensors in the case of your screenshot. Maybe I have not fully considered the case where the house consumption exceeds the battery power and it also draws from panels and grid at that time.

1 Like

Sorry, for my late answer.

now, my Battery ist (low) charged and the only Consumption comes from the battery. The values are not correct:

Here are the History graphs, hope you can find something, that could to get the problem. If i can help, please give me a hint.