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

[opensprinkler] Fix excessive WARN in logs due to wifi dropouts, and current displays as 0 #16080

Merged
merged 3 commits into from
Dec 20, 2023

Conversation

Skinah
Copy link
Contributor

@Skinah Skinah commented Dec 19, 2023

The channel will display "0" when the current draw is 300mA, so users will think this is a bug. Changing the default state description allows it to be displayed as '0.3 A'

Also the WARN that is changed to DEBUG is very annoying in the logs as the sprinkler controller is often located outside a long way from the wifi and getting multiple WARNS when it has not yet failed all the allowed retries is IMHO not inline with logging guidelines.

Signed-off-by: Matthew Skinner matt@pcmus.com

Signed-off-by: Matthew Skinner <matt@pcmus.com>
Signed-off-by: Matthew Skinner <matt@pcmus.com>
@Skinah Skinah added the bug An unexpected problem or unintended behavior of an add-on label Dec 19, 2023
@Skinah Skinah changed the title [opensprinkler] Fix current draw displays as 0 due to rounding down. [opensprinkler] Fix excessive WARN in logs due to wifi dropouts, and current displays as 0. Dec 19, 2023
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.

Thanks! A few clarifications needed.

@jlaur jlaur changed the title [opensprinkler] Fix excessive WARN in logs due to wifi dropouts, and current displays as 0. [opensprinkler] Fix excessive WARN in logs due to wifi dropouts, and current displays as 0 Dec 19, 2023
…H-INF/thing/thing-types.xml

Co-authored-by: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Matthew Skinner <matt@pcmus.com>
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 3e7162d into openhab:main Dec 20, 2023
@jlaur jlaur added this to the 4.1 milestone Dec 20, 2023
@Skinah Skinah deleted the os branch December 27, 2023 00:48
austvik pushed a commit to austvik/openhab-addons that referenced this pull request Mar 27, 2024
…current displays as 0 (openhab#16080)

* Fix 300mA current draw will display as 0 due to rounding.
* Remove WARN logs when retries have not yet expired.

Signed-off-by: Matthew Skinner <matt@pcmus.com>
Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
joni1993 pushed a commit to joni1993/openhab-addons that referenced this pull request Oct 15, 2024
…current displays as 0 (openhab#16080)

* Fix 300mA current draw will display as 0 due to rounding.
* Remove WARN logs when retries have not yet expired.

Signed-off-by: Matthew Skinner <matt@pcmus.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