|
| 1 | +# Energy Forecast Binding |
| 2 | + |
| 3 | +Binding provides AI price forecast 48h / 96h beyond day-ahead pricing with [Energy Forecast Service](https://www.energyforecast.de/). |
| 4 | +Check in beforehand if your [price zone](https://www.energyforecast.de/api-docs/index.html) is supported. |
| 5 | +[Registration](https://www.energyforecast.de/users/sign_up) is mandatory! |
| 6 | + |
| 7 | +## Binding Configuration |
| 8 | + |
| 9 | +### `price-forecast` Thing Configuration |
| 10 | + |
| 11 | +| Name | Type | Description | Default | Required | |
| 12 | +|-------------------|-----------|-----------------------------------------------------------------------------------|-----------|----------| |
| 13 | +| token | text | Token for energy forecast service to provide forecast data | N/A | yes | |
| 14 | +| zone | text | Bidding zone for price queries | N/A | yes | |
| 15 | +| fixCost | decimal | Net fix costs in ct/kWh added on top of the forecast price, e.g. 15,3 | 0 | no | |
| 16 | +| resolution | text | Resolution in ISO 8601 Duration format | PT15M | no | |
| 17 | +| refreshInterval | integer | Refresh interval in minutes. Check with service throttling | 180 | no | |
| 18 | +| errorLimit | integer | Limit error percentage values for better visualization | 0 | no | |
| 19 | + |
| 20 | +`token` needs to be generated after registration at [Energy Forecast Service](https://www.energyforecast.de/api_keys). |
| 21 | +`zone` from [API](https://www.energyforecast.de/api-docs/index.html) are given as options. |
| 22 | +`resolution` time resolution given as options. `PT15M` an `PT60M` are supported. |
| 23 | +`refreshInterval` given in minutes. Align this value with your [booked plan](https://www.energyforecast.de/pricing). |
| 24 | +`errorLimit` to avoid extraordinary error percentage values in `metric` group. Value `0` is no limit. |
| 25 | + |
| 26 | +#### Calculate Gross Price |
| 27 | + |
| 28 | +`fixCost` shall be net costs which will be added to the net energy price. |
| 29 | +If you've already one or more items holding fix cost values consider to [calculate the future prices in a rule](https://www.openhab.org/addons/bindings/energidataservice/#time-series). |
| 30 | +Use [VAT Transformation Service](https://www.openhab.org/addons/transformations/vat/) to calculate the gross price. |
| 31 | + |
| 32 | +## Channels |
| 33 | + |
| 34 | +All channels delivering `timeseries` information. |
| 35 | +Attaching items which are bound only to `rrd4j` persistence will not work. |
| 36 | +If you don't have a database installed [InMemory persistence](https://www.openhab.org/addons/persistence/inmemory/) can be used. |
| 37 | + |
| 38 | +### Group `price` |
| 39 | + |
| 40 | +| Channel | Type | Description | |
| 41 | +|---------------|-----------------------|---------------------------------------------------| |
| 42 | +| series | Number:EnergyPrice | Actual and future price series | |
| 43 | +| origin | Number | Originator of the price (market or forecast) | |
| 44 | + |
| 45 | +`series` delivers price information from 48h up to 96h into the future depending on your [booked plan](https://www.energyforecast.de/pricing). |
| 46 | +`origin` shows for every price the originator. |
| 47 | + |
| 48 | +- 0: Market |
| 49 | +- 1: AI Forecast |
| 50 | + |
| 51 | +### Group `metric` |
| 52 | + |
| 53 | +Metrics for AI price forecasts. |
| 54 | +Calculation is done on net prices without configured `fixCost` and any VAT applied via transformations/rules. |
| 55 | +See [Future Forecasting](https://www.future-forecasting.de/en/wiki/fehlermass/) for further description. |
| 56 | + |
| 57 | +**Note: After first installation these values will stay empty up to 1,5 days!** |
| 58 | +To compare market and forecast prices this time is needed until a market price is available. |
| 59 | + |
| 60 | +| Channel | Type | Description | |
| 61 | +|-------------------|-----------------------|-----------------------------------------------------------------------------------| |
| 62 | +| forecast | Number:EnergyPrice | AI forecast price series without any market prices | |
| 63 | +| forecast-error | Number:EnergyPrice | Difference between market and forecast price | |
| 64 | +| percent-error | Number:Dimensionless | Percentage error between market and forecast price | |
| 65 | +| mean-abs | Number:EnergyPrice | Mean absolute error showing the average of absolute forecast errors | |
| 66 | +| mean-abs-percent | Number:Dimensionless | Mean absolute percentage error showing the average of absolute percentage errors | |
| 67 | + |
| 68 | +`forecast` timeseries contains only forecast prices, market prices are excluded. |
| 69 | +`forecast-error` price difference between market and forecast price. |
| 70 | +`percent-error` is the `forecast-error` in percent. |
| 71 | +It can show extraordinary high values if market prices are around zero cost. |
| 72 | +If market price is 0.001 and forecast was 0.006 the percentage error is _high_ while `forecast-error` is quite low. |
| 73 | +For visualization you can limit these values with configuration `errorLimit`. |
| 74 | + |
| 75 | +`mean-abs` shows the average of all absolute `forecast-error` calculations as one value. |
| 76 | +`mean-abs-percent` shows the average of all absolute `percent-error` calculations as one value. |
| 77 | + |
| 78 | +## Full Example |
| 79 | + |
| 80 | +### `demo.things` |
| 81 | + |
| 82 | +```java |
| 83 | +Thing energyforecast:price-forecast:UID "Energy Forecast" [zone="YOUR_BIDDING_ZONE", token="YOUR_TOKEN", fixCost=12.3, resolution="PT15M", refreshInterval=180, errorLimit=0] |
| 84 | +``` |
| 85 | + |
| 86 | +### `demo.items` |
| 87 | + |
| 88 | +```java |
| 89 | +Number:EnergyPrice Energy_Forecast_Price_Series "Price Series" {channel="energyforecast:price-forecast:UID:price#series"} |
| 90 | +Number Energy_Forecast_Price_Origins "Price Origin" {channel="energyforecast:price-forecast:UID:price#origin"} |
| 91 | + |
| 92 | +Number:EnergyPrice Energy_Forecast_Forecast "Forecast" {channel="energyforecast:price-forecast:UID:metric#forecast"} |
| 93 | +Number:EnergyPrice Energy_Forecast_Forecast_Error "Forecast Error" {channel="energyforecast:price-forecast:UID:metric#forecast-error"} |
| 94 | +Number:Dimensionless Energy_Forecast_Percent_Error "Percent Error" {channel="energyforecast:price-forecast:UID:metric#percent-error"} |
| 95 | +Number:EnergyPrice Energy_Forecast_Mean_Absolute "Mean Absolute" {channel="energyforecast:price-forecast:UID:metric#mean-abs"} |
| 96 | +Number:Dimensionless Energy_Forecast_Mean_Absolute_Percent "Mean Absolute Percent" {channel="energyforecast:price-forecast:UID:metric#mean-abs-percent"} |
| 97 | +``` |
0 commit comments