DiedB / Homey-SolarPanels

Connects production statistics of a wide range of PV inverters to Homey
https://apps.athom.com/app/it.diederik.solar
GNU General Public License v3.0
49 stars 35 forks source link

SAJ inverter #143

Closed psvrob closed 1 year ago

psvrob commented 3 years ago

Hi,

I have a problem connecting my new SAJ inverter to homey. It keeps saying that my ip adres is wrong. This is not true because i have checked the ip adres on my router.

Any ideas how to solve this?

DiedB commented 3 years ago

Can you open a browser and go to http://[ip_address]/real_time_data.xml? If that doesn't work, can you visit the IP address directly?

POfransz commented 3 years ago

Hi Diederik...I have the same problem. Do you mean the access point IP-adress or the original IP-adress when you start installing the SAJ inverter. I shall try both....when I it does not work shall I come back with this. The comment in your app is a little bit a riddle when not a success. Is it possible to change that?

DiedB commented 3 years ago

The IP address currently assigned to the SAJ inverter. Can be found in your router, maybe in the SAJ app, maybe on the screen of the inverter (if it has one).

POfransz commented 3 years ago

1) I have tried the access point "http://[ip_address]/real_time_data.xml" and I get the sign-in screen of the access point. After signing in ...I get in the firefox browser "404: The requested file cannot be found." 2) I have also tried the IP-adress 10.10.176.1....but I get nothing..

OK....I am not so an IT-guy...and I will explain it as good as I can.... I renamed te access point. changed the admin name and password. The SAJ-inverter has an Webserver which create an access point, but I think you know that already. Here the link https://solarnrg.nl/downloads/handleidingen/solarnrg-handleiding-saj-wifi-module.pdf#page=7 for your information

DiedB commented 3 years ago

You need to connect the SAJ inverter to your home network (the same network Homey is connected to). That should be possible using the web server you already found.

Afterwards, you will have to find the IP address of the inverter in your home network. Possibly, it gives you the IP address after connecting, otherwise, you will have to have a look in the web interface of your router.

POfransz commented 3 years ago

Hi Diederik, I think we misunderstand each other. The connection runs trough the WiFi adapter of the inverter. The IP-adress is known to me. When I use this in my browser ...a sign-in menu where I get a sort of router menu....appears....for adjusting data or name. The ...xml does not exist...because I see no files.--I cannot see what is on the adapter. I contacted my solarpanel supplier and asked him for technical advise where I can reach the requested data because this is visible in my browser trough a kind of menu. I shall come back with this .....when this known to me and perhaps solved.

hendrik607 commented 3 years ago

Same here, Inverter is live, XML not found, see images http://challenger.zone/diversen/inverter1.JPG http://challenger.zone/diversen/inverter12JPG

DiedB commented 3 years ago

Can you find any production statistics in that web interface?

hendrik607 commented 3 years ago

yes there is http://challenger.zone/diversen/saj.jpg

http://ip/status/status.php gives me;

1,1460417,126931,3093,163,1472,4,1774,4,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,0,5000,2260,8,65535,65535,65535,65535,3546,357,49106,2

with above string, page looks like:

http://challenger.zone/diversen/saj2.JPG

also there is http://ip/i18n/en/status.xml

geving me;

http://challenger.zone/diversen/saj3.JPG

POfransz commented 3 years ago

Hi Diederik and Hendrik, @hendrik - you have the same Webserver version as I have....so the data must be available. I just received an answer from my solarpanel supplier. That was a dead end...because they do not sell that kind of inverters anymore. But I got an e-mail adress from SAJ. Here the link....mailto:Service.nl@saj-electric.com. I shall send an e-mail today.

DiedB commented 3 years ago

@hendrik607 Is there by any chance also a status.json?

What type of SAJ inverter do you have exactly? I think this is a newer version with a different web interface and API and we should add support for it.

POfransz commented 3 years ago

@DiedB ....Mine inverter is Sununo Plus 2.5K....Installation date 25-9-2017.

hendrik607 commented 3 years ago

hi, i think mine is year 2018, do not know exactle it was once changed. here is the label http://challenger.zone/diversen/saj4.jpg

How should i send this (status.json?) ? When doing http:///status.json? i get nothing, also nothing with an extra /status/ in URL

DiedB commented 3 years ago

I meant http://ip/i18n/en/status.json (just replace xml with json in your URL).

Just paste it here in code tags.

hendrik607 commented 3 years ago

gives me nothing (404: The requested file cannot be found.) http://192.168.2.133/i18n/en/status.xml does give me output;

hmmm cannot paste code here, here a link to the output

