Tested with: v2.2.1-rc7
STATUS: Stable
Download: Online Appstore
userModule PVLogger
Rationale
This userModule collects the power level and solar energy production of the PVLogger device from fp4all.com. These loggers are available for a great number of solar power inverters. PVLogger comprises a mini webserver that monitors and displays. Users can subscribe to a web service that stores and displays data over time.
Usage
The module creates two metric type:level virtualDevices with the names PVLogger_X-1, and PVLogger_X-2, for repectively power (Watt), and engergy (kWh). Because the sensors were defined as simple "level" devices, they can directly be used in Logical Rules:
The JSON objects for power and energy are respectively:
Code: Select all
{"scaleTitle":"W","title":"Solar Power","probeTitle":"Power","level":0,"timeStamp":"20150402 19:58"}
Code: Select all
{"scaleTitle":"kWh","title":"Solar Energy","probeTitle":"Energy","level":16.6,"timeStamp":"20150402 19:58"}
If one has two power inverters, the production data can be used to check the quality of service of the inverters with userModule SolQoS. This module calculates the combined wattage of the inverters. If any of the inverters wattage drops below 40% of the combined wattage, an error status is generated. The generated JSON is:
Code: Select all
{"scaleTitle":"Watt","title":"QualityOfService","probeTitle":"Power","icon":"http://RaspIP:8083/ZAutomation/api/v1/load/modulemedia/SolQoS/solarok58px.png","level":850,"kW":0.85,"outputRatio":13,"kWh":1.728,"QoS":1,"timeStamp":"20160131 11:53"}
To get the combined energy (kWh), just use standard module CodeDevice with command:
Code: Select all
controller.devices.get("SolQoS_27").get("metrics:energy")
If you have activated the OpenRemoteHelpers module you can get the energy value with URL:
Code: Select all
http://raspberry_IP:8083/OpenRemote/metrics/SolQoS_27/energy
0.0.6 If logger can't be reached, power level is set to 0
Solar Quality of Service Monitor versions:
0.0.3 Added timeStamp
0.0.2 First public release