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

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

1 Like

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

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

...
  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 }
                      };
...

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

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

Indeed, unfortunate this is. :slight_smile:
Thank you anyways!

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

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 :

At the bottom in the example you have this warning :

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

Hi, Iā€™m new in Fronius family since today :slight_smile:
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.

@Ethaniael

Can I somehow get the consumption/production values from the inverter like the HomeAssistant integration provides?
grafik

Or are these values available for the smartmeter device?
While adding a smartmeter using the inverter IP I get this error:
grafik

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

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

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

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.

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

Hi,

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

Thomas

1 Like

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.

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

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

Thx, Oli

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

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

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?

1 Like

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/byd-modbus

1 Like