how to add APSystems ECU-3 solar inverter monitor

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

josemi
Posts: 31
Joined: Thursday 08 March 2018 16:48
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: how to add APSystems ECU-3 solar inverter monitor

Post by josemi »

I am sending function Create Array for 4 devices per inverter after updating ECU-C to v 1.2.0 (DC Voltage per panel)

Code: Select all

var i;
for (i = 0; i < msg.payload.length/19; i++) {
var InverterIDA = msg.payload[19*i+0];
var CurrentPowerA = msg.payload[19*i+1];
var DCVoltageA = msg.payload[19*i+2];
var GridFreq = msg.payload[19*i+3];
var GridVoltageA = msg.payload[19*i+4];
var GridTemp = msg.payload[19*i+5];
var GridReportTime = msg.payload[19*i+6];
var InverterIDB = msg.payload[19*i+7];
var CurrentPowerB = msg.payload[19*i+8];
var DCVoltageB = msg.payload[19*i+9];
var GridVoltageB = msg.payload[19*i+10];
var InverterIDC = msg.payload[19*i+11];
var CurrentPowerC = msg.payload[19*i+12];
var DCVoltageC = msg.payload[19*i+13];
var GridVoltageC = msg.payload[19*i+14];
var InverterIDD = msg.payload[19*i+15];
var CurrentPowerD = msg.payload[19*i+16];
var DCVoltageD = msg.payload[19*i+17];
var GridVoltageD = msg.payload[19*i+18];
newMsg = {payload: ([InverterIDA.substr(0,12),CurrentPowerA.slice(0,-2),GridVoltageA.slice(0,-2),CurrentPowerB.slice(0,-2),GridVoltageB.slice(0,-2),CurrentPowerC.slice(0,-2),GridVoltageC.slice(0,-2),CurrentPowerD.slice(0,-2),GridVoltageD.slice(0,-2),GridFreq.slice(0,-3),GridTemp.slice(0,-8)])}
node.send(newMsg);
}
User avatar
FireWizard
Posts: 1871
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: how to add APSystems ECU-3 solar inverter monitor

Post by FireWizard »

Hi, @josemi,

That is exactly the way to do it.

Is it working as intended?

Regards
josemi
Posts: 31
Joined: Thursday 08 March 2018 16:48
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: how to add APSystems ECU-3 solar inverter monitor

Post by josemi »

Hi
Yes, it is working properly for my installation 2 inverters, 4 panels per inverter.
My Unit is ECU-C, I do not know if other ECUs are affected.

(Today values are wrong because the past behaviour after update). Tomorrow they will be ok.

Image
FireWizard wrote: Sunday 30 January 2022 10:14 Hi, @josemi,

That is exactly the way to do it.

Is it working as intended?

Regards
rstolk
Posts: 2
Joined: Tuesday 18 February 2014 15:10
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Location: Nederland
Contact:

Re: how to add APSystems ECU-3 solar inverter monitor

Post by rstolk »

daanvdl wrote: Friday 09 April 2021 20:47 I wrote this python script for use with my APS ECU-R.
https://github.com/daanvdl/-ecu2pvoutput

