-
-
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
[mybmw] Upgrade to new BMW API #14452
Conversation
to make it work the code has been refactored and due to API changes some improvements could be made. These include: - (improvement) fingerprint generation: You can take a look at the README how to create a fingerprint more conveniently. - (change) changed channel: charge-info has been renamed to charge-remaining - (improvement) added channels: estimated-fuel-l-100km and estimated-fuel-mpg which calculates the estimated fuel consumption based on the range and remaining fuel liters - unfortunately such a calculation is not available for EVs as there is no information about the capacity of the battery. - (improvement) added channel last-fetched: the last-updated timestamp is showing by when the last update of the vehicle happened. As right now you can not see from the channels if a thing is offline due to connection issues, you can check now if last-fetched is more than 5 minutes ago to identify an issue - (fixed) remote command typos fixed Co-authored-by: Mark Herwege <[email protected]> Fixes openhab#14065 Also-by: Mark Herwege <[email protected]> Signed-off-by: Martin Grassl <[email protected]>
Co-authored-by: Mark Herwege [email protected] Also-by: Mark Herwege [email protected] Signed-off-by: Martin Grassl [email protected] Signed-off-by: Martin Grassl <[email protected]>
Co-authored-by: Jari Likonen <[email protected]> Also-by: Jari Likonen <[email protected]> Signed-off-by: Martin Grassl <[email protected]>
Signed-off-by: Martin Grassl <[email protected]>
@martingrassl - thank you! I have briefly looked at the README, and I noticed that you have reverted the fixes made in #13866. So please go through that and revert those changes. |
@jlaur Oh thanks for pointing that out. I didn't see that in my comparisons. I'll change it tomorrow, sorry for that. |
according to openhab#13866 Signed-off-by: Martin Grassl <[email protected]>
Hi @jlaur, I fixed the markdown issues according to the changes of #13866. I installed the markdownlint extension to VSCode and it looks like it applies the same rules. I'm just wondering if this linting check could be somehow integrated into the Maven process so that it fails when there is an issue like with spotless for Java code... |
See here: #13858 |
fix merge conflict Signed-off-by: Martin Grassl <[email protected]>
Thx for taking the task to bring this binding in working mode again. As stated in the communnity I don't have a BMW anymore so I'm not able test the functionality anymore- |
@weymann - since you just approved of this, @martingrassl - if you agree, please add yourself to the CODEOWNERS file in context of this 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.
Modify CODEOWNERS file and put yourself as codeowner. You can also remove me due to the fact I'm not in charge anymore.
Also-by: Mark Herwege <[email protected]> Signed-off-by: Martin Grassl <[email protected]>
Also-by: Mark Herwege <[email protected]> Signed-off-by: Martin Grassl <[email protected]>
sorry for the confusion - GitHub showed an error unknown user... Also-by: Mark Herwege <[email protected]> Signed-off-by: Martin Grassl <[email protected]>
…_BMW_API_40 Signed-off-by: Martin Grassl <[email protected]>
new Jetty lib not yet available in jfrog Signed-off-by: Martin Grassl <[email protected]>
Signed-off-by: Martin Grassl <[email protected]>
Signed-off-by: Martin Grassl <[email protected]>
…nding/mybmw/internal/handler/VehicleHandler.java Co-authored-by: Jacob Laursen <[email protected]> Signed-off-by: Martin Grassl <[email protected]>
Co-authored-by: Jacob Laursen <[email protected]> Signed-off-by: Martin Grassl <[email protected]>
Co-authored-by: Jacob Laursen <[email protected]> Signed-off-by: Martin Grassl <[email protected]>
…nding/mybmw/internal/handler/auth/MyBMWTokenController.java Co-authored-by: Jacob Laursen <[email protected]> Signed-off-by: Martin Grassl <[email protected]>
Ok I missed the hidden ones. I was not aware that GH hides unresolved ones as well... thanks for pointing this out. I'll fix them today evening. |
Signed-off-by: Martin Grassl <[email protected]>
Signed-off-by: Martin Grassl <[email protected]>
Signed-off-by: Martin Grassl <[email protected]>
Signed-off-by: Martin Grassl <[email protected]>
Signed-off-by: Martin Grassl <[email protected]>
Signed-off-by: Martin Grassl <[email protected]>
Signed-off-by: Martin Grassl <[email protected]>
Signed-off-by: Martin Grassl <[email protected]>
Signed-off-by: Martin Grassl <[email protected]>
bundles/org.openhab.binding.mybmw/src/main/resources/OH-INF/i18n/mybmw.properties
Outdated
Show resolved
Hide resolved
…8n/mybmw.properties Signed-off-by: Jacob Laursen <[email protected]>
Signed-off-by: Martin Grassl <[email protected]>
Signed-off-by: Martin Grassl <[email protected]>
Signed-off-by: Martin Grassl <[email protected]>
Signed-off-by: Jacob Laursen <[email protected]>
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. @martingrassl - thanks again for the contribution! Is the PR ready for being merged from your perspective?
@jlaur from my perspective it is ready for a long time - it would be a great Christmas present if it would be merged into 4.1.0 ;) thanks for your thorough review and the time you put into doing that, your comments helped me understanding the matter a bit better! Now it just looks like @lsiepel has to approve the review, right? |
It seems all comments from @lsiepel are resolved, and that there are no further comments: #14452 (review) (and btw, thanks for the review, @lsiepel 👍) So we can merge, and get this binding working again. |
this PR depends on openhab/openhab-addons#14452 Signed-off-by: Martin Grassl <[email protected]>
* [mybmw] fix not working binding due to API update to make it work the code has been refactored and due to API changes some improvements could be made. These include: - (improvement) fingerprint generation: You can take a look at the README how to create a fingerprint more conveniently. - (change) changed channel: charge-info has been renamed to charge-remaining - (improvement) added channels: estimated-fuel-l-100km and estimated-fuel-mpg which calculates the estimated fuel consumption based on the range and remaining fuel liters - unfortunately such a calculation is not available for EVs as there is no information about the capacity of the battery. - (improvement) added channel last-fetched: the last-updated timestamp is showing by when the last update of the vehicle happened. As right now you can not see from the channels if a thing is offline due to connection issues, you can check now if last-fetched is more than 5 minutes ago to identify an issue - (fixed) remote command typos fixed Fixes openhab#14065 Also-by: Mark Herwege <[email protected]> Signed-off-by: Martin Grassl <[email protected]> Signed-off-by: Jørgen Austvik <[email protected]>
* [mybmw] fix not working binding due to API update to make it work the code has been refactored and due to API changes some improvements could be made. These include: - (improvement) fingerprint generation: You can take a look at the README how to create a fingerprint more conveniently. - (change) changed channel: charge-info has been renamed to charge-remaining - (improvement) added channels: estimated-fuel-l-100km and estimated-fuel-mpg which calculates the estimated fuel consumption based on the range and remaining fuel liters - unfortunately such a calculation is not available for EVs as there is no information about the capacity of the battery. - (improvement) added channel last-fetched: the last-updated timestamp is showing by when the last update of the vehicle happened. As right now you can not see from the channels if a thing is offline due to connection issues, you can check now if last-fetched is more than 5 minutes ago to identify an issue - (fixed) remote command typos fixed Fixes openhab#14065 Also-by: Mark Herwege <[email protected]> Signed-off-by: Martin Grassl <[email protected]>
This is mainly a bugfix PR to resolve the failing backend requests.
To make it work the code has been refactored and due to API changes some improvements could be made. These include:
Co-authored-by: Mark Herwege [email protected]
Fixes #14065
Also-by: Mark Herwege [email protected]
Signed-off-by: Martin Grassl [email protected]