[APP][Pro] Home Assistant - Community App

Hello All,

I’m trying to create 3 virtual devices on Homey from Home Assistant - Solar System following the amazing blog from @RonnyW.

But I think I’m not selecting the correct entities for that. If anyone could look to the information below and try to help me, it would be great.

SmartMeter - HomeAssistant: Display home battery in HomeyEnergy

SolarPanel - HomeAssistant: Solarpanele/Inverter in HomeyEnergie anzeigen – Ronny Winkler

Battery - HomeAssistant: Haus-Batterie in HomeyEnergy anzeigen – Ronny Winkler


List of all sensors in Home Assistant from Solarman Integration:


SmartMeter

Sensor Added:

  • Current power/consumption in W: PV Power (sensor.swatten_inverter_pv_power)
  • Energy consumed in kWh: Today Energy import (sensor.swatten_inverter_today_energy_import)
  • Energy fed in in kWh: Today Energy export (sensor.swatten_inverter_today_energy_export)


SolarPanel

Sensor Added/Needed:

  • An entity that represents the current electricity production in W: Don’t know which sensor to select here.
  • An entity that indicates the total energy in kWh (the meter for electricity production): Today Production (sensor.swatten_inverter_today_production)


Battery

Sensor Added:

  • Battery level (SoC) in percent: Battery (sensor.swatten_inverter_battery)
  • Charging power in watts: Battery Power (sensor.swatten_inverter_battery_power)

Looking to the energy of Homey and comparing with Solar APP I think not all is correct. Of course knowing that the solar app have 5 minutes delay.

SmartMeter - Not sure if the power selected is the correct one.

Solar - No Power, because I didn’t select one entity yet.

Battery - Says Discharging. But it’s charging right now.


Really sorry for the long post, but didn’t found another way to explain my issues.

I hope someone can help me.

Thank you.

PV Power

No. You shouldn’t use generated solar power data for smart meter data.
Which (P1) smart meter do you use? Homewizard, Homey dongle, etc
You’ll need the power / imported energy/ exported energy data from that unit

1 Like

Hi @Peter_Kawa ,

Thank you a lot for the fast feedback.

Removed the “PV Power” from Virtual Device SmartMeter and added in the Virtual Device Solar. - All Good.
imagem


The company installed the Solar System this week, and I think the meter is not so smart. :slight_smile:

The energy meter is a Acrel ADL200.

For the Power I added the entity: Load Power (sensor.swatten_inverter_load_power)

Because checking the values from Solar App and the values from the entities was the one always similar.


Comparing the values now on Homey with the Solar App, they are not exactly the same, but it seems better. :slight_smile:

Ok, let’s do it step by step…

Smartmeter:
The smart meter needs:

  • grid energy (current grid usage/export). I can’t see an entity for grid power. It should be a value around 0W based on your last screenshot.
    If not existing, you could create helper sensor calculating the energy (W) based in Grid L1 Current and Grid L1 Voltage and import this entity.
  • grid imported energy: I think you managed this like shown in the Blog (set it as imported/exported energy in add entity view)
2 Likes

Battery:
This device needs:

  • measure_battery, that’s the SoC
  • total charged/discharged energy:
    Use your “Total battery charged” and “Total battery discharged”. The coming app version will provide an option similar to smartmeter capabilities to define the entity as charged or discharged.
    Please wait for the new app version and then add these entities again.
  • measure_power: The current power (positive/negative). If you HA entity reports inverted to Homey capability, you can use a converter like this:
(value) => { return parseFloat(value) * -1; }

2 Likes

Solarpanel:
You need:

  • meter_power: The total power meter for produced energy. That should be your “Total production” entity.
  • measure_power: The current produced energy in W. I think your “PV Power” entity should be right.
2 Likes

You should have a small smart meter after your energy meter (the “big” one from your energy provider). It’s often a small box on the DIN rail with a LCD display. Your app shows grid energy, so it has such a meter.
But I only found the Grid voltage/current entities in your screenshot. You need a Watt entity reporting the positive/negative energy in W dependent if it’s imported or exported.

Is it correct, that you have a single phase installation?

That seems your smartmeter device should show the 20W, not the internal usage of 489W.
Homey calculates the internal usage from solar production and imported/exported energy. Your inverter (or the app) is doing the same - because the system only knows the smartmeter data (grid in/out) and solar production.

1 Like

@RonnyW You know a lot. :sweat_smile:

Battery info fixed:

imagem

@RonnyW

Solarpanel:
measure_power - OK

meter_power - Why Total Production and not Today Production?

If I add Total Production, Homey can split the info correctly by day?

Homey uses total meter data (always increasing) to calculate historical data in Homey energy. That’s what you get when you click the calender icon.

HomeAssistant is doing the same in Energy dashboard.

1 Like

@RonnyW

Exactly, they installed the meter - Acrel ADL200 in the main electrical panel on the DIN Rail:


You are correct. It’s a single phase installation.


The value that you speak, is a value that can be positive or negative, correct?

I added also one Shelly EM, and that one is showing that kind of values:

imagem

But I don’t find that value in the Solar App in Home Assistant.

Got it. :wink:

I will change it.

Thank you.

Well, perhaps the provider API doesn’t provide this data.
But can create a helper entity in HA calculating: Power (W) = current (A) * voltage (V)

This way:

1 Like

Hi @RonnyW,

Following your info + the video you share

{{
states('sensor.swatten_inverter_grid_l1_current') | float * 
states('sensor.swatten_inverter_grid_l1_voltage') | float
}}

imagem


Following Copilot help it says to use 3 sensors to get the NetPower.

{{
states('sensor.swatten_inverter_load_power') | int(0) - 
states('sensor.swatten_inverter_pv_power') | int(0) -
states('sensor.swatten_inverter_battery_power') | int(0)
}}

imagem


Then I have the Shelly EM Value:

imagem


None of the 3 are the same. So I’m really lost which one is the correct one. :slight_smile:

Is your Shelly in line with the smartmeter? Yes, then it should show the same value. But it’s changing dependent on your usage/solar power. The Shelly could update in realtime and your inverter only after some minutes what’s causing different values. So the first helper should be ok if the update interval is ok for you.

New test version 1.11.0:

  • Added home battery charging/discharging data for HomeyEnergy.

You need Homey FW >= 12.4.5 to install the new app version.


A manual is added to my Blog:


@basvanderploeg FYI and test :slight_smile:

1 Like

@RonnyW Works like a charm! I just had to fill in right capability in the device settings, and everything worked right away. :raising_hands:

2 Likes

Hi @RonnyW,

Tested now and all good. :wink::ok_hand:

For this one I had the sensors. :smiley:

Thank you.

@RonnyW

Hi Ronny,

I some examples, I see a percentage of energy consumed. See images below: 97% and 43%.
In my configuration however, this percentage is showing a steady 0% (see third image).

I do not find a reference to this variable in your amazing tutorial (link below).
Can you explain the config of this parameter please? Thank you !

[HomeAssistant: Toon zonnepanelen/omvormers in HomeyEnergy – Ronny Winkler](https://rw
development.de/2025/04/30/homeassistant-solarpanele-inverter-in-homeyenergie-anzeigen/)

There is no assignment for device energy data to present Homey a capability for a percentage. I think, Homey calculates the value based on solar and main meter data

Do you have a smart meter added to Homey? You will need imported/exported energy data from a smartmeter to get the used/exported part for solar.