Page 11 of 11
Re: how to add APSystems ECU-3 solar inverter monitor
Posted: Sunday 30 January 2022 9:26
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);
}
Re: how to add APSystems ECU-3 solar inverter monitor
Posted: Sunday 30 January 2022 10:14
by FireWizard
Hi, @josemi,
That is exactly the way to do it.
Is it working as intended?
Regards
Re: how to add APSystems ECU-3 solar inverter monitor
Posted: Sunday 30 January 2022 11:11
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.
FireWizard wrote: ↑Sunday 30 January 2022 10:14
Hi, @josemi,
That is exactly the way to do it.
Is it working as intended?
Regards
Re: how to add APSystems ECU-3 solar inverter monitor
Posted: Monday 12 December 2022 17:57
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 ?
Re: how to add APSystems ECU-3 solar inverter monitor
Posted: Friday 16 December 2022 11:54
by rstolk
Also a negatieve temperatures causes the script to fail
Re: how to add APSystems ECU-3 solar inverter monitor
Posted: Wednesday 21 December 2022 16:24
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?
Re: how to add APSystems ECU-3 solar inverter monitor
Posted: Thursday 26 January 2023 10:45
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
Re: how to add APSystems ECU-3 solar inverter monitor
Posted: Monday 03 July 2023 14:42
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
Re: how to add APSystems ECU-3 solar inverter monitor
Posted: Monday 03 July 2023 22:38
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
Re: how to add APSystems ECU-3 solar inverter monitor
Posted: Sunday 09 July 2023 11:31
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?)
Re: how to add APSystems ECU-3 solar inverter monitor
Posted: Sunday 09 July 2023 14:58
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
Re: how to add APSystems ECU-3 solar inverter monitor
Posted: Friday 16 February 2024 11:27
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.