[http://challenger.zone/diversen/xml_output.txt]http://challenger.zone/diversen/xml_output.txt

sorry.. tags..........did not see that...... here it is.............

`

`

POfransz commented 3 years ago

I have read your comments, Here my listing. SAJ-Listing.pdf

rsimmers commented 2 years ago

I have the same problem, is it solved yet? Same respone with: ip adres/en/status.xml

DiedB commented 2 years ago

@hendrik607 @POfransz Those are translation files, as far as I can see no production data is in there. @rsimmers Did you find production data in XML format?

rsimmers commented 2 years ago

No nothing. Is it possible to connect Anyway?

René Simmers

Op 2 aug. 2021 om 20:39 heeft Diederik Bakker @.***> het volgende geschreven:

 @hendrik607 @POfransz Those are translation files, as far as I can see no production data is in there. @rsimmers Did you find production data in XML format?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

DiedB commented 2 years ago

Not without more information. Mind you, I don't have this inverter, and not much public documentation is available. I will only be able to implement this when assisted by someone with quite some technical knowledge who owns one of these inverters.

hendrik607 commented 2 years ago

Of course, i / we want to help because this is a nice feature. Tell me how to help. The standard xml seems not to be there. There is a php that gives the values as output. Can that be used?

POfransz commented 2 years ago

I still follow this issue and perhaps can help. I received from solarpanel supplier the attached file which is the internal protocol from the SAJ inverter

Modbus-protocol.pdf

POfransz commented 2 years ago

I also got a remark that the software to read the SAJ-inverter is also on github. Here the link https://github.com/jwillemsen/saj_collector I hope this will help

DiedB commented 2 years ago

@POfransz ModBUS works via UART, no way to connect that to Homey (unless you would add some hardware on the inverter side, not really possible for the average user). The SAJ Collector you mention is using the same method for fetching production data as the current implementation of this app.

DiedB commented 2 years ago

Of course, i / we want to help because this is a nice feature. Tell me how to help. The standard xml seems not to be there. There is a php that gives the values as output. Can that be used?

Maybe, but it would probably be quite hacky and I'm not sure if the interface is consistent across all inverter models. So preferably not.

rsimmers commented 2 years ago

I’ll be glad to help. I have such a converter and what do you need?

Rene

Op 4 aug. 2021, om 14:36 heeft POfransz @.***> het volgende geschreven:

I still follow this issue and perhaps can help. I received from solarpanel supplier the attached file which is the internal protocol from the SAJ inverter

Modbus-protocol.pdf https://github.com/DiedB/Homey-SolarPanels/files/6931282/Modbus-protocol.pdf — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/DiedB/Homey-SolarPanels/issues/143#issuecomment-892621271, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVCABYPYCU5W4LYETC7TYKDT3EX4ZANCNFSM42AI3LCQ. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.

rsimmers commented 2 years ago

No nothing, no response on the xml

Op 4 aug. 2021, om 14:36 heeft POfransz @.***> het volgende geschreven:

I still follow this issue and perhaps can help. I received from solarpanel supplier the attached file which is the internal protocol from the SAJ inverter

Modbus-protocol.pdf https://github.com/DiedB/Homey-SolarPanels/files/6931282/Modbus-protocol.pdf — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/DiedB/Homey-SolarPanels/issues/143#issuecomment-892621271, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVCABYPYCU5W4LYETC7TYKDT3EX4ZANCNFSM42AI3LCQ. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.

rsimmers commented 2 years ago

I have installeer zonnepanelen and add a Saj device. I files in the richt IP adres but it return that the data is wrong. What can i do?

Rene


Van: Diederik Bakker @.> Verzonden: Wednesday, August 4, 2021 2:50:55 PM Aan: DiedB/Homey-SolarPanels @.> CC: rsimmers @.>; Mention @.> Onderwerp: Re: [DiedB/Homey-SolarPanels] SAJ inverter (#143)

@POfranszhttps://github.com/POfransz ModBUS works via UART, no way to connect that to Homey (unless you would add some hardware on the inverter side, not really possible for the average user). The SAJ Collector you mention is using the same method for fetching production data as the current implementation of this app.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/DiedB/Homey-SolarPanels/issues/143#issuecomment-892630579, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AVCABYNMPRCR3VJYBKXS3ULT3EZS7ANCNFSM42AI3LCQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.

drieshooghe commented 2 years ago

@hendrik607

yes there is http://challenger.zone/diversen/saj.jpg

http://ip/status/status.php gives me;

1,1460417,126931,3093,163,1472,4,1774,4,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,0,5000,2260,8,65535,65535,65535,65535,3546,357,49106,2

with above string, page looks like:

http://challenger.zone/diversen/saj2.JPG

also there is http://ip/i18n/en/status.xml

geving me;

http://challenger.zone/diversen/saj3.JPG

For the WiFi D module, which communicates real time data through http://[IP]/status/status.php I've created a PR: https://github.com/DiedB/Homey-SolarPanels/pull/164

rsimmers commented 2 years ago

Does this mean i can try it with my homey?

René Simmers

Op 29 sep. 2021 om 21:15 heeft Dries Hooghe @.***> het volgende geschreven:

 yes there is http://challenger.zone/diversen/saj.jpg

http://ip/status/status.php gives me;

1,1460417,126931,3093,163,1472,4,1774,4,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,0,5000,2260,8,65535,65535,65535,65535,3546,357,49106,2

with above string, page looks like:

http://challenger.zone/diversen/saj2.JPG

also there is http://ip/i18n/en/status.xml

geving me;

http://challenger.zone/diversen/saj3.JPG

For the WiFi D module, which communicates real time data through http://[IP]/status/status.php I've created a PR: #164

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

chrisboer commented 2 years ago

@DiedB I have 2 of these SAJ and I also have Solarman so all of my solarpanels can not be monitored anymore. I can help you setup the SAJ because it worked perfectly with previous versions.

chrisboer commented 2 years ago

If I connect to my local network I can see you can readout param.js

var xmlhttp_par; function display_par() { if(xmlhttp_par.readyState==4&& xmlhttp_par.status==200) { var xmlDoc=xmlhttp_par.responseXML.documentElement;

with(document){ getElementById("v-grid").value=xmlDoc.getElementsByTagName("v-grid")[0].childNodes[0].nodeValue+" V"; getElementById("i-grid").value=xmlDoc.getElementsByTagName("i-grid")[0].childNodes[0].nodeValue+" A"; getElementById("f-grid").value=xmlDoc.getElementsByTagName("f-grid")[0].childNodes[0].nodeValue+" Hz"; getElementById("p-ac").value=xmlDoc.getElementsByTagName("p-ac")[0].childNodes[0].nodeValue+" W"; getElementById("temp").value=xmlDoc.getElementsByTagName("temp")[0].childNodes[0].nodeValue+" ℃"; getElementById("e-today").value=xmlDoc.getElementsByTagName("e-today")[0].childNodes[0].nodeValue+" kWh"; getElementById("t-today").value=xmlDoc.getElementsByTagName("t-today")[0].childNodes[0].nodeValue+" h"; getElementById("e-total").value=xmlDoc.getElementsByTagName("e-total")[0].childNodes[0].nodeValue+" kWh"; getElementById("t-total").value=xmlDoc.getElementsByTagName("t-total")[0].childNodes[0].nodeValue+" h"; getElementById("CO2").value=xmlDoc.getElementsByTagName("CO2")[0].childNodes[0].nodeValue+" kg"; getElementById("v-pv1").value=xmlDoc.getElementsByTagName("v-pv1")[0].childNodes[0].nodeValue+" V"; getElementById("i-pv1").value=xmlDoc.getElementsByTagName("i-pv1")[0].childNodes[0].nodeValue+" A"; getElementById("v-pv2").value=xmlDoc.getElementsByTagName("v-pv2")[0].childNodes[0].nodeValue; getElementById("i-pv2").value=xmlDoc.getElementsByTagName("i-pv2")[0].childNodes[0].nodeValue; getElementById("v-bus").value=xmlDoc.getElementsByTagName("v-bus")[0].childNodes[0].nodeValue+" V"; getElementById("Inverter-Stare").value=xmlDoc.getElementsByTagName("state")[0].childNodes[0].nodeValue; } } }

DiedB commented 2 years ago

If someone wants to implement this into a separate app, I am willing to help. In the current app, SAJ will likely be deprecated because there are too many different inverters and software versions, all requiring their own implementation. Will likely be confusing for users and thus lead to lots of questions.

hendrik607 commented 2 years ago

if i can help, let me know, isnt it a option to get the data from the portal? https://fop.saj-electric.com/saj?login

DiedB commented 2 years ago

It would be possible (see link below), but as with other options discussed above, it is not officially supported by the manufacturer. In the past years, integrations like these have often stopped working, and I cannot keep supporting them as I do not even have a SAJ inverter myself.

https://github.com/djansen1987/SAJeSolar/blob/main/custom_components/saj_esolar/sensor.py

chrisboer commented 1 year ago

Hi Dirrick I have time now to fix and test it with you maybe it is wise to extract the data locally via XML

image

So connect to the local IP address and read out the data.,