**Electric vehicles and heat pumps are consumers which can very easily be used for demand-side management. In order to maximize use of local electricity generated by photovoltaics and minimize the amount of electricity from the grid, a scheduler plans and organizes time slots. **
This flow shows the concepts and introduces the actual scheduling function. It is designed as an easy to adopt prototype for intermidiate users of Node-RED. In order to get this scheduler working, a free RapidAPI-Key for the PV forecast system is required. You could get it here and register for the SolarEnergyPrediction API.
Open the SEP-API Call
node and its configuration. Create a new RapidAPI Credentials
with an API-key to use with the SolarEnergyPrediction service.
Configure your PV-generation plant in the PV Settings
node.
msg.payload = {
"lat": 49.3418836, // latitude of geolocation
"lon": 8.8006813, // longitude of geolocation
"deg": 35, // tilt degrees of pv panels (0=horiziontal)
"az": 45, // azimuth (0=south, 90 = west, -90 = east)
"wp": 5060 // WattPeak of generator
}
return msg;
Trigger the flow using the inject node Retrieve Forecast
. After a few seconds the scheduler calculates the optimum times and stores them in a context-data object of the flow called prediction
.
For easy re-use you might inject Retrieve Schedule
which will display a formal schedule with the on/off switches for the two pre-configured devices.
Additional devices might be added using the same schema. There is no UI!
Do not hesitate to contact dev@stromdao.com.