I have Shelly Plug S sockets - I need to control the power consumption of the connected device. Such as daily, weekly, monthly and annual consumption. Unfortunately, my socket does not have such entities. Actually, I only have two: (2) - Energy - completely useless, it measures the total energy consumed since the socket was restarted. (1) - Power - instantaneous value - is OK.
Question.
How to configure Shelly Plug S to get the valuable data I mentioned above?
Thanks for your immediate response I think I understand the use of: Riemann sum + Utility Meter. I only have two more specific questions (unfortunately I graduated over 20 years ago).
My source entity is: sensor.shelly_plug_aquariums_power
No, this is not necessary, since h is already the default value.
In case you expect that your source sensor will provide several subsequent values that are equal, you should opt for the left method to get accurate readings. Otherwise you can use the default value. Since you want to measure an aquarium, I am pretty sure the values keep changing and the default value is fine for you. Just try and check the results for plausibility.
I never used the cron option. I always just used the cycle option:
But the main advantage of this custom component is that you can easy create virtual energy sensors for entities without their own energy measurement and can combine them with real energy sensors into measurement groups. I don’t want to miss “powercalc” anymore