# \[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:** 7

<div class="post-metadata">

**Author:** ![Danny\_Mertens](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/danny_mertens/32/4247_2.png) [@Danny\_Mertens](https://community.homey.app/u/Danny_Mertens)\
**Post date:** [January 21, 2020, 12:23pm UTC](https://community.homey.app/t/app-pro-sma-energy-my-home-my-energy-our-climate/696/123 "2020-01-21T12:23:15Z")

</div>

OK I now used the search version again and it found the inventer and gives the correct data, this was not working this morning, so I added the inventer manual and that does not seems to work, strange but happy it works now!

Thanks!

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

---

<div class="post-metadata">

**Author:** ![RobvandeGoor](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robvandegoor/32/20328_2.png) [@RobvandeGoor](https://community.homey.app/u/RobvandeGoor)\
**Post date:** [January 21, 2020, 12:25pm UTC](https://community.homey.app/t/app-pro-sma-energy-my-home-my-energy-our-climate/696/124 "2020-01-21T12:25:21Z")

</div>

It looks like that the port setting UDP and TCP are the same. I am not sure if that’s the case. I have to check this setting in my inverter. Will do this in a few minutes.

---

<div class="post-metadata">

**Author:** ![Danny\_Mertens](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/danny_mertens/32/4247_2.png) [@Danny\_Mertens](https://community.homey.app/u/Danny_Mertens)\
**Post date:** [January 21, 2020, 12:27pm UTC](https://community.homey.app/t/app-pro-sma-energy-my-home-my-energy-our-climate/696/125 "2020-01-21T12:27:00Z")

</div>

Hi @RobvandeGoor,

> [@\[APP\]\[Pro\] SMA Solar devices](https://community.homey.app/t/app-sma-solar-devices/696/123):
>
> OK I now used the search version again and it found the inventer and gives the correct data, this was not working this morning, so I added the inventer manual and that does not seems to work, strange but happy it works now! Thanks!

Thanks for your quick replies!

---

<div class="post-metadata">

**Author:** ![RobvandeGoor](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robvandegoor/32/20328_2.png) [@RobvandeGoor](https://community.homey.app/u/RobvandeGoor)\
**Post date:** [January 21, 2020, 12:28pm UTC](https://community.homey.app/t/app-pro-sma-energy-my-home-my-energy-our-climate/696/126 "2020-01-21T12:28:30Z")

</div>

So problem solved 🙂

---

<div class="post-metadata">

**Author:** ![Danny\_Mertens](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/danny_mertens/32/4247_2.png) [@Danny\_Mertens](https://community.homey.app/u/Danny_Mertens)\
**Post date:** [January 21, 2020, 12:29pm UTC](https://community.homey.app/t/app-pro-sma-energy-my-home-my-energy-our-climate/696/127 "2020-01-21T12:29:11Z")

</div>

Yep and now my settings also look the same as yours 😉

---

<div class="post-metadata">

**Author:** ![RobvandeGoor](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robvandegoor/32/20328_2.png) [@RobvandeGoor](https://community.homey.app/u/RobvandeGoor)\
**Post date:** [January 21, 2020, 12:38pm UTC](https://community.homey.app/t/app-pro-sma-energy-my-home-my-energy-our-climate/696/128 "2020-01-21T12:38:01Z")

</div>

FYI  
To be sure I checked the setting of my inverter.

TCP-Server:  
Enabled: Yes  
Port: 502

UDP-Server:  
Enabled: No  
Port: 502

WebConnect:  
Enabled: Yes

But most important for you now is, it works.🙂

---

<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 21, 2020, 12:45pm UTC](https://community.homey.app/t/app-pro-sma-energy-my-home-my-energy-our-climate/696/129 "2020-01-21T12:45:06Z")

</div>

Great that you solve it together!

From what I can see quickly it seems that first time it was added as a “Sunny Boy Storage” device and not “Inverter”. Given that screen shot includes capabilities for battery status. The “Sunny Boy Storage” device also doesn’t have any information section on the advanced settings page.

---

<div class="post-metadata">

**Author:** ![joost1](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/joost1/32/17556_2.png) [@joost1](https://community.homey.app/u/joost1)\
**Post date:** [February 7, 2020, 7:58pm UTC](https://community.homey.app/t/app-pro-sma-energy-my-home-my-energy-our-climate/696/130 "2020-02-07T19:58:44Z")

</div>

I’ve received my PUK code from SMA and enabled the modbus setting in my inverter. Now everything is working perfect. I could only use some sun… 🙂

---

<div class="post-metadata">

**Author:** ![Inquisitor](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/inquisitor/32/95119_2.png) [@Inquisitor](https://community.homey.app/u/Inquisitor)\
**Post date:** [February 9, 2020, 1:01pm UTC](https://community.homey.app/t/app-pro-sma-energy-my-home-my-energy-our-climate/696/131 "2020-02-09T13:01:16Z")

</div>

Hi, Just tried out the pvoutput feature.  
I have 2 inverters, (STP8000 and STP5.0). Both are added as devices in Homey and now also one pvoutput device. Looks like only the values from STP8000 are uploaded to pvoutput now. Is it a bug or a feature? 🙂 How do I get values from both?

BR  
Martin

---

<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:** [February 10, 2020, 7:25am UTC](https://community.homey.app/t/app-pro-sma-energy-my-home-my-energy-our-climate/696/132 "2020-02-10T07:25:22Z")

</div>

Hi Martin!  
Had a quick look and my idea was to sum up all values of all inverter devices and pass that to pvoutput. There is a not a lot of logic in this code so a little hard to spot (at least immediately) what would be wrong. Both your inverters are added as inverters, not the storage device type?

I realize now that inverters without daily yield will be problematic, since that is one of the fields you are supposed to pass. Could that be the issue?

/Richard

---

<div class="post-metadata">

**Author:** ![Inquisitor](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/inquisitor/32/95119_2.png) [@Inquisitor](https://community.homey.app/u/Inquisitor)\
**Post date:** [February 10, 2020, 9:34am UTC](https://community.homey.app/t/app-pro-sma-energy-my-home-my-energy-our-climate/696/133 "2020-02-10T09:34:40Z")

</div>

Hi Richard

Yes they are added as inverters but as you said one of them (STP5.0) does not support daily yield so I guess it’s not possible then?

---

<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:** [February 11, 2020, 4:26am UTC](https://community.homey.app/t/app-pro-sma-energy-my-home-my-energy-our-climate/696/134 "2020-02-11T04:26:40Z")

</div>

I think maybe we can use total yield and calculate the daily yield from that. So would add a manually calculated daily yield to inverters that miss that property.  
Travelling for two weeks now but will look at that once Im back.

---

<div class="post-metadata">

**Author:** ![Inquisitor](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/inquisitor/32/95119_2.png) [@Inquisitor](https://community.homey.app/u/Inquisitor)\
**Post date:** [February 11, 2020, 11:07am UTC](https://community.homey.app/t/app-pro-sma-energy-my-home-my-energy-our-climate/696/135 "2020-02-11T11:07:01Z")

</div>

Great! Thanks for looking into it Richard!

/Martin

---

<div class="post-metadata">

**Author:** ![Inquisitor](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/inquisitor/32/95119_2.png) [@Inquisitor](https://community.homey.app/u/Inquisitor)\
**Post date:** [March 11, 2020, 3:02pm UTC](https://community.homey.app/t/app-pro-sma-energy-my-home-my-energy-our-climate/696/136 "2020-03-11T15:02:13Z")

</div>

Hope your are well and did not go to northern Italy on your travel. Had any chance to look at the workaround for reporting daily yield using total yield for pvoutput?

/Martin

---

<div class="post-metadata">

**Author:** ![TKroon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tkroon/32/9504_2.png) [@TKroon](https://community.homey.app/u/TKroon)\
**Post date:** [March 20, 2020, 8:14am UTC](https://community.homey.app/t/app-pro-sma-energy-my-home-my-energy-our-climate/696/137 "2020-03-20T08:14:03Z")

</div>

I have a Sunny Tripower 8.0 (STP8.0-3AV-40), and I got it working with Homey. The only thing I miss is the daily total. Is there a way to extract this? I now calculate it based on the grand total, but it’s not accurate enough for my taste.

On the local page of the inverter (https://\<inverter\_IP\>/#/smartView) the daily total is displayed (no login needed). Is there a way to let Homey get this value?

When I login to that page, I also see the grand total in kWh, with one decimal. With the modbus the grand total is displayed in MWh with 3 decimals (so only rounded kWh). Is there a way to get an extra digit in the grand total? That would help me as well.

---

<div class="post-metadata">

**Author:** ![Inquisitor](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/inquisitor/32/95119_2.png) [@Inquisitor](https://community.homey.app/u/Inquisitor)\
**Post date:** [March 20, 2020, 8:34am UTC](https://community.homey.app/t/app-pro-sma-energy-my-home-my-energy-our-climate/696/138 "2020-03-20T08:34:50Z")

</div>

Seems lite SMA have removed that from modbus for some reason. I asked for some time ago for my STP5.0-3AV-40 and after looking in the modbus API documents it is not part of the API.

[https://www.sma.de/en/service/downloads.html](https://www.sma.de/en/service/downloads.html) ]Check “Monitoring & Control”, then “Modbus protokoll-schnittstelle”, then “Technical information” and look for yor STP.

I emailed SMA but got no luck. If more people mail and ask for it maybe they’ll add it back? I have an older STP8 and there I still have the Daily Yield over modbus, but not for my STP5…

---

<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 20, 2020, 8:44am UTC](https://community.homey.app/t/app-pro-sma-energy-my-home-my-energy-our-climate/696/139 "2020-03-20T08:44:36Z")

</div>

Sorry for the radio silence. First vacation to Northern Italy (indeed it was @Inquisitor), and then the COVID-19 mess on top of that. Working like crazy (hire freeze, new budget, working from home, etc) for the last weeks on my day job, the one that pays the bills 😉

I started looking into this a while ago, as per the idea I wrote above, but realized I need to do quite a few changes - ie will take time and testing. You can read total yield from all inverters in different units; Wh, kWh or MWh. I read the Wh value, so the most fine-granular one but I immediately after reading it format it. Need to move this logic out, then maybe we can add a calculated daily yield based on the increase of total yield in a day. Then reset that counter at midnight. This is still the only idea I have.

---

<div class="post-metadata">

**Author:** ![TKroon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tkroon/32/9504_2.png) [@TKroon](https://community.homey.app/u/TKroon)\
**Post date:** [March 20, 2020, 8:49am UTC](https://community.homey.app/t/app-pro-sma-energy-my-home-my-energy-our-climate/696/140 "2020-03-20T08:49:40Z")

</div>

Hi Richard! Thanks for your quick reply. Is the Wh, kWh or MWh a user definable setting? That would be great, and to calculate the accurate daily total would be very easy. Stay healthy and safe!

@Inquisitor thanks as well for your quick reply. I will wait Richard’s solution, otherwise I will ask SMA again (did that already some time ago).

---

<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 21, 2020, 9:16am UTC](https://community.homey.app/t/app-pro-sma-energy-my-home-my-energy-our-climate/696/141 "2020-03-21T09:16:09Z")

</div>

A beta version with manually calculated daily yield is now released, please test it and let me know.

> **[SMA Energy](https://homey.app/en-us/app/sma.modbus/SMA-Energy/test/)**
>
> My home. My energy. Our climate.

Please notice that if you install the app now, like at 11:00, the production so far during the day won’t be included. The total yield value is read on first startup after installing this release. After this, the functionality should survive even if you restart your Homey or the SMA app during the day, the value is stored in a persistent variable.  
At each midnight this value should be reset to the, at the time, current total yield. To be able to calculate the daily yield for the next day.

---

<div class="post-metadata">

**Author:** ![Inquisitor](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/inquisitor/32/95119_2.png) [@Inquisitor](https://community.homey.app/u/Inquisitor)\
**Post date:** [March 24, 2020, 12:42pm UTC](https://community.homey.app/t/app-pro-sma-energy-my-home-my-energy-our-climate/696/142 "2020-03-24T12:42:53Z")

</div>

Installed the beta this morning. So far it looks like it is adding up my two inverters great. Upgraded at 10 today, so I’ll check tomorrow also after a full day to see if the numbers add up.

//Martin

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

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