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

boot
Posts: 3
Joined: Saturday 11 November 2017 20:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by boot »

As I was struggling with the same issue for my ECU-R i've made a NodeRed flow which grabs the latest power update and sends it to Domoticz. I'm still hoping someone is albe to make a direct connection using Zigbee, unfortunately I don't have the skills myself.

This is the flow you can import in NodeRed. You need to make a dummy device in Domoticz and you will need the ID of your ECU-R.

Code: Select all

[{"id":"cee8863.bf63f78","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"42dfa7e5.ca71c","type":"function","z":"cee8863.bf63f78","name":"ToDomoticz","func":"var t_last_update = context.get('t_last_update') || \"00:00:00\";\nif (msg.payload.time != t_last_update) {\n    context.set('t_last_update', msg.payload.time);\n    \n    msg.payload = {\n        \"idx\" : 1140, //your domoticz idx here\n        \"nvalue\" : 0,\n        \"svalue\" : msg.payload.power\n    } \n    return msg;\n}\nelse {\n    return null;\n}\n","outputs":1,"noerr":0,"x":470,"y":160,"wires":[["5f3e0b2e.3d22bc","c318bb7c.1af38"]]},{"id":"ca14cd66.da7b38","type":"inject","z":"cee8863.bf63f78","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":100,"y":120,"wires":[["d6496cf4.41791"]]},{"id":"5f3e0b2e.3d22bc","type":"debug","z":"cee8863.bf63f78","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":670,"y":140,"wires":[]},{"id":"fcee29cb.ad2698","type":"http request","z":"cee8863.bf63f78","name":"","method":"POST","ret":"obj","paytoqs":false,"url":"http://api.apsystemsema.com:8073/apsema/v1/ecu/getPowerInfo","tls":"","persist":false,"proxy":"","authType":"","x":110,"y":320,"wires":[["ef465640.e1d738"]]},{"id":"2fb9f417.93002c","type":"function","z":"cee8863.bf63f78","name":"Create POST msg","func":"msg.payload = {\n      'ecuId': xxxxxxxxxxxx, //your 12 digit ecuID here\n      'filter': 'power',\n      'date': msg.payload\n};\nmsg.headers = \n{\n        'Content-Type': 'application/x-www-form-urlencoded',\n    }\nreturn msg;","outputs":1,"noerr":0,"x":130,"y":240,"wires":[["fcee29cb.ad2698"]]},{"id":"ef465640.e1d738","type":"change","z":"cee8863.bf63f78","name":"","rules":[{"t":"set","p":"payload.power","pt":"msg","to":"payload.data.power","tot":"msg"},{"t":"set","p":"payload.time","pt":"msg","to":"payload.data.time","tot":"msg"},{"t":"delete","p":"payload.code","pt":"msg"},{"t":"delete","p":"payload.data","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":140,"y":400,"wires":[["d4389253.c45d9"]]},{"id":"d4389253.c45d9","type":"string","z":"cee8863.bf63f78","name":"Power","methods":[{"name":"getRightMost","params":[{"type":"str","value":","}]},{"name":"delRightMost","params":[{"type":"str","value":"]"}]},{"name":"delLeftMost","params":[{"type":"str","value":"\""}]},{"name":"delRightMost","params":[{"type":"str","value":"\""}]}],"prop":"payload.power","propout":"payload.power","object":"msg","objectout":"msg","x":310,"y":400,"wires":[["7ecbae6.bb16cd"]]},{"id":"c318bb7c.1af38","type":"mqtt out","z":"cee8863.bf63f78","name":"","topic":"domoticz/in","qos":"","retain":"","broker":"8faae1ae.a63ee","x":700,"y":220,"wires":[]},{"id":"d6496cf4.41791","type":"moment","z":"cee8863.bf63f78","name":"","topic":"","input":"","inputType":"msg","inTz":"Europe/Amsterdam","adjAmount":"2","adjType":"hours","adjDir":"add","format":"YYYYMMDD","locale":"en_GB","output":"","outputType":"msg","outTz":"Europe/Amsterdam","x":180,"y":160,"wires":[["2fb9f417.93002c"]]},{"id":"c9af0214.5f10f","type":"change","z":"cee8863.bf63f78","name":"Date2Num","rules":[{"t":"set","p":"payload","pt":"msg","to":"$number(msg.payload)","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":190,"y":200,"wires":[[]]},{"id":"7ecbae6.bb16cd","type":"string","z":"cee8863.bf63f78","name":"Time","methods":[{"name":"getRightMost","params":[{"type":"str","value":","}]},{"name":"delRightMost","params":[{"type":"str","value":"]"}]},{"name":"delLeftMost","params":[{"type":"str","value":"\""}]},{"name":"delRightMost","params":[{"type":"str","value":"\""}]}],"prop":"payload.time","propout":"payload.time","object":"msg","objectout":"msg","x":450,"y":400,"wires":[["42dfa7e5.ca71c"]]},{"id":"443628e9.fdea08","type":"comment","z":"cee8863.bf63f78","name":"","info":"In Domoticz, add a dummy device (Electric (instant+counter)) and remember the device idx\n\nAdd your ECU ID in \"Create POST msg\" function\nAdd your domoticz dummy idx in \"ToDomoticz\" function\n\nset the timestamp to auto inject and repeat every 5 minutes","x":340,"y":80,"wires":[]},{"id":"8faae1ae.a63ee","type":"mqtt-broker","z":"","name":"","broker":"localhost","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthRetain":"false","birthPayload":"","closeTopic":"","closeRetain":"false","closePayload":"","willTopic":"","willQos":"0","willRetain":"false","willPayload":""}]
kadzsol
Posts: 1
Joined: Friday 25 September 2020 16:53
Target OS: -
Domoticz version:
Contact:

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

Post by kadzsol »

boot wrote: Sunday 13 September 2020 20:59 As I was struggling with the same issue for my ECU-R i'...
Hi boot, if you have an ECU-R available, would you mind to help us with grabbing the zigbee traffic during device registration? This would enable us to create a home brewed version of the ECU to support cheap integration with anything out there :-)

Here are the details: https://github.com/Koenkk/zigbee2mqtt/i ... -698958165
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 »

Benneton wrote: Tuesday 24 September 2019 20:01 FireWizard YOU ARE A HERO!!!

It works like a charm, just needed to change in Node-red the IDX numbers to match my Domoticz virtual devices and update the "Domoticz in" my IP and user/passwd. Deploy the flow and when I check in Domoticz I see the data which is also available in the AP ECU.

Image

So now I have to make a back up of it all and then sort out why I do not get the day timer to work, deleted it for now as it was giving an error, see post above.

Again many many thanks for your support, effort and patience!

Kind regards,
Bernard
@FireWizard @Benneton

Last week i started with adding ECU-3 it works almost... (although you did this great job in 2019 already, i hope you can help!)

I got some wrong figures at the Solar Panel Sensors.. I think this could be due to there are 10 ten converters in my account and only used 7.

Can one of you help? What do you need from me then?
Attachments
Panelen.png
Panelen.png (255.64 KiB) Viewed 2297 times
Gadget freak - Domoticz beginner - ios and android user
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 »

It was more easy than thought... you can delete the inverters on the administration page from APsystems and only add the ones on the roof..

Now only check how to let it look nice on domoticz.. Until know i didn't find a good theme for that..
Gadget freak - Domoticz beginner - ios and android user
User avatar
FireWizard
Posts: 1745
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,
It was more easy than thought... you can delete the inverters on the administration page from APsystems and only add the ones on the roof.
So, your problem has been solved? Is the data received by the correct virtual sensors?
Now only check how to let it look nice on domoticz.. Until know i didn't find a good theme for that..
Themes are a matter of personal taste, but you can make a roof (room) plan.

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 problem solved.. I could delete the three extra converters and now the data are correct :D
I've to dig in making a plan.. or maybe go to dashticz

You made it a sort of easy to connect with Node-Red to the APsystems site :mrgreen:

Ps. Overnight the converters are "offline" so in the night the sensors in domoticz are red (not seen)
Gadget freak - Domoticz beginner - ios and android user
User avatar
FireWizard
Posts: 1745
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,
You made it a sort of easy to connect with Node-Red to the APsystems site
I scraped the website and that is only possible with the ECU-3. The newer ECU-R has no web interface, so it is not possible to do the same.
However for those interested in, the boys of Home Assistant have succeeded in reverse engineering the protocol.
See: https://community.home-assistant.io/t/a ... ull/260835
Ps. Overnight the converters are "offline" so in the night the sensors in domoticz are red (not seen)
If you want that, that is okay for me. The timer switch stops the polling of the inverters, approx between sunset and sunrise.
You can avoid the red bar, above the sensors by increasing the time-out.

See Domoticz Setup > Settings > Other > Sensor Timeout,
If you insert 1440, the timeout is increased to 24 hours, so a full day.

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 »

After upgrade raspberry pi, domoticz crashes.
It seems that the nodered input from APsysems to domoticz the problem is.

node red scrapes on the right way, i see the values every 5minutes change. But no result in domoticz..

anybody a idea where to look?
Gadget freak - Domoticz beginner - ios and android user
User avatar
FireWizard
Posts: 1745
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 »

Hello @lsp242
It seems that the nodered input from APsysems to domoticz the problem is.

node red scrapes on the right way, i see the values every 5minutes change. But no result in domoticz..

anybody a idea where to look?
You said you upgraded the pi.

Has Node Red been involved in the crash? So, did you also install a new version of Node Red?
Has the Mosquitto broker been involved in the crash? Did you install a new version? If so, which version.
See: viewtopic.php?f=28&t=35706&p=270259&hil ... to#p270259

If these things are okay, can you connect a Debug node to all "Function" nodes who are connected to the MQTT Output node to Domoticz?

In the picture in this thread of 13 Mar 2020, 18:52, I see 3 "Function" nodes:

1. Solar Overview to Domoticz
2. Solar Environmental to Domoticz
3. Solar Production Inverters to Domoticz.

Please post the output here.
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 »

thank you for your reply..

i deplugged in code red the 5 min tick. now domoticz seems to be stable
When i plug node red to output to domoticz --> crash domoticz

... thank you very much for thinking with me


MQTT = 1.5.7
Node Red = 1.2.9

I can't see any failure in the debug output (i selected the debug and send to mail)

Code: Select all

24-3-2021 09:53:07node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 712, nvalue: 0, svalue: "10130.49" }
24-3-2021 09:53:08node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 713, nvalue: 0, svalue: "1431 ;0" }
24-3-2021 09:53:08node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 711, nvalue: 0, svalue: "1.86" }
24-3-2021 09:53:08node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 708, nvalue: 0, svalue: "3194.9" }
24-3-2021 09:53:08node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 709, nvalue: 0, svalue: "372" }
24-3-2021 09:53:08node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 710, nvalue: 0, svalue: "7448" }
24-3-2021 09:53:08node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 232, nvalue: 0, svalue: "119;0" }
24-3-2021 09:53:08node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 246, nvalue: 0, svalue: "235" }
24-3-2021 09:53:08node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 233, nvalue: 0, svalue: "86;0" }
24-3-2021 09:53:08node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 247, nvalue: 0, svalue: "235" }
24-3-2021 09:53:08node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 258, nvalue: 0, svalue: "50.1" }
24-3-2021 09:53:08node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 273, nvalue: 0, svalue: "19" }
24-3-2021 09:53:08node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 234, nvalue: 0, svalue: "138;0" }
24-3-2021 09:53:08node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 248, nvalue: 0, svalue: "235" }
24-3-2021 09:53:08node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 235, nvalue: 0, svalue: "74;0" }
24-3-2021 09:53:08node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 249, nvalue: 0, svalue: "235" }
24-3-2021 09:53:08node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 259, nvalue: 0, svalue: "50.1" }
24-3-2021 09:53:08node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 272, nvalue: 0, svalue: "18" }
24-3-2021 09:53:08node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 238, nvalue: 0, svalue: "74;0" }
24-3-2021 09:53:08node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 252, nvalue: 0, svalue: "236" }
24-3-2021 09:53:08node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 239, nvalue: 0, svalue: "116;0" }
24-3-2021 09:53:08node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 253, nvalue: 0, svalue: "236" }
24-3-2021 09:53:08node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 261, nvalue: 0, svalue: "50.1" }
24-3-2021 09:53:08node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 270, nvalue: 0, svalue: "20" }
24-3-2021 09:53:08node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 240, nvalue: 0, svalue: "72;0" }
24-3-2021 09:53:08node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 254, nvalue: 0, svalue: "236" }
24-3-2021 09:53:08node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 241, nvalue: 0, svalue: "73;0" }
24-3-2021 09:53:08node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 255, nvalue: 0, svalue: "236" }
24-3-2021 09:53:08node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 262, nvalue: 0, svalue: "50.1" }
24-3-2021 09:53:08node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 269, nvalue: 0, svalue: "20" }
24-3-2021 09:53:09node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 228, nvalue: 0, svalue: "139;0" }
24-3-2021 09:53:09node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 242, nvalue: 0, svalue: "236" }
24-3-2021 09:53:09node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 229, nvalue: 0, svalue: "87;0" }
24-3-2021 09:53:09node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 243, nvalue: 0, svalue: "236" }
24-3-2021 09:53:09node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 256, nvalue: 0, svalue: "50.1" }
24-3-2021 09:53:09node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 275, nvalue: 0, svalue: "19" }
24-3-2021 09:53:09node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 230, nvalue: 0, svalue: "141;0" }
24-3-2021 09:53:09node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 244, nvalue: 0, svalue: "235" }
24-3-2021 09:53:09node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 231, nvalue: 0, svalue: "87;0" }
24-3-2021 09:53:09node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 245, nvalue: 0, svalue: "235" }
24-3-2021 09:53:09node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 257, nvalue: 0, svalue: "50.1" }
24-3-2021 09:53:09node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 274, nvalue: 0, svalue: "19" }
24-3-2021 09:53:09node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 236, nvalue: 0, svalue: "139;0" }
24-3-2021 09:53:09node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 250, nvalue: 0, svalue: "235" }
24-3-2021 09:53:09node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 237, nvalue: 0, svalue: "86;0" }
24-3-2021 09:53:09node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 251, nvalue: 0, svalue: "235" }
24-3-2021 09:53:09node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 260, nvalue: 0, svalue: "50.1" }
24-3-2021 09:53:09node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 271, nvalue: 0, svalue: "17" }
Gadget freak - Domoticz beginner - ios and android user
User avatar
FireWizard
Posts: 1745
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 »