(I dont own a ECU-C, so i can't confirm this will work well with the APS ECU-C)

It scrapes the HTML form on the local webinterface, sum the panel values,collects voltages and inverter temperture and push the data to a pvoutput account.
When the ECU-R Reports a "-" in the date field (after dark) the scipt fails, any tips ?
rstolk
Posts: 2
Joined: Tuesday 18 February 2014 15:10
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Location: Nederland
Contact:

Re: how to add APSystems ECU-3 solar inverter monitor

Post by rstolk »

Also a negatieve temperatures causes the script to fail
kaka83136
Posts: 3
Joined: Tuesday 16 March 2021 11:05
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: how to add APSystems ECU-3 solar inverter monitor

Post by kaka83136 »

josemi wrote: Wednesday 10 November 2021 21:24 Hi
I got installed my solar panels today with a ECU-C, and I followed your instructions and it is working as a charm.
Thank you for sharing your configuration.
Hi, How did you integrate the ECU-C with Domoticz?
kaka83136
Posts: 3
Joined: Tuesday 16 March 2021 11:05
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: how to add APSystems ECU-3 solar inverter monitor

Post by kaka83136 »

Hello,

I have read a lot of answers, do you have a summary of what you have to do to be able to read the data from an ECU-C to Domoticz
Plugin?
Script?

What to modify and how to do it?

Thanks to you
User avatar
lsp242
Posts: 54
Joined: Sunday 04 February 2018 8:51
Target OS: Raspberry Pi / ODroid
Domoticz version: 12923
Location: Netherlands
Contact:

Re: how to add APSystems ECU-3 solar inverter monitor

Post by lsp242 »

Hi all

had a giant crash off all my electronics in my house, so also crashes domoticz where i had to program(and still programming) all my stuff.

I have one minor thing for monitorring, the day generation should be in kWh and not in Watt..
What did i wrong.. i think a stupid little thing :oops
Attachments
Screenshot 2023-07-03 at 14.41.03.png
Screenshot 2023-07-03 at 14.41.03.png (108.6 KiB) Viewed 1025 times
Screenshot 2023-07-03 at 14.26.52.png
Screenshot 2023-07-03 at 14.26.52.png (18.63 KiB) Viewed 1025 times
Gadget freak - Domoticz beginner - ios and android user
User avatar
FireWizard
Posts: 1871
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: how to add APSystems ECU-3 solar inverter monitor

Post by FireWizard »

Hi @lsp242,

Which type of virtual sensor did you select?

If I remember well, it should be a Custom sensor, with kWh on the x-axis.

Regards
User avatar
lsp242
Posts: 54
Joined: Sunday 04 February 2018 8:51
Target OS: Raspberry Pi / ODroid
Domoticz version: 12923
Location: Netherlands
Contact:

Re: how to add APSystems ECU-3 solar inverter monitor

Post by lsp242 »

@firewizard yes i used the wrong device (electric is standars watt)

Now generic with kWh

(Now trying to manual add my values from old database - do you have tip(s) or a how to?)
Gadget freak - Domoticz beginner - ios and android user
User avatar
FireWizard
Posts: 1871
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: how to add APSystems ECU-3 solar inverter monitor

Post by FireWizard »

Hi @lsp242,

No, I do not have tips or a howto.
But copying from one database to another should not be that difficult, but perhaps someone else has an answer. As this has nothing to do with APSystems, I suggest to create a new topic.
But check first, if such a topic already exists.

Regards
willemd
Posts: 631
Joined: Saturday 21 September 2019 17:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.1
Location: The Netherlands
Contact:

Re: how to add APSystems ECU-3 solar inverter monitor

Post by willemd »

kaka83136 wrote: Wednesday 21 December 2022 16:24
josemi wrote: Wednesday 10 November 2021 21:24 Hi
I got installed my solar panels today with a ECU-C, and I followed your instructions and it is working as a charm.
Thank you for sharing your configuration.
Hi, How did you integrate the ECU-C with Domoticz?
If you are still looking for a solution, have a look here:
https://github.com/Doudou14/Domoticz-apsystems_ecu
and here
https://www.bjorn-meijer.nl/2021/05/01/ ... -domoticz/

I have installed it now for my ECU-B but it is also suitable for ECU-C

If you are installing ECU_B from the first link above, then you have to add the following lines to the program, as shown in the pull request:

Code: Select all

'InverterOnline = data['inverters'][Inverter]['online']
print('Online: ' + str(InverterOnline))'
Those lines are present in the program in the second link and in the ECU_C program, but are missing in the ECU_B

Also the dzvents program to trigger the script can be made much simpler. Note the second program does not use dzvents but just runs in a loop.

Code: Select all

return 
{
    on = 
    {
        timer = { 'every 5 minutes' },
        shellCommandResponses =	{ "getsolardata"} 
    },
    logging = {
		level = domoticz.LOG_INFO,
		marker = 'solar get data',
	},
   
    execute = function(domoticz, item)
        
        if item.isTimer then
            domoticz.executeShellCommand(
            {
                command ="/usr/bin/python3 /home/pi/domoticz/scripts/python/ECU/ECU_B.py",
                callback="getsolardata",
                timeout = 15,
            })
        else
            if item.isShellCommandResponse then
                domoticz.log("From ECU_B : "..item.data,domoticz.LOG_INFO)
            end    
        end    
    end
}
and finally some small improvements to the installation instructions:
1) the first line should state : create dummy hardware instead of create dummy sensor.
2) for the frequency, the axis unit is not % but of course Hz.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest