Questions around update cycle #878
Replies: 1 comment 2 replies
-
Not sure why the power sensor is updating every 30 seconds when you set To answer you question when the power state changes: [x] directly when the state from input_boolean.gartenbewasserung is changing I marked all, but I need to explain a little more.
I am 99% sure it changes (calculates new integration) when the power sensor changes state. Not sure if it is also changing periodical, need to have a look into the code of the riemann integration. edit |
Beta Was this translation helpful? Give feedback.
-
Can someone perhaps explain, when and how often the different variants from of powercalc sensors are updated (with regards to the Riemann discussion and other questions in my mind for my "best setup"?
a. I saw the config
scan_interval
and the comment "Interval at which the sensor state is updated, even when the power value stays the same. Format HH:MM:SS".To which sensor this applies to? The Power? So e.g. I have a sensor
I assumed, that with global setting
scan_interval: 00:01:00
the power sensor get a new data point (last_updated) every 1 minute. But it is updating every 30 seconds. Nothing I would care about, but this question (and the related next ones) are only to understand the logic and to choose the best settings in my setup and requirements.b. And if the state of the referenced entity, here
light.wohnzimmerschrank
is changing, that the power sensor is designed to update directly outside the 1 minutes 30 seconds intervall (see a.)?c. And if I have a template like
then, the power entity is designed to update, everytime (multiple selects are allowed 😉)
[ ] directly when the state from
input_boolean.gartenbewasserung
is changing[ ] every 1 minute / 30 seconds (see a.)
[ ] directly every time when the state from
sensor.gartenbewasserung_stromstarke
is changing andinput_boolean.gartenbewasserung == on
[ ] directly every time when the state from
sensor.gartenbewasserung_stromstarke
is changing andinput_boolean.gartenbewasserung == off
as well (even if this would not have influence on the power sensor)d. and the energy_sensor is updating every time the power-sensor get's updated? Or is there another interval relevant.
Beta Was this translation helpful? Give feedback.
All reactions