Skip to content

emoncms/demandshaper

Repository files navigation

Demand Shaper

Appliance, Smartplug, WiFi Relay, HeatpumpMonitor demand shaper: Find the best time to run a household load.

Note: Demand Shaper is no longer compatiable with OpenEVSE from WiFi V4.x onwards

The demand shaper module uses a day ahead power availability forecast and user set schedules to determine the best time to run household loads. An example could be charging an electric car, the user enters a desired completion time and charge duration, the demand shaper module then works out the best time to charge the car, generally there will be higher power availability overnight and during sunny midday hours. The demand shaper attempts to avoid running appliances at peak times while ensuring that the appliance has completed the required run period.

Developed as part of the CydYnni EnergyLocal project, see: https://community.openenergymonitor.org/t/cydynni-energylocal-community-hydro-smart-grid-blog-post

demandshaper.png

Supported forecasts

New in v2: Multiple forecasts can now be combined such as the Solcast Solar Forecast with the Octopus Agile forecast to allow optimisation of both on-site solar and import from Octopus Agile overnight.

Requirements

  • Emoncms Core
  • Emoncms Device module
  • MQTT Mosquitto broker and MQTT emoncms setup as per emonSD image
  • Emoncms dependencies: Apache2, MariaDB, Redis etc.

Install

The DemandShaper module is pre-installed on the emonSD image that is shipped with OpenEnergyMonitor EmonPi and EmonBase devices. If you dont have a EmonPi or EmonBase but do have a spare RaspberryPi, the easiest way to use the DemandShaper module is to download the latest emonSD SD card image so that you have the full Emoncms stack. Alternatively it is possible to build the Emoncms stack from scratch (useful for non-Pi systems e.g a cloud VM) using EmonScripts, or if you already have an manual Emoncms installation see steps for manual installation below.

Installation Options:

  1. Use pre-built emonSD SD card image for a RaspberryPi
    Download the latest image here:
    https://github.com/openenergymonitor/emonpi/wiki/emonSD-pre-built-SD-card-Download-&-Change-Log

  2. Install full emoncms system including demandshaper module using EmonScripts
    Just run our automated emoncms installation script on a target system of choice, see:
    https://github.com/openenergymonitor/EmonScripts

  3. Install demandshaper module within an existing emoncms installation

User Guides

The module contains custom interfaces for applications such as EV charging where you can drag drop the battery level state of charge to the desired target, the module then calculates the required run time based on the battery size and charger charge rate.

Developer Guide

In progress of being written...

  1. Architecture
  2. Add a new forecast
  3. Parsing forecasts
  4. Add a new device
  5. The schedule object
  6. Testing using the CLI scripts

Parsed Forecast Examples

Security

  • The standard configuration on emonSD and EmonScripts based systems include basic authentication for MQTT access.
  • Devices running EmonESP such as the SmartPlug can be configured with an admin username and password to limit access.

About

Appliance, Smartplug, OpenEVSE demand scheduler: Find the best time to run household loads

Resources

License

Stars

Watchers

Forks

Packages

No packages published