This is an integration for Domoticz that adds support for the APsystems Energy Communication Unit (ECU) so that you are able to monitor your PV installation (inverters) in detail. It currently supports ECU B - ECU C and ECU R
The installation procedure is based on bjorn-meiger
Support 4 inverters on ECU C or R. Support 2 inverters or 4 pannels on ECU B
- Create a Dummy sensor in Domoticz and call it 'Virtual switches' or another clear name. Add dummy sensor in Domoticz
- Create a virtual sensor of the type 'Electric (Current + counter)'. Name the sensor 'Solar generation'.
- Create a virtual sensor of type 'Switch' and name it 'Inverter [number inverter]'. Repeat this step for the number of microinverters you have.
- Create a virtual sensor of the type 'Consumption (Electric)' and name it 'Inverter [number inverter] – Power [panel number]'. Repeat this step for the number of panels per microinverter.
- Create a virtual sensor of type 'Temperature' and name it 'Inverter [number inverter] – Temperature'. Repeat this step for the number of microinverters you have.
- Create a virtual sensor of type 'Text' and name it 'Timestamp'.
- Create a virtual sensor of type 'Percentage' and name it 'Inverter [number inverter] – Signal'. Repeat this step for the number of microinverters you have.
- Create a virtual sensor of type 'Voltage' and name it 'Inverter [number inverter] – Voltage'. Repeat this step for the number of microinverters you have.
- Create a virtual sensor of type 'Custom Sensor' and name it 'Inverter [number inverter] – Frequency' and add '%' on 'Axis Label' . Repeat this step for the number of microinverters you have.
- Note all idx http://IP-Domoticz:8080/#/Devices
To run the python scripts on the Raspberry Pi Python 3.x to be installed.
-
Place APSystemECU.py and ECU-C-R.py or ECU-B (choose file from your ECU model) in your Domoticz folder under scripts/python/ECU
-
Open ECU-C-R.py or ECU-B.py and change :
ECU IP
Domoticz url
idx with your custom sensor values
- If ECU C or R : Start the script with the command python3 /scripts/python/ECU/ECU-C-R.py
- If ECU B : Start the script with the command python3 /scripts/python/ECU/ECU-B.py
To have the script start automatically every x minutes, add the following line in YOURDOMOTICZIP/#/Events
- Add Domoticz Dzvent Script and edit line "python3 /home/YOURNAME/domoticz/scripts/python/ECU/YOURFILE.py"
- To avoid overloading the ECU unnecessarily, it is possible to trigger the script only during daytime by modifying the timer : 'at daytime every 5 minutes'
- Press ON and save file