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

[Konnected] Taking configured onValue into account when sending status to actuator #13360

Merged
merged 2 commits into from
Sep 10, 2022

Conversation

haavar
Copy link
Contributor

@haavar haavar commented Sep 7, 2022

Fixing a bug where the configured onValue for the channel was ignored when sending a status to the panel. The onValue configuration was only considered when receiving a status from the panel. Honoring the onValue configuration is important when using the standard relay boards recommended by Konnected that are low triggered.

@haavar
Copy link
Contributor Author

haavar commented Sep 8, 2022

@jlaur can you review this PR when you get a chance? I have a few other changes queued, and I want to avoid large PRs and merge conflicts.

Let me know if I can clarify anything.

Thanks.

@jlaur
Copy link
Contributor

jlaur commented Sep 8, 2022

can you review this PR when you get a chance?

Sure.

I have a few other changes queued, and I want to avoid large PRs and merge conflicts.

That's a good approach! And it will usually also result in faster reviews.

Let me know if I can clarify anything.

Perhaps you could mention this onValue in the README as currently it seems undocumented? That would help me also understanding the logic behind it.

@jlaur jlaur added the bug An unexpected problem or unintended behavior of an add-on label Sep 8, 2022
Haavar Valeur added 2 commits September 8, 2022 14:24
Signed-off-by: Haavar Valeur <haavar@haavar.com>
Signed-off-by: Haavar Valeur <haavar@haavar.com>
@haavar
Copy link
Contributor Author

haavar commented Sep 8, 2022

Thanks. I did not mean to nag, I just saw you approve my other (newer) PR, and wanted to see if there was any issues with this.

Added a paragraph about the onValue in the readme. The name for this parameter may not be the best. It's really for controlling whether the ON or OFF value in openhab corresponds to high or low signal on the panel.

I used this setting when connecting a low level triggered relay board. That means that the relay turns on when the signal is set to 0V (ground / low). Since the onValue setting was not taken into account, I had to remember that for that zone ON was turning the relay OFF and vise versa. It got pretty confusing when writing rules using that zone. After fixing the onValue settings, the rules became much easier to understand.

@jlaur
Copy link
Contributor

jlaur commented Sep 9, 2022

@haavar - I will let @volfan6415 as code owner respond to the open comment/review the PR before merging.

Copy link
Contributor

@jlaur jlaur left a comment

Choose a reason for hiding this comment

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

LGTM

@jlaur jlaur merged commit 9c534e3 into openhab:main Sep 10, 2022
@jlaur jlaur added this to the 3.4 milestone Sep 10, 2022
leifbladt pushed a commit to leifbladt/openhab-addons that referenced this pull request Oct 15, 2022
…s to actuator (openhab#13360)

* Taking configured onvalue into account when sending status to actuator
* Added documentation for onValue configuration

Signed-off-by: Haavar Valeur <haavar@haavar.com>
andan67 pushed a commit to andan67/openhab-addons that referenced this pull request Nov 6, 2022
…s to actuator (openhab#13360)

* Taking configured onvalue into account when sending status to actuator
* Added documentation for onValue configuration

Signed-off-by: Haavar Valeur <haavar@haavar.com>
andrasU pushed a commit to andrasU/openhab-addons that referenced this pull request Nov 12, 2022
…s to actuator (openhab#13360)

* Taking configured onvalue into account when sending status to actuator
* Added documentation for onValue configuration

Signed-off-by: Haavar Valeur <haavar@haavar.com>
Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
marcelGoerentz pushed a commit to marcelGoerentz/openhab-addons that referenced this pull request Nov 14, 2022
…s to actuator (openhab#13360)

* Taking configured onvalue into account when sending status to actuator
* Added documentation for onValue configuration

Signed-off-by: Haavar Valeur <haavar@haavar.com>
psmedley pushed a commit to psmedley/openhab-addons that referenced this pull request Feb 23, 2023
…s to actuator (openhab#13360)

* Taking configured onvalue into account when sending status to actuator
* Added documentation for onValue configuration

Signed-off-by: Haavar Valeur <haavar@haavar.com>
nemerdaud pushed a commit to nemerdaud/openhab-addons that referenced this pull request Feb 28, 2023
…s to actuator (openhab#13360)

* Taking configured onvalue into account when sending status to actuator
* Added documentation for onValue configuration

Signed-off-by: Haavar Valeur <haavar@haavar.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants