- The device should be able to access energidataservice.dk, to ascertain the electricity prices for the day.
- A near realtime measurement of total power consumption, at the installed site, should be made available to the user.
- Current consumption in watt, historic consumption (kWHr) and accumulated price for the current day, should be presented on a display.
- Hourly prices for the next day should be fetched and forwarded to the display module.
- Transport prices must be taken into account for the given area provider, in the form of variables that can added to the cost
Processor
- Particle Argon
- Screen
Sensors
- LDR or light Sensitive Diode
Supply
- 5V Power supply
- Screen to display current consumption og low price hours
https://api.energidataservice.dk/dataset/Elspotprices?offset=0&start={{{year}}}-{{{month}}}-{{{day}}}T{{{hour}}}:00&end={{{year}}}-{{{month}}}-{{{day_two}}}T00:00&filter=%7B%22PriceArea%22:%22DK2%22%7D&sort=HourUTC%20ASC&timezone=dk
This project can work with Particle webhooks or direct HTTP requests to api.energidataservice.dk. When using direct HTTP requests, no external setup is required with regards to getting electricity prices
In Particle Webhook setup, use the following response template to extract the data needed:
***{{#records}}!{{HourDK}},{{SpotPriceDKK}}{{/records}}***
This project is intented to work with a Particle Argon (Responsible for getting electricity prices and monitoring power consumption) as well as an ESP32 with a tft-display.
If an ESP32 is not available, the Argon code can be modified to use MQTT instead. This is done by uncommenting USEMQTT in ElecPrice.ino
// #define USEMQTT
The user will also need to change
#define HOST "homeassistant.local"
#define PORT 1883
#define MQTT_USERNAME "mqtt"
#define MQTT_PASSWORD "mqtt"
in ElecPrice.ino to fit whatever MQTT-Broker the user would wish to utilize