# \[APP\]\[Pro\] SMA Energy - My home. My energy. Our climate

**URL:** <https://community.homey.app/t/app-pro-sma-energy-my-home-my-energy-our-climate/696>\
**Category:** Apps\
**Tags:** app, homey-pro, pv-solar\
**Created:** [August 27, 2018, 8:18pm UTC](https://community.homey.app/t/app-pro-sma-energy-my-home-my-energy-our-climate/696 "2018-08-27T20:18:23Z")\
**Posts on this page:** 20\
**Page:** 15

<div class="post-metadata">

**Author:** ![Richard\_B](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/richard_b/32/16805_2.png) [@Richard\_B](https://community.homey.app/u/Richard_B)\
**Post date:** [November 8, 2022, 8:10pm UTC](https://community.homey.app/t/app-pro-sma-energy-my-home-my-energy-our-climate/696/286 "2022-11-08T20:10:01Z")

</div>

> [@Martijn\_C](#):
>
> But since SMA apparently has the daily total consumption and net consumption (from the grid)

The Energy Meter / Home Manager has lifetime import and export. Based on these we can create our own daily import and export at least.

---

<div class="post-metadata">

**Author:** ![Martijn\_C](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijn_c/32/39993_2.png) [@Martijn\_C](https://community.homey.app/u/Martijn_C)\
**Post date:** [November 8, 2022, 8:12pm UTC](https://community.homey.app/t/app-pro-sma-energy-my-home-my-energy-our-climate/696/287 "2022-11-08T20:12:20Z")

</div>

True but not my total consumption… that’s why. 😊

---

<div class="post-metadata">

**Author:** ![Richard\_B](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/richard_b/32/16805_2.png) [@Richard\_B](https://community.homey.app/u/Richard_B)\
**Post date:** [November 10, 2022, 8:16pm UTC](https://community.homey.app/t/app-pro-sma-energy-my-home-my-energy-our-climate/696/288 "2022-11-10T20:16:32Z")

</div>

There is a new [test version](https://homey.app/a/sma.modbus/test/).

**Changes**

- Lifetime yield for inverters is changed from MWh to KWh.
- Lifetime import and export capabilities added to the energy device
- Lifetime consumption added to the summary device  
Energy storage charge/discharge is not yet included here. The capabilities don’t exist for the storage device type today and I don’t have access to one test. The fields seem to be available via Modbus but are of SMA data type U64 which also is not used anywhere else.

---

<div class="post-metadata">

**Author:** ![Niels\_Doorduijn](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/niels_doorduijn/32/36305_2.png) [@Niels\_Doorduijn](https://community.homey.app/u/Niels_Doorduijn)\
**Post date:** [November 17, 2022, 10:03pm UTC](https://community.homey.app/t/app-pro-sma-energy-my-home-my-energy-our-climate/696/289 "2022-11-17T22:03:39Z")

</div>

Hi Richard,

I tried to connect to an sma 3.6. After adding the ip address, i press the button connect, but nothing happens. Do you know how to fix this?

Best wishes,  
Niels

---

<div class="post-metadata">

**Author:** ![Richard\_B](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/richard_b/32/16805_2.png) [@Richard\_B](https://community.homey.app/u/Richard_B)\
**Post date:** [November 18, 2022, 6:56am UTC](https://community.homey.app/t/app-pro-sma-energy-my-home-my-energy-our-climate/696/290 "2022-11-18T06:56:08Z")

</div>

> [@Niels\_Doorduijn](#):
>
> I tried to connect to an sma 3.6.

Have you enabled modbus on the inverter? By default it is disabled. Check first post in this thread on how to enable it.

---

<div class="post-metadata">

**Author:** ![Niels\_Doorduijn](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/niels_doorduijn/32/36305_2.png) [@Niels\_Doorduijn](https://community.homey.app/u/Niels_Doorduijn)\
**Post date:** [November 18, 2022, 8:11pm UTC](https://community.homey.app/t/app-pro-sma-energy-my-home-my-energy-our-climate/696/291 "2022-11-18T20:11:04Z")

</div>

Thanks, i did not look back far enough.

Does changing the modbus require a log in as installer? I could not change it as a user.

---

<div class="post-metadata">

**Author:** ![Richard\_B](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/richard_b/32/16805_2.png) [@Richard\_B](https://community.homey.app/u/Richard_B)\
**Post date:** [November 18, 2022, 10:55pm UTC](https://community.homey.app/t/app-pro-sma-energy-my-home-my-energy-our-climate/696/292 "2022-11-18T22:55:55Z")

</div>

> [@Niels\_Doorduijn](#):
>
> Does changing the modbus require a log in as installer?

Yes

---

<div class="post-metadata">

**Author:** ![Jurgen\_Jacobs](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jurgen_jacobs/32/55937_2.png) [@Jurgen\_Jacobs](https://community.homey.app/u/Jurgen_Jacobs)\
**Post date:** [November 30, 2022, 12:25pm UTC](https://community.homey.app/t/app-pro-sma-energy-my-home-my-energy-our-climate/696/293 "2022-11-30T12:25:53Z")

</div>

Would it be able to move the daily yield to the 1st or second line of the (large) tile?

---

<div class="post-metadata">

**Author:** ![Richard\_B](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/richard_b/32/16805_2.png) [@Richard\_B](https://community.homey.app/u/Richard_B)\
**Post date:** [December 4, 2022, 6:27pm UTC](https://community.homey.app/t/app-pro-sma-energy-my-home-my-energy-our-climate/696/294 "2022-12-04T18:27:02Z")

</div>

Seem like to only way is to reorder all capabilities. The large tile seems to show the first four capabilities. Don’t know if anyone have seen an app where you can decide the order of the capabilities yourself?

---

<div class="post-metadata">

**Author:** ![Jurgen\_Jacobs](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jurgen_jacobs/32/55937_2.png) [@Jurgen\_Jacobs](https://community.homey.app/u/Jurgen_Jacobs)\
**Post date:** [December 4, 2022, 7:25pm UTC](https://community.homey.app/t/app-pro-sma-energy-my-home-my-energy-our-climate/696/295 "2022-12-04T19:25:56Z")

</div>

In the power by the hour app I’m able to choose the 1st line shown on the larger tile through the settings.

---

<div class="post-metadata">

**Author:** ![Richard\_B](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/richard_b/32/16805_2.png) [@Richard\_B](https://community.homey.app/u/Richard_B)\
**Post date:** [December 4, 2022, 7:43pm UTC](https://community.homey.app/t/app-pro-sma-energy-my-home-my-energy-our-climate/696/296 "2022-12-04T19:43:05Z")

</div>

Ok, yes this is a basic Homey feature that for some reason is only available in the mobile app. You can for any app choose which capability to show as “status indicator”. You can set it to daily yield and it will show on top.

---

<div class="post-metadata">

**Author:** ![Jurgen\_Jacobs](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jurgen_jacobs/32/55937_2.png) [@Jurgen\_Jacobs](https://community.homey.app/u/Jurgen_Jacobs)\
**Post date:** [December 4, 2022, 8:43pm UTC](https://community.homey.app/t/app-pro-sma-energy-my-home-my-energy-our-climate/696/297 "2022-12-04T20:43:52Z")

</div>

Ah, lol. I should have thought of that myself.

---

<div class="post-metadata">

**Author:** ![R5Turbo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/r5turbo/32/15151_2.png) [@R5Turbo](https://community.homey.app/u/R5Turbo)\
**Post date:** [December 27, 2022, 10:59pm UTC](https://community.homey.app/t/app-pro-sma-energy-my-home-my-energy-our-climate/696/298 "2022-12-27T22:59:13Z")

</div>

@Richard_B thank you for adding the Lifetime import/export stuff. Two comments related to that topic:

- Could you change the inverter unit from “KWh” to “kWh”? I guess “kWh” is the official notation [Kilowatt-hour - Wikipedia](https://en.wikipedia.org/wiki/Kilowatt-hour)?
- I do see some issues with the inverter “Lifetime Yield” (or also known as “total yield”) in my case. I do have some older inverters and I do see periodically 0 values. This causes issues in my case because I’m transferring the values via MQTT to Home Assistant and there I have a graph which does an increasing of the value. However if I get 0 values HA get’s confused as short later it goes back to the official value, so the increase is huge. Do you see any possible optimisation on your side? I’m guessing this is an issue of my inverters, however it’s quite annoying for me. Screenshot below. Btw. this happens only for my inverters and the  
 ![Screenshot 2022-12-27 at 23.50.34](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/1/7103eaf68538f1032c5f464f1a4f0a4785b3665b.png)

Btw. really a great app which is a huge benefit for me and the whole homey ecosystem. Thanks a lot!

Edit: I’ve just seen that the “'0” issue for the inverters happens not only for the “Lifetime Yield”. It seems that it happens from time to time for all keys. It’s just not that easy to see as the most values are anyway 0 if the inverters are offline (which they are at the moment). However the Sunny Homey Manager 2 works like a charm, no outages there.

---

<div class="post-metadata">

**Author:** ![Richard\_B](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/richard_b/32/16805_2.png) [@Richard\_B](https://community.homey.app/u/Richard_B)\
**Post date:** [January 2, 2023, 2:19pm UTC](https://community.homey.app/t/app-pro-sma-energy-my-home-my-energy-our-climate/696/299 "2023-01-02T14:19:04Z")

</div>

> [@R5Turbo](#):
>
> “KWh” to “kWh”

👍

Regarding the 0 value for lifetime energy, I added a simple check if the reading gives 0 then ignore it. There is a new test version available that will go live once approved.

---

<div class="post-metadata">

**Author:** ![R5Turbo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/r5turbo/32/15151_2.png) [@R5Turbo](https://community.homey.app/u/R5Turbo)\
**Post date:** [January 5, 2023, 8:30pm UTC](https://community.homey.app/t/app-pro-sma-energy-my-home-my-energy-our-climate/696/300 "2023-01-05T20:30:27Z")

</div>

Thanks a lot for this fast change :-)!

---

<div class="post-metadata">

**Author:** ![Henk\_van\_Dijk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/henk_van_dijk/32/47916_2.png) [@Henk\_van\_Dijk](https://community.homey.app/u/Henk_van_Dijk)\
**Post date:** [March 6, 2023, 11:26am UTC](https://community.homey.app/t/app-pro-sma-energy-my-home-my-energy-our-climate/696/301 "2023-03-06T11:26:30Z")

</div>

Hi, I’m having a strange problem with my SB 5000TL. Here are my settings from Sunny Explorer:

![SB](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/8/98ac973812dc98db58d9814321569f1d5a2384c2.jpeg)

The strange thing is, I only get Homey to work with setting the port in the SMA Homey app to port 500. Then after a day or so the connection drops and the power is stuck on the last data it got. Then after switching to 502 and back to 500 makes it all work again. For a while. What is going wrong here.

These are my ip settings:

![IP](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/7/17717e2c6237dd9ddf57bc2ec57505e75b1aeb23.jpeg)

---

<div class="post-metadata">

**Author:** ![Richard\_B](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/richard_b/32/16805_2.png) [@Richard\_B](https://community.homey.app/u/Richard_B)\
**Post date:** [March 6, 2023, 12:08pm UTC](https://community.homey.app/t/app-pro-sma-energy-my-home-my-energy-our-climate/696/302 "2023-03-06T12:08:47Z")

</div>

The config looks fine, and the port should always be 502.  
Have you set a static IP for your inverter, ie to make sure that the router doesn’t change it from time to time?

---

<div class="post-metadata">

**Author:** ![Henk\_van\_Dijk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/henk_van_dijk/32/47916_2.png) [@Henk\_van\_Dijk](https://community.homey.app/u/Henk_van_Dijk)\
**Post date:** [March 6, 2023, 12:57pm UTC](https://community.homey.app/t/app-pro-sma-energy-my-home-my-energy-our-climate/696/303 "2023-03-06T12:57:42Z")

</div>

Hm. My feeling says it has nothing to do with static ip, but I made it static anyway. Changed the port to 500 in the inverter settings, then removed the App settings in Homey and made a brand new one. Working fine now at port 500. Now wait and see if it holds for the coming days. Thanks for your reply Richard\_B.

A last thought. I also have a dataconnection with Sunnyportal. Might be that data request from both Homey and Sunnyportal are a bit too much.

---

<div class="post-metadata">

**Author:** ![SvenRhein](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@SvenRhein](https://community.homey.app/u/SvenRhein)\
**Post date:** [March 21, 2023, 6:54am UTC](https://community.homey.app/t/app-pro-sma-energy-my-home-my-energy-our-climate/696/304 "2023-03-21T06:54:36Z")

</div>

@Richard_B

Hi Richard,

the energy meter did not showed grid values so I deleted the device.

But I am not able to add it again:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/f/9f2be743396fd31305eaaec60308dc6587185a33.jpeg)

---

<div class="post-metadata">

**Author:** ![Richard\_B](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/richard_b/32/16805_2.png) [@Richard\_B](https://community.homey.app/u/Richard_B)\
**Post date:** [March 26, 2023, 7:41pm UTC](https://community.homey.app/t/app-pro-sma-energy-my-home-my-energy-our-climate/696/305 "2023-03-26T19:41:17Z")

</div>

> [@SvenRhein](#):
>
> But I am not able to add it again

I just tried removing the energy meter and adding it back, which worked fine (on HP23).

Adding an energy meter device relies on the same UDP multicast datagrams that reading values from it does. If it stopped updating I guess it could mean that your Homey no longer receives the UDP multicast datagrams. Were any network changes introduced?

[Previous page](https://community.homey.app/t/app-pro-sma-energy-my-home-my-energy-our-climate/696.md?page=14)

[Next page](https://community.homey.app/t/app-pro-sma-energy-my-home-my-energy-our-climate/696.md?page=16)