Hello @lsp242,

You wrote:
i deplugged in code red the 5 min tick. now domoticz seems to be stable
When i plug node red to output to domoticz --> crash domoticz
This indicates that the crash is caused by the data send by MQTT. Have you checked the Domoticz log and if so, did you see any error messages related to MQTT?

Another thing, as you said you installed a new upgrade:
After upgrade raspberry pi, domoticz crashes.
To which version did you upgrade? Last beta 13104?

Currently Domoticz has some issues with devices Electricity (instant + counter).
These are used, of course.

See also: viewtopic.php?f=6&t=35855&hilit=13102 which contains a link to:
https://github.com/domoticz/domoticz/issues/4736.

Developers are working on a solution, so perhaps some patience.

What you can try is to disconnect only the "Function" node to the MQTT "Output" node, which control these Electricity devices.
Probably
1. Solar Overview to Domoticz
2. Solar Production Inverters to Domoticz.
Just connect one by one and see, when the crash occurs.

Regards
Last edited by FireWizard on Wednesday 24 March 2021 16:56, edited 1 time in total.
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 »

Yes, domoticz is on beta 13104
I don't see a MQTT failure in the log after restart


domoticz crashes when i try to connect to "Solar Production Inverters to Domoticz" in NodeRed. That is power production solar panel-temp inverter-voltage inverter.

