Plugwise last_hour_energy for 15 minutes values error

I use the Plugwise Binding and everything seems to work fine, but one thing is still not working for me.
A while ago, i used the python script to get the data from my plugwise. within the python binding it was possible to change the timer for “last hour energy”. Therefore, my plugwise no saves a value every 15 minutes instead of every hour.

The problem is that the binding does not like it :slight_smile: In the log i can see the following:
23:17:37.747 [INFO ] [marthome.event.ItemStateChangedEvent] - KHlschrank_LastHourEnergy changed from 0.00027882094519450284 to 0.00025974651542461904
23:17:37.902 [INFO ] [marthome.event.ItemStateChangedEvent] - KHlschrank_LastHourEnergy changed from 0.00025974651542461904 to 0.00027882094519450284

the problem is that the first value is the value for the last 15 minutes, but it will be overwritten by an older one just a few ms later. because there is no good possibility to match the value with the right timestamp (there is the same problem) i am a bit helpless. maybe i miss something here.

if anybody knows a solution i would be very happy :slight_smile:

but thanks for the amazing work so far!!!

There is support for custom measurement intervals in the new OH2 native Plugwise Binding which you might want to give a try.

See also the new Plugwise Binding documentation.

The new Plugwise Binding is part of the 2.2.0-SNAPSHOT release. Just make sure you configure the measurementInterval of your Circles to 15 minutes.

Hey, thanks that worked very well, but there is one problem. the clock of three plugwise are wrong and these three plugwise have the same problem (two changes at one time):

22:40:41.191 [INFO ] [marthome.event.ItemStateChangedEvent] - KHlschrank_LastHourEnergy changed from 0.01202054376898652 to 0.00006493662885615476
22:40:41.216 [INFO ] [marthome.event.ItemStateChangedEvent] - KHlschrank_LastHourEnergyTime changed from 2017-09-10T23:15:00.000+0200 to 2017-09-10T22:30:00.000+0200
22:40:41.361 [INFO ] [marthome.event.ItemStateChangedEvent] - KHlschrank_LastHourEnergy changed from 0.00006493662885615476 to 0.01202054376898652
22:40:41.382 [INFO ] [marthome.event.ItemStateChangedEvent] - KHlschrank_LastHourEnergyTime changed from 2017-09-10T22:30:00.000+0200 to 2017-09-10T23:15:00.000+0200

is there a routine to sync the clock? or do i have to sync them manually with the source software?

I’ve submitted a fix for this last week and it was merged on September 7th. It looks like the fix is part of the latest 2.2.0-SNAPSHOT build (#1035). So you might want to upgrade to the latest greatest! :slight_smile:

Syncing with Source should also fix it.

See this PR:

very nice work! i will test it!

is there a link to download the *.jar separately for this newest version?

This link downloads the latest stable build of the 2.2.0-SNAPSHOT Plugwise Binding directly from the build server.