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

[profiles] Added 'Range' profile #2046

Merged
merged 4 commits into from
Feb 27, 2021

Conversation

cweitkamp
Copy link
Contributor

@cweitkamp cweitkamp commented Jan 1, 2021

  • Added 'Range' profile - maps ON to a Switch Item if value is between lower and upper bound

Currently the value is compared by lower <= value <= upper. We additionally can provide a configuration to change the comparison operators if needed.

Switch rangeResult0 {
    channel="..." [profile="system:range", lower=10, upper=40, inverted=true]
}
Switch rangeResult1 {
    channel="..." [profile="system:range", lower=10, upper=40]
}
Switch rangeResult2 {
    channel="..." [profile="system:range", lower="10 cm", upper="2 m"]
}

Signed-off-by: Christoph Weitkamp [email protected]

@cweitkamp cweitkamp added the enhancement An enhancement or new feature of the Core label Jan 1, 2021
@cweitkamp cweitkamp requested a review from a team as a code owner January 1, 2021 17:20
@cweitkamp cweitkamp added rebuild Triggers the Jenkins PR build and removed rebuild Triggers the Jenkins PR build labels Jan 1, 2021
Base automatically changed from master to main January 18, 2021 20:04
Signed-off-by: Christoph Weitkamp <[email protected]>
@cweitkamp cweitkamp force-pushed the feature-range-profile branch from 1610455 to 4fd320b Compare January 25, 2021 07:16
Signed-off-by: Christoph Weitkamp <[email protected]>
@cweitkamp cweitkamp added rebuild Triggers the Jenkins PR build and removed rebuild Triggers the Jenkins PR build labels Jan 25, 2021
…thing/profiles/SystemProfiles.java

Co-authored-by: Christoph Weitkamp <[email protected]>
Copy link
Member

@kaikreuzer kaikreuzer left a comment

Choose a reason for hiding this comment

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

lgtm, thanks!

@kaikreuzer kaikreuzer merged commit 9c0302e into openhab:main Feb 27, 2021
@kaikreuzer kaikreuzer added this to the 3.1 milestone Feb 27, 2021
@cweitkamp cweitkamp deleted the feature-range-profile branch February 27, 2021 09:32
splatch pushed a commit to ConnectorIO/copybara-hab-core that referenced this pull request Jul 11, 2023
Signed-off-by: Christoph Weitkamp <[email protected]>
GitOrigin-RevId: 9c0302e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature of the Core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants