Sunsynk integration for Cumulocity Streaming Analytics
The EPL Apps under the epl/
folder can be added to a Cumulocity IoT tenant in order to gather data from a SunSynk PV/inverter/battery setup and Octopus Energy account. The live data from those sources are then visible in your Cumulocity IoT tenant. The EPL Apps also generate derived measurements and can also be used to automatically configure your inverter and batter depending on pricing and weather forecasts.
The Apps that are available are as follows:
epl/SunsynkDataCollector.mon
- Collects all the live data from your Sunsynk accountepl/OctopusPriceCollector.mon
- Collects pricing information from your Octopus accountepl/WeatherDataCollector.mon
- Collects weather forecasts for your locationepl/DerivedPricing.mon
- Calculates derived price metrics, like current cost per hour
There is also a file called SyncApp.mon
, which is just used to keep this repository up to date with changes to the development tenant.
In order to deploy any of these files, just copy the contents into a new EPL App in your tenant. Configuration of the app is done via tenant options.
The following tenant options should be set in your tenant, depending which Apps you have loaded and features that you need:
apamax.sunsynk/username
- your Sunsynk usernameapamax.sunsynk/password
- your Sunsynk passwordapamax.sunsynk/inverterId
- The ID of your Sunsynk inverterapamax.octopus/apiKey
- Your API key for your Octopus accountapamax.octopus/products
- A comma-separated list of product names for which you want pricesapamax.weather.location
- Your location inlat,long
formatapamax.weather.timezone
- Your location inArea/City
format
The following virtual devices will be created in your tenant against which measurements will be logged:
sunsynkINVERTERID
- The live data from your Sunsynk inverteroctopusPrices
- current and future pricing data for octopus productsweatherDataLAT.LONG
- weather forecast information for your locationderivedPricing
- derived pricing x usage data