# \[APP\]\[Pro\] Support for Fronius inverters and smart meters

**URL:** <https://community.homey.app/t/app-pro-support-for-fronius-inverters-and-smart-meters/38557>\
**Category:** Apps\
**Tags:** app, homey-pro\
**Created:** [December 4, 2020, 8:16am UTC](https://community.homey.app/t/app-pro-support-for-fronius-inverters-and-smart-meters/38557 "2020-12-04T08:16:42Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![Ethaniael](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ethaniael/32/16580_2.png) [@Ethaniael](https://community.homey.app/u/Ethaniael)\
**Post date:** [March 26, 2023, 4:48pm UTC](https://community.homey.app/t/app-pro-support-for-fronius-inverters-and-smart-meters/38557/41 "2023-03-26T16:48:31Z")

</div>

> [@Tixhyl](#):
>
> `id: 0`

Thanks for the report ; it worked before, I fixed it in test version.

---

<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:** [March 26, 2023, 5:02pm UTC](https://community.homey.app/t/app-pro-support-for-fronius-inverters-and-smart-meters/38557/42 "2023-03-26T17:02:14Z")

</div>

Hello again,  
some additional details…  
The id: 0 will only allow one device for this driver. Have you used a unique ID now?  
I will get my Fronius Gen24 soon so I can test a bit in future 😉

---

<div class="post-metadata">

**Author:** ![Tixhyl](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tixhyl/32/130502_2.png) [@Tixhyl](https://community.homey.app/u/Tixhyl)\
**Post date:** [March 27, 2023, 8:54am UTC](https://community.homey.app/t/app-pro-support-for-fronius-inverters-and-smart-meters/38557/43 "2023-03-27T08:54:17Z")

</div>

Correct Ronny, the { id: 0 } was just a little proof of concept. To verify that this was the issue.  
@Ethaniael this would be a solution with a uuidv4

```auto
...
  function uuidv4() {
      return ([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g, c =>
          (c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c / 4).toString(16)
      );
  }

  function doSubmit(){
      let hostname = document.getElementById('hostname').value;
      let name = document.getElementById('name').value;

      if (!hostname || !name) {
          Homey.alert('Please fill in all fields');
      }
      else {
          Homey.emit('validate', { "host": hostname })
              .then(result => {
                  if (result == 'ok') {
                      let deviceDefinition = {
                          name,
                          data: { id: uuidv4() },
                          settings: { ip: hostname }
                      };
...

```

---

<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:** [March 27, 2023, 9:12am UTC](https://community.homey.app/t/app-pro-support-for-fronius-inverters-and-smart-meters/38557/44 "2023-03-27T09:12:59Z")

</div>

Or just use the code from Athom they use to generate device IDs. Then you don’t need additional modules. Just tu keep it simple 😄

```auto
    getUIID() {
        function s4() {
            return Math.floor((1 + Math.random()) * 0x10000)
            .toString(16)
            .substring(1);
        }
        return `${s4() + s4()}-${s4()}-${s4()}-${s4()}-${s4()}${s4()}${s4()}`;
    }

```

---

<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:** [April 19, 2023, 12:10pm UTC](https://community.homey.app/t/app-pro-support-for-fronius-inverters-and-smart-meters/38557/45 "2023-04-19T12:10:15Z")

</div>

> [@Ethaniael](#):
>
> API is not fully supported on GEN24

Indeed, unfortunate this is. 🙂  
Thank you anyways!

> **[Fronius Solar API (JSON)](https://www.fronius.com/en/solar-energy/installers-partners/technical-data/all-products/system-monitoring/open-interfaces/fronius-solar-api-json-)**

---

<div class="post-metadata">

**Author:** ![Ethaniael](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ethaniael/32/16580_2.png) [@Ethaniael](https://community.homey.app/u/Ethaniael)\
**Post date:** [May 6, 2023, 11:38am UTC](https://community.homey.app/t/app-pro-support-for-fronius-inverters-and-smart-meters/38557/46 "2023-05-06T11:38:37Z")

</div>

thanks it’s better than the id:0 quick fix, I’ll use that

---

<div class="post-metadata">

**Author:** ![Ethaniael](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ethaniael/32/16580_2.png) [@Ethaniael](https://community.homey.app/u/Ethaniael)\
**Post date:** [May 6, 2023, 11:58am UTC](https://community.homey.app/t/app-pro-support-for-fronius-inverters-and-smart-meters/38557/47 "2023-05-06T11:58:48Z")

</div>

If you dig in the documentation, you’ll find that it’s stated that some fields are not supported on GEN24. For example, for the powerflow request I use :

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/d/7d5491b6501801df00399ca6d948f36edc6db8fd.png)

At the bottom in the example you have this warning :

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

I you find another way to get the values with the web requests I’ll be happy to have a look.

---

<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:** [May 17, 2023, 7:52pm UTC](https://community.homey.app/t/app-pro-support-for-fronius-inverters-and-smart-meters/38557/48 "2023-05-17T19:52:26Z")

</div>

Hi, I’m new in Fronius family since today 🙂  
I added the Gen24 and the BYD battery. But how can I add the Fronius smartmeter, that’s connected to the inverter? I get a not found error message while pairing using the inverter IP.

---

<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:** [May 18, 2023, 8:37pm UTC](https://community.homey.app/t/app-pro-support-for-fronius-inverters-and-smart-meters/38557/49 "2023-05-18T20:37:39Z")

</div>

@Ethaniael

Can I somehow get the consumption/production values from the inverter like the HomeAssistant integration provides?  
 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/9/797df3e8ffef720194bad4baf8174be2751b69b6.png)

Or are these values available for the smartmeter device?  
While adding a smartmeter using the inverter IP I get this error:  
 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/e/7ef8683f2807d36f63ecf6e80fe4fb59d19405e8.png)

I would be happy about hints how to add this device. Thanks.

---

<div class="post-metadata">

**Author:** ![Ethaniael](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ethaniael/32/16580_2.png) [@Ethaniael](https://community.homey.app/u/Ethaniael)\
**Post date:** [May 20, 2023, 1:54pm UTC](https://community.homey.app/t/app-pro-support-for-fronius-inverters-and-smart-meters/38557/50 "2023-05-20T13:54:33Z")

</div>

It should work with the IP address. Could you please send the result of [http://192.168.1.50/solar\_api/v1/GetMeterRealtimeData.cgi?Scope=System](http://192.168.1.50/solar_api/v1/GetMeterRealtimeData.cgi?Scope=System)

---

<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:** [May 21, 2023, 1:37pm UTC](https://community.homey.app/t/app-pro-support-for-fronius-inverters-and-smart-meters/38557/51 "2023-05-21T13:37:02Z")

</div>

Just a small update…using the new test version it’s possible to add the Fronius smartmeter via Gen24 IP.  
Many thanks @Ethaniael

---

<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:** [May 22, 2023, 6:03pm UTC](https://community.homey.app/t/app-pro-support-for-fronius-inverters-and-smart-meters/38557/52 "2023-05-22T18:03:18Z")

</div>

Hi @Ethaniael

would it be possible to add DC current/voltage/power for more than one input (at least 2)?  
The Gen24/Tauro is supporting these values and I have two inputs (north/south side).  
The current capabilities are only showing the data for input line 1. So I’m missing the secont input line.

 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/8/b80fe35bb7169d3fef34268f1e7460e3366dd6b1.png)

If I should better add it and make a PR, just ket me know. But perhaps you better want to keep your code in your style 🙂

---

<div class="post-metadata">

**Author:** ![Ethaniael](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ethaniael/32/16580_2.png) [@Ethaniael](https://community.homey.app/u/Ethaniael)\
**Post date:** [May 29, 2023, 7:25am UTC](https://community.homey.app/t/app-pro-support-for-fronius-inverters-and-smart-meters/38557/53 "2023-05-29T07:25:06Z")

</div>

Hi,

This is new (I didn’t know about it), I’ll have a look to add it

Thomas

---

<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:** [May 29, 2023, 7:27am UTC](https://community.homey.app/t/app-pro-support-for-fronius-inverters-and-smart-meters/38557/54 "2023-05-29T07:27:44Z")

</div>

Yes, it’s new for Gen24 devices. These values are optionally and not delivered by other devices. So please ask if I can test something (url etc.).  
Many thanks.

---

<div class="post-metadata">

**Author:** ![Ethaniael](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ethaniael/32/16580_2.png) [@Ethaniael](https://community.homey.app/u/Ethaniael)\
**Post date:** [August 23, 2023, 9:06pm UTC](https://community.homey.app/t/app-pro-support-for-fronius-inverters-and-smart-meters/38557/55 "2023-08-23T21:06:30Z")

</div>

Hi @RonnyW. I know you requested that a while ago but if you’re still interested I did a first version with support for udc\_x and idc\_x (for now it adds a new parameter to choose the number of mppt tracker to display).  
It’s not yet published but you can try it from github

---

<div class="post-metadata">

**Author:** ![Oliver\_Wein](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oliver_wein/32/82533_2.png) [@Oliver\_Wein](https://community.homey.app/u/Oliver_Wein)\
**Post date:** [September 30, 2023, 6:12am UTC](https://community.homey.app/t/app-pro-support-for-fronius-inverters-and-smart-meters/38557/56 "2023-09-30T06:12:48Z")

</div>

Hi, I’m using the wattpilot as well. Are there any plans to extend the app in this direction?

Thx, Oli

---

<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:** [September 30, 2023, 7:00am UTC](https://community.homey.app/t/app-pro-support-for-fronius-inverters-and-smart-meters/38557/57 "2023-09-30T07:00:44Z")

</div>

> [@Oliver\_Wein](#):
>
> Hi, I’m using the wattpilot as well

Wattpilot is a standalone device and not dependent on the inverter API.  
That means, a new app is needed.  
The e-Go wallbox is technically nearly the same, but they are using a different firmware, so the differences between the APIs don’t allow to add the Wattpilot to this e-Go app.

In the meantime, the HomeAssistant integration can be used (if you have already HA installed).

---

<div class="post-metadata">

**Author:** ![Oliver\_Wein](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oliver_wein/32/82533_2.png) [@Oliver\_Wein](https://community.homey.app/u/Oliver_Wein)\
**Post date:** [September 30, 2023, 8:54am UTC](https://community.homey.app/t/app-pro-support-for-fronius-inverters-and-smart-meters/38557/58 "2023-09-30T08:54:02Z")

</div>

Hi Ronny, thx for reply. I asked the go-e team as well. I didn’t know HA, so I’ll check this as well. Thx

---

<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:** [January 29, 2024, 10:41am UTC](https://community.homey.app/t/app-pro-support-for-fronius-inverters-and-smart-meters/38557/59 "2024-01-29T10:41:21Z")

</div>

Is it somehow possible to change battery settings (min/max charging/discharging settings)?  
It seems that’s the only way to control an AC charging.

Currently I don’t use it (fixed prices). But it would be nice to control battery charging at night if next day has not enough solar production.  
The API description has only GET requests documented. The battery control is only possible via local inverter website.  
So I assume it’s not possible with automation?

---

<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:** [February 16, 2024, 12:28pm UTC](https://community.homey.app/t/app-pro-support-for-fronius-inverters-and-smart-meters/38557/60 "2024-02-16T12:28:11Z")

</div>

I found additional informations…  
It’s possible to control inverter/battery functions via Modbus only.  
Usecase would be to charge in winter at low price periods.

But I think this would need a new app. Parallel use of http API and Modbus wouldn’t be so good. Or it this something you want to add to this app @Ethaniael ?

[https://www.libe.net/fronius-modbus](https://www.libe.net/fronius-modbus)  
[https://www.libe.net/byd-modbus](https://www.libe.net/byd-modbus)

[Previous page](https://community.homey.app/t/app-pro-support-for-fronius-inverters-and-smart-meters/38557.md?page=2)

[Next page](https://community.homey.app/t/app-pro-support-for-fronius-inverters-and-smart-meters/38557.md?page=4)