The other two i can connect and send to domoticz without any problem
Gadget freak - Domoticz beginner - ios and android user
User avatar
FireWizard
Posts: 1745
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.

Let's leave it for the moment and leave that Function node disconnected from MQTT Output node.

We wait until the issue with the Energy (Instant and Counter) sensor is fixed.
(I did the same in my application)

Regards
User avatar
FireWizard
Posts: 1745
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,
We wait until the issue with the Energy (Instant and Counter) sensor is fixed.
I think the issue has been fixed. (I have tried it for a couple of hours now and it looks okay)

Can you try to upgrade to v13117 and check that it works now without a crash.

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

how to add APSystems ECU-3 solar inverter monitor

Post by lsp242 »

I’ll check tomorrow..

The beta update yesterday was not ok… I saw a new one today. Hopefully this one does it.. let you know

Couldn’t wait

Domoticz crashed direct when I connected solar panels in node red
Gadget freak - Domoticz beginner - ios and android user
User avatar
FireWizard
Posts: 1745
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 »

Hello @lsp242,

Can you check that at the moment you connect the solar panels, what is sent to Domoticz with MQTT.
Use a Debug node connected to the Function Node.

Check the IDX numbers

Are you now running v 13117?

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 »

Yes domoticz 13117

Code: Select all

 5-3-2021 21:57:04node: Output APS Array
