esphome / feature-requests

ESPHome Feature Request Tracker
https://esphome.io/
417 stars 26 forks source link

Implement two different update intervals for ATM90e32 energy sensors #2608

Open Cougar opened 8 months ago

Cougar commented 8 months ago

Related with #1087

Describe the problem you have/What new integration you would like

I'd like to have two different update intervals. One for accumulated values like energy and another for instant values like voltage or current. By default these could be equal.

Please describe your use case for this integration and alternatives you've tried:

I would like to see a near real time voltage and current readings (update interval 1-5 sec) without reading energy sensor so often. Reading energy more often than necessary has two drawbacks:

  1. not much time to integrate data causes worse final precision after adding a lot of very small floats
  2. frequent sensor updates increase database size (in Home Assistant)

Actually I don't know any good use case for energy measurements more frequent than once a hour.

Additional context

Wold be good to hear if anyone else has similar ideas or if any other component works like this.

nagyrobi commented 8 months ago

Actually I don't know any good use case for energy measurements more frequent than once a hour.

15 minutes will be the default time window for electrical energy providers for dynamic pricing scenarios, where one will have to pay more in peak periods.