Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force sensor update to allow derivative helper to track current power draw. #275

Open
tabascoz opened this issue Dec 6, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@tabascoz
Copy link

tabascoz commented Dec 6, 2024

Hi there

I have some devices that does report Total Energy utilization but not Current Energy. So to be able to track real-time power, i created some derivative sensors and was able to get current power draw.

But the problem is that the derivative helper only updates it's value when source sensor updates itself. It looks like when i power off the AC the sensor does not update anymore and my derivative sensor is stuck with the last reading in watts.

Would it be possible to force sensor update within a given timeframe, let's say 1 min?

Cheers, Tabascoz

@mill1000 mill1000 added the enhancement New feature or request label Dec 7, 2024
@mill1000
Copy link
Owner

mill1000 commented Dec 11, 2024

Thanks for the suggestion. I'll have to think about this one. I know an entity can be configured to force updates to the state even if the value doesn't change, but I believe this has a side effect of causing it to take much more room in the database as each (identical) state is written.

And I'm only considering that as a potential problem as the state would be updated approx. every 15 seconds.

@mill1000
Copy link
Owner

I haven't figured out if it's possible, but a solution might be to force the sensor updates only when the device powers on/off.

@LotharWoman
Copy link

That would be a very good solution. My discharge sensor and the energy socket match quite well. But i can no longer select the time window in the sensor; this would lead to a smothered line, but then the problem described occurs.

grafik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants