Adding up the power consumption of sockets in watts

Good morning everyone,

I need your help please. I can’t figure out how to use variables to calculate the power consumption of my smart sockets and display it “live”. It is possible to display the consumption for each tile, e.g. using the hero attribute, but I would like a tile where the total power of sockets is added up. I can’t figure out the formula or the rule. Let’s take the following as an example:

Kitchen:

  • Switch socket light 1
  • Switch socket light 2
  • Switch socket refrigerator

I now need a tile where the power in watts is added up “live”.

Thank you in advance :wink:

I did something simulat.

I made a rule thst triggers with change in any of this “things”
Then add the value for each in a variable
Ex power from socket1 to $Socket1 (variable)
And socket2 to $Socket2

In the end add all variable togeter. Mine turned out like this: