-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[radoneye] Add decay channel for HW v2 and simplify the code #18125
Conversation
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.
Thanks. Changes look good, it just needs some more:
- Thing upgrade instructiosn for the chagned and added channel
- Properties file need to be updated (mvn i18n:generate-default-translations)
- Optional: would be nice if you use this opportunity to fix some of the compiler null warnigs.
970d6f9
to
0eea26b
Compare
@lsiepel thanks for the input, i have updated the PR. |
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.
I've had a look mostly at the update instructions, and have added a few comments.
The other channel has been added to the instructions.xml, could you please double check the id in the file.
I did read the instructions to the XML format at https://www.openhab.org/docs/developer/bindings/thing-xml.html#updating-thing-types but im still unsure.
It's important to test the update instructions as otherwise they can do more harm than good. You could create a managed Thing with the binding version before this PR (e.g. from the distribution), then install this version and verify that the new channel is added to your Thing automatically, and that the existing channel is updated with the correct dimension.
...les/org.openhab.binding.bluetooth.radoneye/src/main/resources/OH-INF/update/instructions.xml
Show resolved
Hide resolved
...les/org.openhab.binding.bluetooth.radoneye/src/main/resources/OH-INF/update/instructions.xml
Outdated
Show resolved
Hide resolved
...les/org.openhab.binding.bluetooth.radoneye/src/main/resources/OH-INF/update/instructions.xml
Outdated
Show resolved
Hide resolved
...les/org.openhab.binding.bluetooth.radoneye/src/main/resources/OH-INF/update/instructions.xml
Show resolved
Hide resolved
For reference regarding the dimension fix: openhab/openhab-core#3608 |
0eea26b
to
d0463ab
Compare
Signed-off-by: Jörg Sautter <joerg.sautter@gmx.net>
d0463ab
to
8ea9170
Compare
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.
Signed-off-by: Jörg Sautter <joerg.sautter@gmx.net> Signed-off-by: Christian Koch <78686276+chilobo@users.noreply.github.com>
This PR does fix the randoneye integration and simplifies the code by using the
ConnectedBluetoothHandler
.For V2 devices a new channel
decay
is available showing the number of decays in the last timeframe.Signed-off-by: Jörg Sautter joerg.sautter@gmx.net