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

[transform.basicprofiles] Added Debounce Profile - Counting Strategy #113

Merged
merged 2 commits into from
May 27, 2021

Conversation

cweitkamp
Copy link
Contributor

@cweitkamp cweitkamp commented May 25, 2021

  • Added Debounce Profile - Counting Strategy

This is a basic approach to debounce a state update via counting strategy. As mentioned in the related OHC issue there are other strategies to archive similar results too (e.g. time-based debouncing).

Signed-off-by: Christoph Weitkamp github@christophweitkamp.de

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>

<config-description uri="profile:basic-profiles:debounce-counting">
<parameter name="numberOfChanges" type="integer" min="0" step="1">
<label>Number of Changes</label>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<label>Number of Changes</label>
<label>Number Of Changes</label>

@@ -8,6 +8,10 @@ profile-type.basic-profiles.toggle-switch.label = Generic Toggle Switch
profile.config.basic-profiles.toggle-switch.events.label = Ereignisse
profile.config.basic-profiles.toggle-switch.events.description = Kommagetrennte Liste der Ereignisse, die das Profil verfolgen soll.

profile-type.basic-profiles.debounce-counting.label = Debounce (Z�hler)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
profile-type.basic-profiles.debounce-counting.label = Debounce (Z�hler)
profile-type.basic-profiles.debounce-counting.label = Entprellen (Z�hler)

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
@J-N-K J-N-K changed the title Added Debounce Profile - Counting Strategy [transform.basicprofiles] Added Debounce Profile - Counting Strategy May 27, 2021
@J-N-K J-N-K added the enhancement New feature or request label May 27, 2021
@J-N-K J-N-K added this to the 3.1.2 milestone May 27, 2021
@J-N-K J-N-K merged commit 0e753d1 into smarthomej:3.2.x May 27, 2021
J-N-K pushed a commit that referenced this pull request May 27, 2021
…113)

* Added Debounce Profile - Counting Strategy

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
@cweitkamp cweitkamp deleted the feature-debounce-profile branch May 27, 2021 10:13
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

Successfully merging this pull request may close these issues.

None yet

2 participants