CydYnni, EnergyLocal Community hydro smart grid - blog post

I’ve just posted a blog about our work on a local to us community energy project called CydYnni – EnergyLocal. The project is at the forefront of making it possible for households to source their electricity directly from local, community-owned renewable sources. It’s been great being involved in such a pioneering project ran only 5 miles up the road from the OpenEnergyMonitor office.

The full blog post can be read here:

Our role in the project so far has been to develop a web app energy dashboard so that households can see when there is local hydro power available and how it compares to aggregated community demand.

The main app: http://cydynni.org.uk
Historic data view: http://dev.cydynni.org.uk

The next stage involves an adapted emonbase base-station. The development for which has driven some of our most recent improvements to the EmonPi/EmonBase, such as the recently launched WIFI Hotspot setup and ongoing development on the emoncms device module, which alongside auto-configuration of inputs and feeds provides the option to define control devices starting with the Sonoff S20 WIFI Socket, Martin’s WIFI Relay unit and the OpenEVSE charging station.

More to come on this soon!

2 Likes

Hi folks we are an experimental Renawable energy company in Devon. We are currently building a unique min ibelow ground Dual tank Thermophylic AD plant . Operates at 70 degrees C, combined with generator, Lithium ion Phosphate batteries, powerwall and heat recovery. It would take up the slackand DHW demand.
Demo model now being built in Combe Martin and shipped to Ireland soon. You are welcome to look. It simple to operate and low cost. We are using your energy monitor . I can post links if allowed or you need more info. Our main advisor has 40 years experience of total OFF grid systems.
Good luck.

Work has been ongoing on the energy local community hydro smart grid project I mentioned above.

I thought I would share a bit about the hardware/software architecture that Im working on for the project. A large part of it is basically the same as the OpenEnergyMonitor system, but there are also other parts to it such as the smart meter integration and project specific front end dashboards which are additional.

A part that might be of particular interest is the integration with Sonoff S20 smartplugs and the OpenEVSE that @glyn.hudson has been working on. This project required a way of scheduling appliances based on a day ahead forecast of power availability (either hydro or off-peak electric). So that the user can say, as an example: ‘I need to charge my car for 6h, with a completion time of 8am tomorrow’ and the software works out when the best time to charge will be, ensuring that even if there is only 3 hours of surplus hydro the car will still charge for an additional 3h with a priority for off-peak times if available.

This could be a useful feature for comination with @glyn.hudson’s OpenEVSE solar diversion charge mode so that even if the car was only partly charged from diverted solar during the day the charge algorithm could decide to complete the charge at the next best time e.g night time off-peak so that the car completes the specified charge time.

Before I dive into this topic in further detail, it might be useful if I first outline the wider software and hardware architecture proposed for the project,

Key features:

  • Close to real-time billing grade meter reading
  • Hydro and community demand aggregation
  • Smart device control in the home for automated demand response
  • Mobile, tablet, laptop user interface as an in home display both for reporting and control setup.

System diagram

Household billing meter and meter gateway

On the left we start with the household billing meter and meter gateway provided for by the meter operator which provides near real-time meter reading both of half hourly energy consumption and 5-10s real power measurement. Meter readings are passed to the hub over WIFI using the MQTT protocol.

The meter gateway is also connected to a LoraWAN network ran by the meter operator which provides a seperate upload route for half hourly meter readings.

CydYnni Server

The CydYnni server hosts the web accessible CydYnni app, see develop.cydynni.org.uk for the latest version going live soon. Emoncms is used as the data backend, which also provides features for data syncronisation between the hub and remote server.

The CydYnni server fetches half-hourly hydro, community and household half hourly data as well as daily and monthly summaries from the E-power server HTTP API.

Hub

What is called the hub in the project is an OpenEnergyMonitor EmonBase with the latest emonSD software stack as its starting point. The local version of the CydYnni app sits on top of EmonCMS on the EmonBase providing a tailored user interface for the CydYnni project, accessible from: cydynni.local.

Device integration
The ongoing work on emoncms device integration (see Development: Devices, Inputs and Feeds in emoncms) provides automatic device configuration and an authentication mechanism for WIFI devices such as the meter gateway and sonoff plugs.

DemandShaper

A key new component is the emoncms demand shaper module. Which as mentioned above uses a day ahead power availability forecast and user set schedules to determine the best time to run household loads.
The source code for this module can be found here: https://github.com/emoncms/demandshaper.

This is what the module ui looks like:

The module has a background process which processes the configured schedules, setting the control device state as an emoncms input value. The control device subscribes to a MQTT topic e.g emon/smartplug/state and switches on and off accordingly. A future version might have the schedule itself transfered to the smartplug or openevse charger so that the device can run independently of the hub for a certain amount of time in the event of coms failure etc.

This is what the same interface looks like inside the Cydynni EnergyLocal app frontend:

Next step

The next steps in terms of development are:

  • to test the demand shaper thoroughly
  • ensure it works seamlessly with multiple control devices
  • create a cut down simplified EmonESP UI for the project running on the SonoffS20 plug.
  • OpenEVSE integration

I will post another thread soon with details of how to get the demandshaper module up and running with a SonOffS20 plug for anyone interested.

The source code for the front-end app is available here:
https://github.com/TrystanLea/cydynni

1 Like

Its probably worth mentioning that the control route outlined above is independent of node-red and openhab. The intention is not to implement a complete home automation solution within emoncms but only to implement a specific solution for the project use-case as described. We’ve had some discussions about the possibility of making the demand shaper algorithm available via an API for use in 3rd party applications such as node-red and openhab, so this might be an avenue to explore in future.

Hi,
I am a member of a Community power reseller called ‘Enova’ in Northern NSW, Austrlia.

I know Enova is looking for a way to aggregate generation (including batteries) to reduce their peak power costs.

I will show them your project.

regards, Doug