Closed theleshek closed 5 years ago
Hey there @fredericvl, mind taking a look at this issue as its been labeled with a integration (saj
) you are listed as a codeowner for? Thanks!
@theleshek I'm not 100% sure but I think there is a difference between SAJ inverters that are connected via ethernet cable module and those via WiFi module (also see an ongoing discussion here)
My inverter is connected via ethernet cable and does work via the real_time_data.xml url, and not via the status.php url, but I think you have a WiFi connected inverter or am I wrong?
It would be nice to know the difference when to use which one and currently I'm thinking of the difference between ethernet and WiFi.
Could you also check if the following url works, and if so send me the output of it? http://IP_ADDRESS/i18n/en/status.xml
Once I have some more information I will have a look to implement this.
@fredericvl I do have WiFi connection.
Currently I'm using rest and template sensors to get info, but it would be nice to get it in intergation. Just it isn't my thing, have no clue how to do it. I'm more copy/paste guy ;)
Also I did menage to check URL. Output is:
<po>
<m k="statusTittle" v="Device Status"/>
<m k="statistics" v="Statistics"/>
<m k="totalGen" v="Total generated"/>
<m k="totalRunTime" v="Total Running Time"/>
<m k="todayGen" v="Today generated"/>
<m k="todayRunTime" v="Today Running Time"/>
<m k="DCinput" v="DC Input"/>
<m k="PV1vol" v="PV1 Voltage"/>
<m k="PV1cur" v="PV1 Current"/>
<m k="PV2vol" v="PV2 Voltage"/>
<m k="PV2cur" v="PV2 Current"/>
<m k="PV3vol" v="PV3 Voltage"/>
<m k="PV3cur" v="PV3 Current"/>
<m k="ACouput" v="AC Output"/>
<m k="gridConPwr" v="Grid-connected Power"/>
<m k="gridConFreq" v="Grid-connected Frequency"/>
<m k="line1vol" v="Line1 Voltage"/>
<m k="line2vol" v="Line2 Voltage"/>
<m k="line3vol" v="Line3 Voltage"/>
<m k="line1cur" v="Line1 Current"/>
<m k="line2cur" v="Line2 Current"/>
<m k="line3cur" v="Line3 Current"/>
<m k="devStatus" v="Other Status"/>
<m k="runState" v="Running State"/>
<m k="busvol" v="Bus Voltage"/>
<m k="devtemp" v="Device Temperature"/>
<m k="co2red" v="CO<sub>2</sub>emission reduction"/>
<m k="Statistchart" v="Statist chart"/>
<m k="chart1" v="Today"/>
<m k="chart2" v="This month"/>
<m k="chart3" v="This year"/>
<m k="chart4" v="Total"/>
<m k="cx1" v="Time"/>
<m k="cx2" v="Days"/>
<m k="cx3" v="Month"/>
<m k="cx4" v="Year"/>
<m k="kwh" v="kWh"/>
<m k="w" v="W"/>
<m k="m0" v="Not connect"/>
<m k="m1" v="Waiting"/>
<m k="m2" v="Normal"/>
<m k="m3" v="Error"/>
<m k="m4" v="Upgrading"/>
<m k="p0" v=""/>
<m k="p1" v="×10 "/>
<m k="p2" v="×100 "/>
<m k="p3" v="×1K "/>
<m k="p4" v="×10K "/>
<m k="p5" v="×100K "/>
<m k="p6" v="×1M "/>
<m k="p7" v="×10M "/>
<m k="p8" v="×100M "/>
<m k="p9" v="×1G "/>
<m k="u1" v="kWh"/>
<m k="u2" v="h"/>
<m k="u3" v="kWh"/>
<m k="u4" v="h"/>
<m k="u5" v="V"/>
<m k="u6" v="A"/>
<m k="u7" v="V"/>
<m k="u8" v="A"/>
<m k="u9" v="V"/>
<m k="u10" v="A"/>
<m k="u11" v="W"/>
<m k="u12" v="Hz"/>
<m k="u13" v="V"/>
<m k="u14" v="A"/>
<m k="u15" v="V"/>
<m k="u16" v="A"/>
<m k="u17" v="V"/>
<m k="u18" v="A"/>
<m k="u19" v="V"/>
<m k="u20" v="℃"/>
<m k="u21" v="Kg"/>
<m k="mon0" v="Jan"/>
<m k="mon1" v="Feb"/>
<m k="mon2" v="Mar"/>
<m k="mon3" v="Apr"/>
<m k="mon4" v="May"/>
<m k="mon5" v="Jun"/>
<m k="mon6" v="Jul"/>
<m k="mon7" v="Aug"/>
<m k="mon8" v="Sep"/>
<m k="mon9" v="Oct"/>
<m k="mon10" v="Nov"/>
<m k="mon11" v="Dec"/>
</po>
@theleshek Ok thank you for the help! Looks like the output is just some translation xml file, not useful.
I will look to implement an option for inverters with WiFi connection that will read out the /status/status.php url.
By default you need to login with admin/admin, right? Then I will also implement a username and password parameter so it passes the correct credentials to the inverter.
Could you send me the full output of your status.php please? Or is is the example output in your first post the full output?
@fredericvl Creditential are admin / admin and yes, that is the whole ouput
Home Assistant release with the issue: Home Assistant 0.100.2
Last working Home Assistant release (if known):
Operating environment (Hass.io/Docker/Windows/etc.): Docker on Debian
Integration: https://www.home-assistant.io/integrations/saj
Description of problem: I do believe that this integration is not compatible with model I have. which is ST10KMTL2BE6WD3100
I do not see any data from URL http://XXX.XXX.XX.XX/real_time_data.xml, seem page does not exist on this model. Only way to get to data is via http://XXX.XXX.XX.XX/status/status.php and they are formatet as serie of comma separated values like "
3,2134333,88709,59,15,5749,159,6209,75,65535,65535,1178,4997,2400,178,2398,172,2394,178,6223,300,36473,2
"Problem-relevant
configuration.yaml
entries and (fill out even if it seems unimportant):Traceback (if applicable):
Additional information: Could we have additional integration for text based information or an option in current one to chose which one to use.