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
[velux] Implement new API, and log critical device errors #13212
Conversation
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one small comment
...enhab.binding.velux/src/main/java/org/openhab/binding/velux/internal/things/StatusReply.java
Outdated
Show resolved
Hide resolved
@lolodomo do you have any thoughts on this comment #13205 (comment) currently I am differentiating between log warn for critical errors and log debug for all others. But the decision "critical" is my personal judgement based on how I interpret the names of the errors; whereas by contrast @gs4711 is suggesting to log them all to warn. WDYT? |
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
…/openhab-addons into 13123-velux-fast-update
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
In today's commits I changed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Thanks @andrewfg !
INFO level should be rarely used. By the way, I will not delay the merge. If necessary, you can revert later. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with a remark about the new INFO log introduced.
@lolodomo many thanks for merging.
These events are extremely rare: so this requirement is indeed assured :)
They indicate something physically broken in the window/shutter: so this requirement is also assured :) |
Background
During the development and testing of #12618 the following things were discovered concerning the older API calls on which the original binding was based, versus newer API calls which were introduced later..
Consequently in #12618 it was decided to use the newer API calls for devices with vanes. However it was decided to keep using the older API calls for devices without vanes; although issue #13123 was opened to report the slow status updating on such devices.
In the meantime further testing confirmed that the newer API calls function correctly for both devices with and without vanes. And it also confirmed that the newer API does indeed speed up the real status updating of both types of devices.
Furthermore during the testing of #12618 it was noticed that the newer API call (in addition to the benefits mentioned above) also provides additional status information
StatusReply
concerning the physical state of the devices. Some of this status information concerns temporary faults, and some concerns critical faults in the devices that might require physical maintenance. For this reason issue #13205 was opened.PS it should also be noted that the Home Assistant integration is also based on the newer API calls; thus providing further test evidence that the newer calls function properly.
Solution
This PR does three things..
StatusReply
information from the newer API calls is used to log critical errors towarn
(and non critical errors todebug
).Fixes #13123
Fixes #13205
Signed-off-by: Andrew Fiddian-Green software@whitebear.ch