Not fully related question to the binding itself - but I have noticed that energydataservice does not update it’s prediction prices at +/-13:00 anymore. Since probably two days ago. I see in the binding logs that today’s stats arrived just after midnight - not yesterday at noon. Do you know if Energi Data Service doing some changes on the policy ? it’s more difficult to predict for next day when next day data comes actually at the beginning of the next day
I have to admit that I also checked their site for status yesterday without finding any news, so it seems their update was quite late indeed. But it was pretty clear they were having issues. When browsing the dataset, there were no day-ahead prices for any price area.
Yeap - I also checked Dataset and even API - data was ending on the last hour of day - no next day data. Somehow did not find anything anywhere on Danish websites - so wrote here hoping you know more But okey - hopefully they fix it soon.
I think I got it set up acordingly to the documentation, defined items are being updated as expected.
However using the Thing Actions teases me a bit.
For charging my PHEV, depending on the energy price and how low the battery state is, I would like to find the best X hours for charging. I expect to use the " calculateCheapestPeriod from Duration" Thing Action for that purpose. And that’s where I get a bit stuck.
Do I miunderstand the documentation, or miss something, when I expect to achive it by putting something like this in a rules file?
val actions = getActions("energidataservice", "energidataservice:service:energidataservice")
var Map<String, Object> result = actions.calculateCheapestPeriod(now.toInstant(), now.plusHours(12).toInstant(), Duration.ofMinutes(90))
rule "TestEnergiBeregning"
when
Item TestVenstre changed from OFF to ON
then
executeCommandLine(actions); Thread::sleep(5000)
end
getActions needs YOUR_THING_UID. Copy the uid when from the thing list in UI.
The lines on top of your example needs to be inside of the rule
In addition if you want a price you need to add power value. Shown in powerResult below
import java.util.Map;
rule "TestEnergiBeregning"
when
Item TestVenstre changed from OFF to ON
then
val actions = getActions("energidataservice", "YOUR_THING_UID")
// log output shall be something like org.openhab.binding.energidataservice.internal.action.EnergiDataServiceActions@xyz - not null!
logInfo("TestEnergiBeregning", actions.toString)
var Map<String, Object> durationResult = actions.calculateCheapestPeriod(now.toInstant(), now.plusHours(12).toInstant(), Duration.ofMinutes(90))
// log output will show Map with keys and values as String
logInfo("TestEnergiBeregning", durationResult.toString)
// if your wallbox is charging with 11kW you can use the following line to get the cheapest period for this power value
var Map<String, Object> powerResult = actions.calculateCheapestPeriod(now.toInstant(), now.plusHours(12).toInstant(), Duration.ofMinutes(90),11000|W)
// log output will show Map with keys and values as String
logInfo("TestEnergiBeregning", powerResult.toString)
end
I can see the spotprice for DK1 is in the new 15 minutes interval from 1. october.
Is there any option to keep / get the hourly spotprice for a while, until N1 allows for 15-minutes spotprice on my adress? To my understanding, the “old” 1 hour spotprice should be the average of the four 15 minutes periods for that particular hour.
I have the same understanding, but don’t remember where I read that. I need to verify, and then think about the best way to provide such a calculation, i.e. whether to build that into the binding itself, or whether it can be accomplished in an elegant way outside of the binding. I’ll get back to this thread regarding this. I don’t think my contract is automatically changed to the new resolution, so I probably have the same need.
Here is how Andel Enrgi handles 15min vs 1hour price: Andel timepris vs 15 min
”… Fra 1. oktober beregnes timeprisen på TimeEnergi som gennemsnittet af de fire gange 15 minutter i den pågældende time. …”
Okay, thanks.. Is 4.3.6 jar file located somewhere?
I might upgrade my system to 4.3.7 (latest 4.x version). But I need to take some time, as I cant do it the usual way via openhabian.