Skip to content

On selecting the different integration methods, what is "often"? #37597

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

Closed
henriknacka opened this issue Feb 20, 2025 · 3 comments
Closed

On selecting the different integration methods, what is "often"? #37597

henriknacka opened this issue Feb 20, 2025 · 3 comments
Assignees
Labels
integration: integration Stale The PR had no activity for quite some time, and is marked as Stale

Comments

@henriknacka
Copy link

Feedback

Thanks for some great and easy to find documentation.

Feedback: I'm good with math, but what is the intended meaning of this? "if the source updates often" is used to describe what method fits best. My source data updates every hour, is this considered often? Less often than what changes every five minutes, but I'm wondering if less often means on a daily basis perhaps?

URL

https://www.home-assistant.io/integrations/integration/

Version

2025.2.4

Additional information

No response

@home-assistant
Copy link

Hey there @dgomes, mind taking a look at this feedback as it has been labeled with an integration (integration) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of integration can trigger bot actions by commenting:

  • @home-assistant close Closes the feedback.
  • @home-assistant rename Awesome new title Renames the feedback.
  • @home-assistant reopen Reopen the feedback.
  • @home-assistant unassign integration Removes the current integration label and assignees on the feedback, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information) to the feedback.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information) on the feedback.

@dgomes
Copy link
Contributor

dgomes commented Feb 20, 2025

Well it all depends on what you are trying to integrate

Since Riemann Sum is an approximation of the integral through a sampling process, if you sample often if will lead to a better approximation.

But, if your source doesn't change that often, then some assumptions can be made and save your self some extra computations. This is specially the use case of resistive power loads where power is constant for basically all the period an appliance is on, for such use-case the left integration method fits better as it assumes exactly that the value has been stable from the onset.

Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved.
If this issue is still relevant, please let us know by leaving a comment 👍
This issue has now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the Stale The PR had no activity for quite some time, and is marked as Stale label Apr 21, 2025
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration: integration Stale The PR had no activity for quite some time, and is marked as Stale
Projects
None yet
Development

No branches or pull requests

2 participants