Skip to article frontmatterSkip to article content
Enhanced integrations

Riemann sum integral

The only integration that gives you energy if you provide it power.

The Home Assistant Riemann sum integral icon.



The Riemann sum integral helper calculates the Riemann sum of the values provided by a source sensor. The Riemann sum is an approximation of an integral by a finite sum.

This is most often used to calculate the total energy usage of a power meter by using the power meter’s power consumption and the time between the measurements.

Devices & entitiesΒΆ

Spook does not provide any new devices or entities for this integration.

ServicesΒΆ

Spook does not provide service enhancements for this integration.

RepairsΒΆ

While Spook is floating around in your Home Assistant instance, it will raise repair issues if it has found something that is not right.

Unknown source entityΒΆ

Spook inspects all Riemann sum integral created entities, and looks for cases where a source sensor entity is no longer present. If Spook finds such a case, it will raise a repair issue, informing you about the problematic entity.

To resolve the raised issue, you can either remove the helper or fix the referenced source entity ID. Spook will automatically remove the repair issue once the issue is fixed.

Features requests, ideas, and supportΒΆ

If you have an idea on how to further enhance this integration, for example, by adding a new service, entity, or repairs detection; feel free to let us know in our discussion forums.

Are you stuck using these new features? Or maybe you’ve run into a bug? Please check the Support page on where to go for help.