Frequency of sensor updates

I have been searching the forum for quite a while, but cannot find an answer to the following question: how can you determine how often a sensor value gets updated? And the followup question: can you somehow increase/decrease this?

Question behind the question is that I use an energy meter to count the amount of espresso’s I am making per day (to tame my addiction a bit), but since a few months this doesn’t work reliably any longer. I believe the culprit is in the amount of sensor updates (making an espresso only takes a short while :-))

it really depends on the integration that created the sensor as to how often it updates.

What is the sensor integration?

In this case it is a Broadlink SP3

I’m not sure but looking at the base code for that integration the scan interval looks like it might be every 10 seconds.

Could you, for my learning purposes, indicate where you found that? I have been browsing through the code at Github, but couldn’t find any relevant things (but I am also not a very experienced coder :slight_smile: )

Looks like one minute to me. Line 43 (at the moment):

I missed that line so you are probably correct.

I saw line 97 of the same file and got 10s from there. But it looks like it’s only for “A1” devices?