#Sense Integration sample frequency

12 messages · Page 1 of 1 (latest)

sacred tundra
#

Hey all,
I'm using a Sense unit and the Sense integration to get my electrical usage. The integration works as it says on the tin (https://www.home-assistant.io/integrations/sense), specifically the sensors are updated every 60 seconds. This is usually fine, however my elec utility's rate structure requires me to integrate the usage over 30 minute windows for a demand charge. I finally tracked down why I'm not able to predict the bill, and that is because 60 second updates are not fast enough. You can see it in the plot - when something like my oven runs, I get aliasing on the HA integration and that makes my integral value wrong. The utility meter is apparently integrating on a faster delta time.

In short, is there a way I can either tweak the integration's scan rate, request that capability from the developer, or work around this another way?
Thanks in advance!

daring smelt
#

Why not use the usage energy sensors, they are likely to be more accurate for energy consumption than integrating a low resolution power sensor

sacred tundra
daring smelt
#

The integration page says every 5 minutes... But that could be your meter not updating the server it's reading from which is a different issue

sacred tundra
#

Indeed, I was expecting 5min. Hm.

daring smelt
#

You might want to check the sensors last updated (should change every 5 mins to show it checked with the server) and last changed (on the hour when it changes) which would indicate it's the sensor's issue, if they both only update once an hour I'd look into raising an issue on github because that's behaving incorrectly

sacred tundra
#

if I'm doing it right, last updated and last changed were both some 45 minutes ago for sensor.daily_from_grid

daring smelt
#

That doesn't sound right. I'd go raise an issue on github about it, as either it's not updating right, or they haven't implemented those timestamps right 🙂

sacred tundra
#

Appreciate you being responsive and helping me out!

sacred tundra
daring smelt
#

ah i see, that's annoying