Energy Consumption Graph in OpenRemote for Different Time Intervals

I’m new to OpenRemote and this is my first post here. I’m excited to join the community and learn from all of you!

I need to create a graph to visualize energy consumption at different time intervals: last 15 minutes, last hour, last day, and last month. I have a cumulative electricity counter value that is updated via MQTT.

My goal is to use this counter to show the energy consumption over these different periods.

Could someone guide me on how to best achieve this using OpenRemote? Specifically:

  • How can I use the cumulative counter to calculate and display consumption over these intervals?
  • Are there existing features or data functions in OpenRemote to support this kind of graph?

Any help or examples would be greatly appreciated!

1 Like

Hey @itorres ,

From what I understand, you receive a value that is the cumulative energy consumption, and you want to graph the differences (so not the cumulative value) on those intervals.

What you could do, is use a groovy rule to calculate the energy difference that you want to calculate (current minus old value) and store that into a separate attribute. You then store those datapoints, and display them on various graphs on the insights tab.

I hope that gives you a starting point!