[APP][PRO] Connect Solar Solax Inverter to Homey

Recommended procedure for those who have a problem with the modbus version of the device:

  • if any device is not possible to add, try to uninstall app, restart Homey and add Solax app again (I believe that this is not a problem of app)
  • if device is not updating, restart Solax app in settings
  • if app restart doesn´t help, check if modbus communicate (find How to setup ModBus integration at https://mistr.tech/connect-solax-inverter-to-homey/)
  • if ModBus is not communicating (but it worked before), try to restart inverter, wi-fi module, etc.
    I hope it will help you.

Hello Michal, first, thank you for your work. I really appreciate this!

Unfortunatelly, this procedure to resolve problem did not helped me. I made it but nothing of these works. Im using Homeyscript from history (before your app) to read data from inverter and I can read this informations from stick but your app with modbus connection show me nothing. So I guess that the problem will be somewhere else. Don’t know if in Homey or your app. Im unhappy with losing my insights… maybe will take restore of backup… but reset and reinstall was useless… It is just for your info, Im working with my Homeyscript so no big pain with that.

Thank for your work!
Martin

Hi Martin, do not use any other device to read data from ModBus at the same time. This could cause an inability to establish a connection. At least that’s how it works on my inverter. M.

@horakmar , can you please share how you actually read using Homeyscript modbus data or share the script as such ? It might provide useful insights for cases when the dongle get stuck from time to time for some of us.

Also seems there are few users having this problem only - when I addressed some issues eg. to the HA integration developer, he confirmed there are even differences between same model of inverters, eg. even same Solax G4 might be behaving differently. Solax never answered questions in that regard but for HA there is even dedicated thread on supported dongles on first place and even supported inverters by S/N + on top some specifics I have described.

Yes, no problem.

fetch('http://192.168.1.XXX', {
    method: 'POST',
    body: new URLSearchParams({
        'optType': 'ReadRealTimeData',
        'pwd': 'REGISTRATIONNUMBER'
    })
}).then(function(response) {
  return response.json();
}).then(function(data) {
  //console.log(data.Data[9]);
  tag("SOC baterie", data.Data[103]);
  tag("spotřeba energie", ((data.Data[47] & 0x8000) ? -0x8000 + (data.Data[47] & 0x7FFF) : (data.Data[47] & 0x7FFF))); //spotřeba domu
  tag("String 1", data.Data[14]);
  tag("String 2", data.Data[15]);
  tag("Vyráběná energie", ((data.Data[9] & 0x8000) ? -0x8000 + (data.Data[9] & 0x7FFF) : (data.Data[9] & 0x7FFF)));
  tag("Energie baterie", ((data.Data[41] & 0x8000) ? -0x8000 + (data.Data[41] & 0x7FFF) : (data.Data[41] & 0x7FFF)));
  tag("Vyrobeno dnes", data.Data[70]/10);
  tag("Teplota FVE", data.Data[105]);
  tag("Vyrobeno celkem", data.Data[68]/10);
  //tag("Odebráno ze sítě celkem", data.Data[86]/10);
  tag("Feed-in energie", (((data.Data[feedin]) & 0x8000) ? -0x8000 + ((data.Data[feedin]) & 0x7FFF) : ((data.Data[feedin]) & 0x7FFF)) * (1) );
  tag("Grid energie", ((data.Data[9] & 0x8000) ? -0x8000 + (data.Data[9] & 0x7FFF) : (data.Data[9] & 0x7FFF)));
  //tag("Feed-in energie", data.Data[88]/10);
  console.log(data.Data[test]/10);
  tag("Teplota měniče", data.Data[46]);
}).catch(function() {
  console.log("Error");
});

You have to translate tags :slight_smile: But next I have flow which every 2 seconds runs script and updates tags. Then I have a lot of virtual devices which Im updating with this 2 seconds so I can view all what i need on homey device page.

Martin

2 Likes

After Homey updated, the app connection with the Solaxs system was lost and could not be reconnected in the app with a restart or restart of the Homey system.
I found that the Solax system had connected to a mesh node and not the master Deco M9 Plus hub. After forcing the Solax system to connect directly to the master, the connection was reestablished and everything worked again.
Anyone else having problem with mesh net and solax and homey ?

1 Like

New version of app is available (as test version for now).

It supports new BETA energy section. It require to install additional devices for Solax, so app has all infromation separated to be able present them correctly. It works ONLY for MODBUS (cloud API has not required data). It supports only one ROOT Solax device (only one inverter).

How to install:

  • first install “Solax Modbus (Gx)” (required)
  • than install “Solax Modbus Battery” (optional)
  • than install “Solax Modbus Feed-In” (optional)
  • than install “Solax Modbus Load” (optional)
1 Like

Fantastic work :+1:

I use tibber and would like to charge the battery when electricity is particularly cheap. Unfortunately, the available use modes are not the ones that can be selected in the Solax app. For example, the manual mode and tou are missing. Am I doing something wrong?

Why don’t you use Backup mode?

That doesn’t work. The battery doesn’t load from grid in Backup Mode.

Sorry, my fault. I set the charging time from 0:00 to 0:00 :sweat_smile::see_no_evil:

Hi! need help to connect my X3 G4 to modbus.

i have the latest V4 wifi lan stick connected to the solax cloud app.

and now i connected cable from Router to “COM” port, and my router started smoke and smell…

Why would you do that, in case you have Wifi/LAN dongle???
Anyway, your issue is not related to this app at all, please read more carefully Solax manual.

i´ve have searched so much but cannot find an guide how to connect X3 G4 with MODBUS to HOMEY.

You mean my dongle works for MODBUS to Homey?

The dongle itself provides MODBUS over TCP/IP… just add device, configure IP and port (or keep default), and that’s it.

still no success for me… :frowning:

Im running TP link Deco Mesh system.
homey is connected to the master, and solax dongle over wifi on an slave.
Local IP adress on Dongle is 192.168.68.57
do i need to modify something in Router settings?
I was try to set static IP in solax cloud App

@Michal_Stranik thanks for the great app, since the new update the load power and PV power is the same in the homey app. but this isn’t the same in the Solax own app (see picture yellow and green line). load power is the power with the inverter losses. See pictures, before the load power did give the right (lower) value. like the Solax app does.

I’m connected via cloud.

hope you can help, thanks in advance


Hi Robin, I don´t see any problem there. It also works for me without any problem.

the problem is that the load power and pv power are the same in the homey app. but they aren’t the same in the solax app/webapp.

when you now look at the load power in the homey app it give the same value as the other powers, like pv/solar power.

with version 3.1.4 the load power value was lower than other values because of the converter losses. but with the new version the value’s are the same, so load power doesn’t give the right value.

when you look at my first picture you see a different line, green en yellow. so solar power (yellow line) and the solar power with converter losses (green line)

picture below is how it was, you see that then there was also a difference between the 2 value’s. and now the are exact the same.