-
-
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
[renault] Add channel for pausing/resuming charging #14527
Conversation
This pull request has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/betatest-renault-ze-services-binding/72226/238 |
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 PR. Please see my proposal about modeling this pause/resume mode into a channel.
bundles/org.openhab.binding.renault/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.renault/src/main/resources/OH-INF/i18n/renault_fr.properties
Outdated
Show resolved
Hide resolved
@fifipil909 you have to sign off your commits. |
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 Vincent this looks like it fits with the existing code well keeping the code consistent. So it will get approval from me but you have to sign off your commits and the feedback from @jlaur is very good and fits with feedback I got about the PRs I have submitted.
One thing I would like to see is your valuable comment about the chargingmode etc.. added to the README https://github.com/openhab/openhab-addons/tree/main/bundles/org.openhab.binding.renault#limitations My hope is that making it clear that not all things work on all cars will reduce the user frustration. I use the chargingmode for the example battery limit rule, so maybe a comment here is approximate too and will help some users.
7c85e71
to
ecf7d29
Compare
Done. |
Hi Vincent, This can get very confusing but adding the git --signoff to your commits and rebasing can touch other commits. It looks like the homebase changes from somewhere got added in here. What we need is your --signoff commits in this branch with the changes suggested. If you need help with this I can try to help next week. |
ecf7d29
to
96f3e7b
Compare
Sorry for the confusion. I'm not using rebase a lot. I rebase correctly and remove the other commits. Hope is fine. |
@fifipil909 Looks good and the checks have passed. Can you go the changes requested and i think we are there. I will try to find time to test this to see if the pause charge feature works on the Zoe. |
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.
A few new comments after latest changes. Please have a look at the DCO also, it seems the new commits were not properly signed.
.../org.openhab.binding.renault/src/main/java/org/openhab/binding/renault/internal/api/Car.java
Outdated
Show resolved
Hide resolved
...nding.renault/src/main/java/org/openhab/binding/renault/internal/handler/RenaultHandler.java
Outdated
Show resolved
Hide resolved
...nding.renault/src/main/java/org/openhab/binding/renault/internal/handler/RenaultHandler.java
Show resolved
Hide resolved
bundles/org.openhab.binding.renault/src/main/resources/OH-INF/thing/thing-types.xml
Show resolved
Hide resolved
bundles/org.openhab.binding.renault/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.renault/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
aed6ad3
to
6411bf5
Compare
Signed-off-by: fifipil909 <[email protected]> Signed-off-by: fifipil909 <[email protected]>
Signed-off-by: fifipil909 <[email protected]>
Signed-off-by: fifipil909 <[email protected]>
Signed-off-by: fifipil909 <[email protected]>
5041f7c
to
bf125e2
Compare
Signed-off-by: fifipil909 <[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.
Next round. I provided a few very specific suggestions to avoid misunderstandings. These are related to the comment about not using openHAB types in the Car API classes.
.../org.openhab.binding.renault/src/main/java/org/openhab/binding/renault/internal/api/Car.java
Outdated
Show resolved
Hide resolved
.../org.openhab.binding.renault/src/main/java/org/openhab/binding/renault/internal/api/Car.java
Outdated
Show resolved
Hide resolved
.../org.openhab.binding.renault/src/main/java/org/openhab/binding/renault/internal/api/Car.java
Outdated
Show resolved
Hide resolved
...ing.renault/src/main/java/org/openhab/binding/renault/internal/api/MyRenaultHttpSession.java
Outdated
Show resolved
Hide resolved
...ing.renault/src/main/java/org/openhab/binding/renault/internal/api/MyRenaultHttpSession.java
Outdated
Show resolved
Hide resolved
...nding.renault/src/main/java/org/openhab/binding/renault/internal/handler/RenaultHandler.java
Outdated
Show resolved
Hide resolved
...nding.renault/src/main/java/org/openhab/binding/renault/internal/handler/RenaultHandler.java
Show resolved
Hide resolved
...ding.renault/src/main/java/org/openhab/binding/renault/internal/RenaultBindingConstants.java
Outdated
Show resolved
Hide resolved
Signed-off-by: fifipil909 <[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. Thanks Vincent.
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
Signed-off-by: Jacob Laursen <[email protected]>
Was the new thing upgrade mechanism implemented? |
No, I need to get used to this (and we need some documentation). Thanks for the reminder. Created #14572. |
* Adding Pause-Resume Endpoint Signed-off-by: fifipil909 <[email protected]>
* Adding Pause-Resume Endpoint Signed-off-by: fifipil909 <[email protected]>
Adding Pause / Resume API endpoint.
On some Vehicule type, changing the Charge mode to pause / Resume the charge is not working.
Another endpoint is required.
https://renault-api.readthedocs.io/en/latest/endpoints/vehicle_kcm_actions.charge-pause-resume.html
Tested on 3.4 and 4.0.0
Vincent.