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
[mybmw] Improve data refresh handling #16418
[mybmw] Improve data refresh handling #16418
Conversation
disable updating by setting the refresh-interval to 0 enable force update by adding some switches Signed-off-by: Martin Grassl <martin.grassl@digital-filestore.de>
added translations Signed-off-by: Martin Grassl <martin.grassl@digital-filestore.de>
for forcing update Signed-off-by: Martin Grassl <martin.grassl@digital-filestore.de>
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 for the improvements. Left some comments.
...g.openhab.binding.mybmw/src/main/java/org/openhab/binding/mybmw/internal/MyBMWConstants.java
Show resolved
Hide resolved
bundles/org.openhab.binding.mybmw/src/main/resources/OH-INF/update/thing-update.xml
Show resolved
Hide resolved
Signed-off-by: Martin Grassl <martin.grassl@digital-filestore.de>
Signed-off-by: Martin Grassl <martin.grassl@digital-filestore.de>
Signed-off-by: Martin Grassl <martin.grassl@digital-filestore.de>
Signed-off-by: Martin Grassl <martin.grassl@digital-filestore.de>
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.
Changes look good. Last minor comment.
Co-authored-by: lsiepel <leosiepel@gmail.com> Signed-off-by: Martin Grassl <martin.grassl@digital-filestore.de>
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, @mherwege or @ntruchsess any comments before merge?
| Fuel Range Radius | range-radius-fuel | Number:Length | X | X | X | | | ||
| Electric Range Radius | range-radius-electric | Number:Length | | X | X | X | | ||
| Hybrid Range Radius | range-radius-hybrid | Number:Length | | X | X | | | ||
| Channel ID | Type | conv | phev | bev_rex | bev | |
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 am OK removing the label, but I would then make sure there is a description everywhere. E.g. soc
may not be easily understood. I think you can move the label in this table to a description column, making it consistent everywhere.
The same is true everywhere you removed label where there is no description column.
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.
You're right I'll add some documentation
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.
done
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.
Much better, but maybe for consistency, capitalize the first letter in each description (or remove capital everywhere)?
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.
done
...s/org.openhab.binding.mybmw/src/main/resources/OH-INF/thing/vehicle-update-channel-types.xml
Outdated
Show resolved
Hide resolved
...s/org.openhab.binding.mybmw/src/main/resources/OH-INF/thing/vehicle-update-channel-types.xml
Outdated
Show resolved
Hide resolved
...s/org.openhab.binding.mybmw/src/main/resources/OH-INF/thing/vehicle-update-channel-types.xml
Outdated
Show resolved
Hide resolved
...b.binding.mybmw/src/main/java/org/openhab/binding/mybmw/internal/handler/VehicleHandler.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Mark Herwege <mherwege@users.noreply.github.com> Signed-off-by: Martin Grassl <martin.grassl@digital-filestore.de>
Signed-off-by: Martin Grassl <martin.grassl@digital-filestore.de>
Signed-off-by: Martin Grassl <martin.grassl@digital-filestore.de>
Signed-off-by: Martin Grassl <martin.grassl@digital-filestore.de>
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
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
Thanks! |
* [mybmw] add functionality for updating disable updating by setting the refresh-interval to 0 enable force update by adding some switches Signed-off-by: Martin Grassl <martin.grassl@digital-filestore.de> Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
This PR will add some functionalities:
Resolves: #16351