SAJ Solar inverter

@fredericvl can you tell which models are supported?
I have the “Sununo-TL3KB” (webserver runs on port 33)

I see the below error in the log.
"ERROR (MainThread) [pysaj] SAJ sensor key maxPower not found, inverter not compatible? "

and only the value filled is “saj_today_yield”

my XML looks like this:
This text will be hidden

<real_time_data>
	<state>Normal</state>
	<v-grid>227.2</v-grid>
	<i-grid>2.07</i-grid>
	<f-grid>49.97</f-grid>
	<p-ac>449</p-ac>
	<temp>29.8</temp>
	<e-today>3.2</e-today>
	<t-today>5.6</t-today>
	<e-total>11356.8</e-total>
	<CO2>11322.73</CO2>
	<t-total>18549.1</t-total>
	<v-pv1>319.3</v-pv1>
	<i-pv1>1.52</i-pv1>
	<v-pv2>-</v-pv2>
	<i-pv2>-</i-pv2>
	<v-bus>359.9</v-bus>
</real_time_data>

@annegerben it’s very hard to tell which models are supported as there is no information about it…
Actually I think it’s not the inverter itself that matters but the module that is plugged into the serial port and hosts a webserver (via WiFi or ethernet cable depending on the module).

Seems like your module does not return the “maxPower” key, but I could work around this in code so it will work for you. I’ll have a look at it.

Thanks for the effort!

Is it possible to provide a naming option? So I can define a name for the sensors.
I have 2 invertors, I hope this naming option will also provide the possibility to add a second invertor into HA.

Hi @sen, I created a PR that includes a configuration parameter to specify a name with the inverter.
I suppose it will be added in the 0.102 release (first beta is scheduled @ 13/11, official release @ 20/11)

Great! Thanks for the work!!

@sen could you do one more thing for me please?
Since you have a WiFi module connected to your inverter, could you send me the full output of http://IP_OF_INVERTER/info.php ?
I’m trying to find a way to get the inverter’s serial number of the inverter, already found it for the ethernet module (equipment_data.xml) but can’t test it for the WiFi module…
Thanks!

1 Like

@fredericvl If that is any help for you, here is mine, also WiFi based inverter

Device Type: Suntrio Plus 10K

And the result

21030G1628XXYYYYY,ST10KMTL2BE6XXYYYY,21,2710,10,43,2031,2009,2009,1.0.0,1012,srv1.saj-solar.com,0,0,0,301001728YYYYYY

Also in WiFi version I have more variables available the SAJ component returns

Here is the input of inverter 1:
14020G1728EN19744,SU04KMTL2EN6SD0000,12,0FA0,2,6,1201,1020,65535,1.0.1,1017,srv1.saj-solar.com,0,0,0,301001742008928
Inverter 2:
11020G1748EN27365,SU01KSTL2EN6SD0000,11,03E8,2,6,1205,1050,65535,1.0.1,1017,srv1.saj-solar.com,0,0,0,301001742008995

The first parameter is the serial number of the inverter. I hope this helps you. If you need anything, let me know.

@theleshek @sen many thanks to both of you, this is indeed the output I wanted to see :slight_smile:

@fredericvl, I just updated an the naming option works great. Thanks!!

1 Like

Hi Community,

Here is a newbie question. I recently started to play with Home Assistant but fail to connect my SAJ inverter. I modified my configuration.yaml as described (my inverter is ethernet connected and I have access to the xml) but the integration and sensors do not show up when I restart HA. What am I missing? thanks for you assistance.

Hi Manu, could you please share your real_time_data.xml file with me?
Then I can take a look at it.

Hi Frederic,

thanks for taking the time to look into this. My XML looks like this :

<real_time_data>

<state>Normal</state>

<v-grid>243.0</v-grid>

<i-grid>20.38</i-grid>

<f-grid>49.99</f-grid>

<p-ac>4986</p-ac>

<temp>46.8</temp>

<e-today>14.7</e-today>

<t-today>8.5</t-today>

<e-total>2340.2</e-total>

<CO2>2333.18</CO2>

<t-total>2267.4</t-total>

<v-pv1>316.4</v-pv1>

<i-pv1>9.43</i-pv1>

<v-pv2>343.2 V</v-pv2>

<i-pv2>7.76 A</i-pv2>

<v-bus>383.8</v-bus>

</real_time_data>

Hi Manu,

Could you also share the “equipment_data.xml” file for the record?
Then I have all information about your SAJ inverter model.

I think I’m onto a solution already, it seems that there are too many different forms of XML’s for all models and without them being documented there is nowhere to start ofcourse.
I’ll try to change the code so it will try and all possible parameters but if one is not found it can just skip it and continue with the rest instead of generating an error.

Grtz

Frederic,

Here’s the info :

Sununo-TL5K 5200 580 &nbsp&nbspMax.DC Current Input/Per String 16A/16A 2 2 5000 21.7 >0.99(full load) <0.2 97.7% 97.1% AS4777 V1.25 V1.25 EV1.61.6 15020G1908EN9XXXX SU05KMTL1EN6ED0000

Manu,

In the meantime I have changed the code to solve your problem.
The code change has been merged by Home Assistant earlier today: https://github.com/home-assistant/core/pull/34978
Please note that this does not mean that it is present in the latest version of HA.
Normally it will be in the next main release: 0.110

Hi Frederic,

This is great news. Thank you for taking the time and putting effort in solving my issue.

Hi Frederic,
I’m pretty new to Home Assistant, so apologies for my question. I saw you made a lot of work into the SAJ integration. Thanks for that.
At this moment I added the following information at configuration.yaml:

sensor:

  • platform: saj
    host: IP_ADDRESS_OF_DEVICE

This is working for a day … but it seems the next day I don’t receive updates anymore. Also during the night the sensor get’s an error, which is due to the inverter shutting down. And it stays in that state the next day.
Except for adding these lines of code to the configuration.yaml, is there anything else I need to install? I saw you mentioned somewhere code. Which points out this problem. But I don’t know how to install it.
Many thanks.

Hi Tim,

No extra configuration is needed if it was working already.

When my inverter is offline and I restart Home Assistant at that moment, it will indeed stay in the same state the next day.
Restarting HA while inverter is offline is a still a “bug” that I can’t find any fix for at the moment.
But when I restart HA when the inverter is still online and generating electricity it should keep on working the next day.

Perhaps you did restart Home Assistant when the inverter was offline?

You’re right … I did a restart yesterday evening. I guess that will be the problem then. Thanks for the explanation!