msg.payload : array[7]
[ "403000304538", "", "", "", "", "", "" ]
25-3-2021 21:57:04node: Output APS Array
msg.payload : array[7]
[ "403000304010", "0", "228", "0", "228", "50.1", "19" ]
25-3-2021 21:57:04node: Output APS Array
msg.payload : array[7]
[ "403000304210", "", "", "", "", "", "" ]
25-3-2021 21:57:04node: Output APS Array
msg.payload : array[7]
[ "403000304858", "", "", "", "", "", "" ]
25-3-2021 21:57:04node: Output APS Array
msg.payload : array[7]
[ "404000263717", "0", "228", "0", "228", "50.1", "20" ]
25-3-2021 21:57:04node: Output APS Array
msg.payload : array[7]
[ "404000264056", "", "", "", "", "", "" ]
25-3-2021 21:57:04node: Output APS Array
msg.payload : array[7]
[ "404000265060", "", "", "", "", "", "" ]
25-3-2021 21:57:04node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 232, nvalue: 0, svalue: ";0" }
25-3-2021 21:57:04node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 246, nvalue: 0, svalue: "" }
25-3-2021 21:57:04node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 233, nvalue: 0, svalue: ";0" }
25-3-2021 21:57:04node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 247, nvalue: 0, svalue: "" }
25-3-2021 21:57:04node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 258, nvalue: 0, svalue: "" }
25-3-2021 21:57:04node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 273, nvalue: 0, svalue: "" }
25-3-2021 21:57:04node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 234, nvalue: 0, svalue: "0;0" }
25-3-2021 21:57:04node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 248, nvalue: 0, svalue: "228" }
25-3-2021 21:57:04node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 235, nvalue: 0, svalue: "0;0" }
25-3-2021 21:57:04node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 249, nvalue: 0, svalue: "228" }
25-3-2021 21:57:04node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 259, nvalue: 0, svalue: "50.1" }
25-3-2021 21:57:04node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 272, nvalue: 0, svalue: "19" }
25-3-2021 21:57:04node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 238, nvalue: 0, svalue: ";0" }
25-3-2021 21:57:04node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 252, nvalue: 0, svalue: "" }
25-3-2021 21:57:04node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 239, nvalue: 0, svalue: ";0" }
25-3-2021 21:57:04node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 253, nvalue: 0, svalue: "" }
25-3-2021 21:57:04node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 261, nvalue: 0, svalue: "" }
25-3-2021 21:57:04node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 270, nvalue: 0, svalue: "" }
25-3-2021 21:57:04node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 240, nvalue: 0, svalue: ";0" }
25-3-2021 21:57:04node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 254, nvalue: 0, svalue: "" }
25-3-2021 21:57:04node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 241, nvalue: 0, svalue: ";0" }
25-3-2021 21:57:04node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 255, nvalue: 0, svalue: "" }
25-3-2021 21:57:04node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 262, nvalue: 0, svalue: "" }
25-3-2021 21:57:04node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 269, nvalue: 0, svalue: "" }
25-3-2021 21:57:04node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 228, nvalue: 0, svalue: "0;0" }
25-3-2021 21:57:04node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 242, nvalue: 0, svalue: "228" }
25-3-2021 21:57:04node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 229, nvalue: 0, svalue: "0;0" }
25-3-2021 21:57:04node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 243, nvalue: 0, svalue: "228" }
25-3-2021 21:57:04node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 256, nvalue: 0, svalue: "50.1" }
25-3-2021 21:57:04node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 275, nvalue: 0, svalue: "20" }
25-3-2021 21:57:04node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 230, nvalue: 0, svalue: ";0" }
25-3-2021 21:57:04node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 244, nvalue: 0, svalue: "" }
25-3-2021 21:57:04node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 231, nvalue: 0, svalue: ";0" }
25-3-2021 21:57:04node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 245, nvalue: 0, svalue: "" }
25-3-2021 21:57:04node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 257, nvalue: 0, svalue: "" }
25-3-2021 21:57:04node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 274, nvalue: 0, svalue: "" }
25-3-2021 21:57:05node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 236, nvalue: 0, svalue: ";0" }
25-3-2021 21:57:05node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 250, nvalue: 0, svalue: "" }
25-3-2021 21:57:05node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 237, nvalue: 0, svalue: ";0" }
25-3-2021 21:57:05node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 251, nvalue: 0, svalue: "" }
25-3-2021 21:57:05node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 260, nvalue: 0, svalue: "" }
25-3-2021 21:57:05node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 271, nvalue: 0, svalue: "" }
25-3-2021 21:57:28node: Output APS Array
msg.payload : array[7]
[ "403000304538", "", "", "", "", "", "" ]
25-3-2021 21:57:28node: Output APS Array
msg.payload : array[7]
[ "403000304010", "0", "228", "0", "228", "50.1", "19" ]
25-3-2021 21:57:28node: Output APS Array
msg.payload : array[7]
[ "403000304210", "", "", "", "", "", "" ]
25-3-2021 21:57:28node: Output APS Array
msg.payload : array[7]
[ "403000304858", "", "", "", "", "", "" ]
25-3-2021 21:57:29node: Output APS Array
msg.payload : array[7]
[ "404000263717", "0", "228", "0", "228", "50.1", "20" ]
25-3-2021 21:57:29node: Output APS Array
msg.payload : array[7]
[ "404000264056", "", "", "", "", "", "" ]
25-3-2021 21:57:29node: Output APS Array
msg.payload : array[7]
[ "404000265060", "", "", "", "", "", "" ]
25-3-2021 21:57:29node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 232, nvalue: 0, svalue: ";0" }
25-3-2021 21:57:29node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 246, nvalue: 0, svalue: "" }
25-3-2021 21:57:29node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 233, nvalue: 0, svalue: ";0" }
25-3-2021 21:57:29node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 247, nvalue: 0, svalue: "" }
25-3-2021 21:57:29node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 258, nvalue: 0, svalue: "" }
25-3-2021 21:57:29node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 273, nvalue: 0, svalue: "" }
25-3-2021 21:57:29node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 234, nvalue: 0, svalue: "0;0" }
25-3-2021 21:57:29node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 248, nvalue: 0, svalue: "228" }
25-3-2021 21:57:29node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 235, nvalue: 0, svalue: "0;0" }
25-3-2021 21:57:29node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 249, nvalue: 0, svalue: "228" }
25-3-2021 21:57:29node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 259, nvalue: 0, svalue: "50.1" }
25-3-2021 21:57:29node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 272, nvalue: 0, svalue: "19" }
25-3-2021 21:57:29node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 238, nvalue: 0, svalue: ";0" }
25-3-2021 21:57:29node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 252, nvalue: 0, svalue: "" }
25-3-2021 21:57:29node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 239, nvalue: 0, svalue: ";0" }
25-3-2021 21:57:29node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 253, nvalue: 0, svalue: "" }
25-3-2021 21:57:29node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 261, nvalue: 0, svalue: "" }
25-3-2021 21:57:29node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 270, nvalue: 0, svalue: "" }
25-3-2021 21:57:29node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 240, nvalue: 0, svalue: ";0" }
25-3-2021 21:57:29node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 254, nvalue: 0, svalue: "" }
25-3-2021 21:57:29node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 241, nvalue: 0, svalue: ";0" }
25-3-2021 21:57:29node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 255, nvalue: 0, svalue: "" }
25-3-2021 21:57:29node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 262, nvalue: 0, svalue: "" }
25-3-2021 21:57:29node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 269, nvalue: 0, svalue: "" }
25-3-2021 21:57:29node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 228, nvalue: 0, svalue: "0;0" }
25-3-2021 21:57:29node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 242, nvalue: 0, svalue: "228" }
25-3-2021 21:57:29node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 229, nvalue: 0, svalue: "0;0" }
25-3-2021 21:57:29node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 243, nvalue: 0, svalue: "228" }
25-3-2021 21:57:29node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 256, nvalue: 0, svalue: "50.1" }
25-3-2021 21:57:29node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 275, nvalue: 0, svalue: "20" }
25-3-2021 21:57:29node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 230, nvalue: 0, svalue: ";0" }
25-3-2021 21:57:29node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 244, nvalue: 0, svalue: "" }
25-3-2021 21:57:29node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 231, nvalue: 0, svalue: ";0" }
25-3-2021 21:57:29node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 245, nvalue: 0, svalue: "" }
25-3-2021 21:57:29node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 257, nvalue: 0, svalue: "" }
25-3-2021 21:57:29node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 274, nvalue: 0, svalue: "" }
25-3-2021 21:57:29node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 236, nvalue: 0, svalue: ";0" }
25-3-2021 21:57:29node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 250, nvalue: 0, svalue: "" }
25-3-2021 21:57:29node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 237, nvalue: 0, svalue: ";0" }
25-3-2021 21:57:29node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 251, nvalue: 0, svalue: "" }
25-3-2021 21:57:29node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 260, nvalue: 0, svalue: "" }
25-3-2021 21:57:29node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 271, nvalue: 0, svalue: "" }
I’ll check tomorrow again the IDX but didn’t change
Gadget freak - Domoticz beginner - ios and android user
User avatar
FireWizard
Posts: 1745
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

