# \[APP\]\[Pro\] Home Assistant - Community App

**URL:** <https://community.homey.app/t/app-pro-home-assistant-community-app/71477>\
**Category:** Apps\
**Tags:** app, tools, homey-pro, home-assistant\
**Created:** [October 31, 2022, 8:25pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477 "2022-10-31T20:25:26Z")\
**Posts on this page:** 20\
**Page:** 67

<div class="post-metadata">

**Author:** ![Daniel\_Cruz](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daniel_cruz/32/81875_2.png) [@Daniel\_Cruz](https://community.homey.app/u/Daniel_Cruz)\
**Post date:** [June 5, 2025, 12:25pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/1335 "2025-06-05T12:25:10Z")

</div>

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](https://rwdevelopment.de/2024/12/20/homeassistant-verwende-deinen-smartmeter-in-homeyenergy/)

SolarPanel - [HomeAssistant: Solarpanele/Inverter in HomeyEnergie anzeigen – Ronny Winkler](https://rwdevelopment.de/2025/04/30/homeassistant-solarpanele-inverter-in-homeyenergie-anzeigen/)

Battery - [HomeAssistant: Haus-Batterie in HomeyEnergy anzeigen – Ronny Winkler](https://rwdevelopment.de/2025/03/24/homeassistant-haus-batterie-in-homeyenergy-anzeigen/)

* * *

List of all sensors in Home Assistant from Solarman Integration:

 ![imagem](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/c/1c2b90b6917279004c622b8a18e28e36346a3eba.jpeg)

* * *

**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)

 ![imagem](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/2/f28e2dcc0813bdf06428a05d57125264572b03db.png)

* * *

**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)

 ![imagem](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/1/c18c92d6a28c1bb37b64eb8de32a1d8e03cce254.png)

* * *

**Battery**

Sensor Added:

- **Battery level (SoC) in percent:** Battery (sensor.swatten\_inverter\_battery)
- **Charging power in watts:** Battery Power (sensor.swatten\_inverter\_battery\_power)  
 ![imagem](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/b/cba6a8f0586246fd9a76089b7f2018a33909272f.png)

* * *

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.

 ![imagem](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/7/9745e189891c33ce7091d5cecb4b129a7e9679d2.jpeg)

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.

 ![imagem](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/f/7f33e8db1eeb263b50f85bee87cf442ae1447138.png)

* * *

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

I hope someone can help me.

Thank you.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [June 5, 2025, 3:27pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/1336 "2025-06-05T15:27:14Z")

</div>

> [@Daniel\_Cruz](#):
>
> **An entity that represents the current electricity production in W:** Don’t know which sensor to select here.

PV Power

> [@Daniel\_Cruz](#):
>
> **SmartMeter**
> 
> Sensor Added:
> 
> - **Current power/consumption in W:** 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

---

<div class="post-metadata">

**Author:** ![Daniel\_Cruz](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daniel_cruz/32/81875_2.png) [@Daniel\_Cruz](https://community.homey.app/u/Daniel_Cruz)\
**Post date:** [June 5, 2025, 7:52pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/1337 "2025-06-05T19:52:28Z")

</div>

Hi @Peter_Kawa ,

Thank you a lot for the fast feedback.

> [@Peter\_Kawa](#):
>
> > [@Daniel\_Cruz](#):
> >
> > **An entity that represents the current electricity production in W:** Don’t know which sensor to select here.
> 
> PV Power

Removed the “PV Power” from Virtual Device SmartMeter and added in the Virtual Device Solar. - All Good.  
 ![imagem](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/8/d85287c071a677e34e9af2fd74f2ae08f50c5d41.png)

 ![imagem](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/5/359755a0810ba14bfe33525c4a744fb53ce618e3.png)

* * *

> [@Peter\_Kawa](#):
>
> > [@Daniel\_Cruz](#):
> >
> > **SmartMeter**
> > 
> > Sensor Added:
> > 
> > - **Current power/consumption in W:** 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

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

The energy meter is a [Acrel ADL200.](https://www.acrel-electric.com/product/adl200_din_rail_energy_meter?gad_source=1&gad_campaignid=12564337419&gclid=Cj0KCQjwgIXCBhDBARIsAELC9ZjCnuo_qSmbcIO979CXmuTSgrVhqqv6-_PjWw6OUcDF_nkp24EQEhMaAgRiEALw_wcB)

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. 🙂

 ![imagem](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/4/34e223725ebc922a9f51734aff8f310c81339f43.jpeg)

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [June 5, 2025, 7:54pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/1338 "2025-06-05T19:54:31Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [June 5, 2025, 8:03pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/1339 "2025-06-05T20:03:32Z")

</div>

**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:

```auto
(value) => { return parseFloat(value) * -1; }

```

 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/d/0d7c7fa40c983c130c1f4520b694e8ad02c0e77b.png)

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [June 5, 2025, 8:06pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/1340 "2025-06-05T20:06:20Z")

</div>

**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.

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [June 5, 2025, 8:11pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/1341 "2025-06-05T20:11:30Z")

</div>

> [@Daniel\_Cruz](#):
>
> The company installed the Solar System this week, and I think the meter is not so smart.

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.

---

<div class="post-metadata">

**Author:** ![Daniel\_Cruz](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daniel_cruz/32/81875_2.png) [@Daniel\_Cruz](https://community.homey.app/u/Daniel_Cruz)\
**Post date:** [June 5, 2025, 8:24pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/1342 "2025-06-05T20:24:31Z")

</div>

@RonnyW You know a lot. 😅

Battery info fixed:

![imagem](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/c/9c2ecdcceab967786c7c167544f57f235ded4883.png)

---

<div class="post-metadata">

**Author:** ![Daniel\_Cruz](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daniel_cruz/32/81875_2.png) [@Daniel\_Cruz](https://community.homey.app/u/Daniel_Cruz)\
**Post date:** [June 5, 2025, 8:29pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/1343 "2025-06-05T20:29:39Z")

</div>

@RonnyW

**Solarpanel:**  
measure\_power - OK

meter\_power - Why Total Production and not Today Production?

 ![imagem](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/6/468bd21e4fa8799577cb871fcb38bc86da63daaf.png)

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

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [June 5, 2025, 8:36pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/1344 "2025-06-05T20:36:49Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Daniel\_Cruz](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daniel_cruz/32/81875_2.png) [@Daniel\_Cruz](https://community.homey.app/u/Daniel_Cruz)\
**Post date:** [June 5, 2025, 8:38pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/1345 "2025-06-05T20:38:25Z")

</div>

@RonnyW

Exactly, they installed the meter - [Acrel ADL200](https://www.acrel-electric.com/product/adl200_din_rail_energy_meter?gad_source=1&gad_campaignid=12564337419&gclid=Cj0KCQjwgIXCBhDBARIsAELC9ZjCnuo_qSmbcIO979CXmuTSgrVhqqv6-_PjWw6OUcDF_nkp24EQEhMaAgRiEALw_wcB) in the main electrical panel on the DIN Rail:

 ![imagem](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/5/15727dfce1ba893ede8e225087675b6223d069a5.jpeg)

* * *

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](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/0/40aba2299705d27e244239efc9fb753b908f0cac.png)

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

---

<div class="post-metadata">

**Author:** ![Daniel\_Cruz](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daniel_cruz/32/81875_2.png) [@Daniel\_Cruz](https://community.homey.app/u/Daniel_Cruz)\
**Post date:** [June 5, 2025, 8:40pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/1346 "2025-06-05T20:40:01Z")

</div>

> [@RonnyW](#):
>
> Homey uses total meter data (always increasing) to calculate historical data in Homey energy. That’s what you get when you clock the calender icon.
> 
> HomeAssistant is doing the same in Energy dashboard.

Got it. 😉

I will change it.

Thank you.

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [June 5, 2025, 9:08pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/1347 "2025-06-05T21:08:44Z")

</div>

> [@Daniel\_Cruz](#):
>
> But I don’t find that value in the Solar App in Home Assistant.

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:

[![](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/f/2f826070d6700c8a9925782bc50f15357e528661.jpeg "How to Create a Template Sensor #homeassistant #tipsandtricks") ](https://www.youtube.com/watch?v=oqhQz0w4ff4)

---

<div class="post-metadata">

**Author:** ![Daniel\_Cruz](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daniel_cruz/32/81875_2.png) [@Daniel\_Cruz](https://community.homey.app/u/Daniel_Cruz)\
**Post date:** [June 6, 2025, 9:57am UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/1348 "2025-06-06T09:57:43Z")

</div>

Hi @RonnyW,

Following your info + the video you share

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

```

![imagem](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/5/d59754568c018b73c94e2349a98b7da7ba5b39cf.png)

* * *

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

 ![imagem](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/8/a8f0033866133a3012af29fca62e40fca1203eed.png)

```auto
{{
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](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/0/f02d9786de12685bc8e54f64ab6ae4ba2dade1f8.png)

* * *

Then I have the Shelly EM Value:

![imagem](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/4/6496ae2e009a2205847d4c09580224cf5ae0b55e.png)

* * *

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

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [June 6, 2025, 10:14am UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/1349 "2025-06-06T10:14:35Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [June 6, 2025, 2:57pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/1350 "2025-06-06T14:57:49Z")

</div>

New **test version 1.11.0** :

- Added **home battery charging/discharging** data for HomeyEnergy.

 ![Post 2025_06_06 09](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/a/caedbb1f2a48a85e723993f13334538aee7f6544.png) ![Post 2025_06_06 10](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/6/a6448c105512abc2bbcb30aa27a6f0e69e32788e.png)

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

* * *

A manual is added to my Blog:

> **[HomeAssistant: Haus-Batterie incl. Zählerdaten in HomeyEnergy anzeigen –...](https://rwdevelopment.de/2025/06/06/homeassistant-haus-batterie-incl-zaehlerdaten-in-homeyenergy-anzeigen/)**

* * *

@basvanderploeg FYI and test 🙂

---

<div class="post-metadata">

**Author:** ![basvanderploeg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/basvanderploeg/32/83556_2.png) [@basvanderploeg](https://community.homey.app/u/basvanderploeg)\
**Post date:** [June 6, 2025, 3:30pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/1351 "2025-06-06T15:30:48Z")

</div>

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

 ![IMG_6766](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/d/2d2c69af0b43c1524f5784bf1f45e90bac1a7a54.jpeg)

---

<div class="post-metadata">

**Author:** ![Daniel\_Cruz](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daniel_cruz/32/81875_2.png) [@Daniel\_Cruz](https://community.homey.app/u/Daniel_Cruz)\
**Post date:** [June 7, 2025, 8:03am UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/1352 "2025-06-07T08:03:13Z")

</div>

Hi @RonnyW,

Tested now and all good. 😉👌

For this one I had the sensors. 😃

 ![Screenshot_20250607_090042_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/e/3e31262716d60fa6271482a111f71d73d73b7fbc.jpeg)

Thank you.

---

<div class="post-metadata">

**Author:** ![Jan\_Peeters](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jan_peeters/32/86660_2.png) [@Jan\_Peeters](https://community.homey.app/u/Jan_Peeters)\
**Post date:** [June 20, 2025, 9:57am UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/1353 "2025-06-20T09:57:52Z")

</div>

@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 !

 ![imagem](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/5/359755a0810ba14bfe33525c4a744fb53ce618e3.png)

 ![Post-2025_04_30-15-768x651](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/8/a826e20e6457f94b99e3bd9ff0660a6ef8931afd.png)

 ![Schermafbeelding 2025-06-20 115531](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/8/d8ae6494cd3f66133677fe127369f59788d83d8a.jpeg)

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

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [June 20, 2025, 1:17pm UTC](https://community.homey.app/t/app-pro-home-assistant-community-app/71477/1354 "2025-06-20T13:17:43Z")

</div>

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.

[Previous page](https://community.homey.app/t/app-pro-home-assistant-community-app/71477.md?page=66)

[Next page](https://community.homey.app/t/app-pro-home-assistant-community-app/71477.md?page=68)
