Casa-Corrently is an energy monitoring solution design to run from within a local network (home area network). It might be used either standalone, as Node-RED module or embedded into other applications.
This core module is designed to work with smartmeters (Electricity only). If you do not have a Smart Meter you might get it here from STROMDAO (Germany only).
- Sample Usage
- Sample flows
- Standalone usage
- Further reading
- Maintainer / Imprint
Energy Price statistics
Standalone installation uses an express http server to provide a nice looking UI (see sample screens above).
git clone https://github.com/energychain/casa-corrently.gitcd casa-correntlynpm install
You will get the UI at http://localhost:3000/ pre-configured for one of our demo households.
config.json and configure to your needs.
Node-RED (Node) via Shell
cd ~/.node-red/npm install --save casa-corrently
Node-RED (Node) via Editor
casa-corrently as NODE package.
This QuickStart allows you to start node-red with one the sample meters to get quickly familiar with this Node (module).
- Node-RED installed global (e.q you could start it from command line using
- Cloned version of GIT Repository https://github.com/energychain/casa-corrently.git
Corrently Demo Meter(s) - Full generation (Messkonzept1 - Volleinspeisung)
npm install node-red-dashboardnpm run demo-messkonzept1
Corrently Demo Meter(s) - surplus feed-in (Messkonzept2 - Überschusseinspeisung)
npm install node-red-dashboardnpm run demo-messkonzept2
First time usage
On first time adding a Discovery Meter to a flow the list of available meters will be empty.
- Add Discovergy login information to configuration node
Deploychanges to flow
- Re-Open Configuration of Discovergy Meter
Modify time and reading of installation (optional)
You might overwrite time and value of first reading from the node configuration.
If triggered (maybe periodic via an inject) this node provides a json Object as
msgpayload =time: <TIME> // time of reading per Discovergy APIlatest:power: <POWERVALUE> // Power in Watt * 10^-3power1: <POWERVALUE>// Power in Watt * 10^-3 of Phase 1power2: <POWERVALUE>// Power in Watt * 10^-3 of Phase 2power3: <POWERVALUE>// Power in Watt * 10^-3 of Phase 3energy: <ENERGYVALUE>// Actual Meter Reading in Watthours * 10^-7 (consumption . OBIS Code 1.8.0)energyOut: <ENERGYVALUE>// Actual Meter Reading in Watthours * 10^-7 (production . OBIS Code 2.8.0)baseCosts: <EUROVALUE> // Accumulated base fee (Grundgebühr) since first measument time (eq. installation - might be overwritten)energyCost: <EUROVALUE> // Accumulated energy costs (Arbeitspreis) since first measument time (eq. installation - might be overwritten)energyRevenue: <EUROVALUE> // Revenue from feeding Energy into the gridincomeSaldo: <EUROVALUE> // Pre Calculated : energyRevenue - (baseCosts + energyCost)
Output with statistics (advanced)
msg.topic is set to
statistics additional statistic information will be provided. Beside of power,power1,power2,power3 the object gets formated same as in
*NOTE: Retrieving statistics requires a significant higher amount of API calls. Consider to use it less than once per minute. *
msgpayload =time: <TIME>// time of reading per Discovergy APIlatest: ... // latest valueslast24h: ... // From latest reading 24 hours backwardtoday: ... // Values from todayyesterday: ... // Values from yesterdaymonthToDay: ... // Values from this monthlastMonth: ... // Values from last monthyearToDay: ... // Values from this yearlast365d: ... // Values from last 365 days
Output with aggregation (advanced)
You might add multiple Discovergy Meters in sequence. In this case a property
aggregation will contain aggregated values of all meters.
msgpayload =time: <TIME>// time of reading per Discovergy APIlatest: ... // latest valuesaggregation: ... // Aggregated values of all meters in sequence
Messkonzept 2 (Überschußeinspeisung) ohne Z2 (Produktionszähler)
It is possible to run this node without Node-RED. It comes shipped with a express APP.
git clone https://github.com/energychain/casa-corrently.gitcd casa-correntlynpm installnpm start ./sample_config_messkonzept2.json
By default the Web UI will be visible at http://localhost:3000/index.html
One Click Deployment
IPFS Support (early beta!)
It is possible access a Casa Corrently Instance via IPFS from remote. To do so you need to install
casa-corrently-ipfs-edge and add an publisher entry into your
installation of IPFS publisher
cd casa-correntlynpm install casa-corrently-ipfs-edge
Restarting casa-corrently should provide you an ipfs URL of your
You might use the following URLs from within the Webinterface:
http://localhost:3000/p2p?method=lsgives list of available peers
http://localhost:3000/p2p?method=selfgives this peers infos
http://localhost:3000/p2p?method=msg&peer=CIDmsg object of a peer
This module is part of the Corrently Ecosystem which looks for funding in Germany: https://www.stromdao.de/crowdfunding/info
Further Documentation is available as Casa Corrently Chapter at: https://casa.corrently.de/books/nutzung-von-node-red/chapter/grünstromzähler-(discovergy-meter)
STROMDAO GmbH Maintainer / Imprint
Gerhard Weiser Ring 29
tel: +49 6226 968 009 0
Handelsregister: HRB 728691 (Amtsgericht Mannheim)