Is the code you posted all coming from the Function node, called "Solar Production Inverters to Domoticz"

I see some elements that should not be there and they probably caused the crash.

Which version of APSystems software do you use? (version 4.1 or version 3.11.4)?

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 »

Software version 4.1

Code: Select all

 3-2021 22:18:40node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 232, nvalue: 0, svalue: ";0" }
25-3-2021 22:18:40node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 246, nvalue: 0, svalue: "" }
25-3-2021 22:18:40node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 233, nvalue: 0, svalue: ";0" }
25-3-2021 22:18:40node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 247, nvalue: 0, svalue: "" }
25-3-2021 22:18:40node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 258, nvalue: 0, svalue: "" }
25-3-2021 22:18:40node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 273, nvalue: 0, svalue: "" }
25-3-2021 22:18:40node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 234, nvalue: 0, svalue: "0;0" }
25-3-2021 22:18:40node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 248, nvalue: 0, svalue: "228" }
25-3-2021 22:18:40node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 235, nvalue: 0, svalue: "0;0" }
25-3-2021 22:18:40node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 249, nvalue: 0, svalue: "228" }
25-3-2021 22:18:40node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 259, nvalue: 0, svalue: "50.1" }
25-3-2021 22:18:40node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 272, nvalue: 0, svalue: "19" }
25-3-2021 22:18:40node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 238, nvalue: 0, svalue: ";0" }
25-3-2021 22:18:40node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 252, nvalue: 0, svalue: "" }
25-3-2021 22:18:40node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 239, nvalue: 0, svalue: ";0" }
25-3-2021 22:18:40node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 253, nvalue: 0, svalue: "" }
25-3-2021 22:18:40node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 261, nvalue: 0, svalue: "" }
25-3-2021 22:18:40node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 270, nvalue: 0, svalue: "" }
25-3-2021 22:18:40node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 240, nvalue: 0, svalue: ";0" }
25-3-2021 22:18:41node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 254, nvalue: 0, svalue: "" }
25-3-2021 22:18:41node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 241, nvalue: 0, svalue: ";0" }
25-3-2021 22:18:41node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 255, nvalue: 0, svalue: "" }
25-3-2021 22:18:41node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 262, nvalue: 0, svalue: "" }
25-3-2021 22:18:41node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 269, nvalue: 0, svalue: "" }
25-3-2021 22:18:41node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 228, nvalue: 0, svalue: "0;0" }
25-3-2021 22:18:41node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 242, nvalue: 0, svalue: "228" }
25-3-2021 22:18:41node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 229, nvalue: 0, svalue: "0;0" }
25-3-2021 22:18:41node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 243, nvalue: 0, svalue: "228" }
25-3-2021 22:18:41node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 256, nvalue: 0, svalue: "50.1" }
25-3-2021 22:18:41node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 275, nvalue: 0, svalue: "20" }
25-3-2021 22:18:41node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 230, nvalue: 0, svalue: ";0" }
25-3-2021 22:18:41node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 244, nvalue: 0, svalue: "" }
25-3-2021 22:18:41node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 231, nvalue: 0, svalue: ";0" }
25-3-2021 22:18:41node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 245, nvalue: 0, svalue: "" }
25-3-2021 22:18:41node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 257, nvalue: 0, svalue: "" }
25-3-2021 22:18:41node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 274, nvalue: 0, svalue: "" }
25-3-2021 22:18:41node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 236, nvalue: 0, svalue: ";0" }
25-3-2021 22:18:41node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 250, nvalue: 0, svalue: "" }
25-3-2021 22:18:41node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 237, nvalue: 0, svalue: ";0" }
25-3-2021 22:18:41node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 251, nvalue: 0, svalue: "" }
25-3-2021 22:18:41node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 260, nvalue: 0, svalue: "" }
25-3-2021 22:18:41node: Domoticz In
msg.payload : Object
{ command: "udevice", idx: 271, nvalue: 0, svalue: "" }
It worked perfect before… don’t get why changed…
Gadget freak - Domoticz beginner - ios and android user
User avatar
FireWizard
Posts: 1745
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

I think I got it. I tested it and my Domoticz crashed also.

Due to recent changes in the Electricity (Instant + Counter), especially if the part "Energy read" is configured as "Computed", obviously it does not accept an empty string anymore. Such as {command: "udevice", idx: 232, nvalue: 0, svalue: ";0"}. This happens, if it gets dark.

Can you try to set the devices to "From device", in order to see it this reflects also other sensors. (I don't think so, but let's test.)

I tried it also with a 0 instead of an empty string and it also crashed, but my production system runs fine with "0;0"

Regards
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest