This binding integrates the Danish service Energi Data Service, making data available as:
Channels with current prices.
An advanced channel with future prices in JSON format.
Thing action for importing the prices directly into rules.
In this initial version, electricity prices are in focus, specifically the datasets Elspotprices and DatahubPricelist.
The binding is mainly targeting Denmark because of the tariffs and taxes provided which are specific to the Danish market and in currency DKK. However, spot prices can also be retrieved for other regions, for example Norway and Sweden.
Features
Optimized service calls: Spot prices are retrieved once per day and tariffs only upon expiry (usually months/years).
Error handing: Policies for retry strategies are in place to make sure data will be retrieved as soon as possible after failed calls. This includes exponential back-off with jitter.
Channel configuration for adding VAT to prices based on openHAB regional settings.
Grid company is selectable in configuration.
Pre-configured filters are included for all known grid companies.
Filters can be overridden by channel configuration.
Spot prices and all tariffs are supported.
Properties shows number of remaining calls as well as timestamp of last/next call.
Actions for getting prices and performing calculations.
Changelog
Version 0.1
Initial release
Version 0.2
Rename all channels
Remove VAT channel configuration (please use VAT transformation instead)
I made this post and another post for a 3.4 backport:
Unfortunately both my 3.4.2 production installation and 4.0 test/development installation sees the 3.4 version. I don’t know what I did wrong, but for 4.0 the JAR can be downloaded instead.
I did some more testing and found that [4.0.0;) is not a valid range either.
It does consider micro versions as well, so what seems to work better is [4.0.0.0;4.1.0.0)
That allows for any snapshot/milestone build (and excludes 4.1.0 snapshots) but it becomes trickier to come up with a range whenever compatibility is lost after a certain date, milestone.
You can experiment with this like in the BundleVersionTest by adding a test like: