-
Notifications
You must be signed in to change notification settings - Fork 40
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
Using [CLI] - Error: Unable to convert 3
to PlugState - Dacia spring
#1262
Comments
I can confirm - same issue here when dacia spring is unplugged. |
You can look at this file, where You can open a PR |
I also suggest that you use |
Well, since a few days, it looks like the problem solved by itself, (e.g. was solved by Renault). plugStatus is set to "0" again when the car is unpluged. Battery level 58 % I voluntarily replaced above the GPS coordinates. They were right. I will wait a few more days and close this issue. :-) |
Too bad, lpugStatus is back to "3" today. |
This has been for a while for me. Maybe around 2 months already. I assumed this is mainly a problem from Renault/Dacia, mainly because I get this status randomly, not just when unplugged, but also plugged. This also affects the official MyDacia app, where instead of "Unplugged/Plugged" it prints "--" |
Also running into this, maybe plugstate 3 should be defined as unknown too. Not completely sure. |
3
to PlugState.
#1303
yes same here, I confirm (and sorry for the duplicate bug) What you you see from your car when you have this state? to me it seems correlated with "waiting for charge state" ? anyone can confirm? |
Just made some experiments here : I do confirm : this new plug state 3 seems to be a "plugged and waiting for charge" one .. probably not supported yet by the renault app |
I'm forking, but the HA part will need a fix too unfortunately to set the correct plug (in or not) |
v0.2.6 has been released: https://github.com/hacf-fr/renault-api/releases/tag/v0.2.6 |
In my Dacia spring it seems that plug state 3 becomes set at every start of the car, resulting in a “Plugged in” state on ha even when the car is not |
I'm happy to take PRs to revert this to some kind of "unknown" state - neither plugged in nor unplugged |
I’m not sure how we would classify that as we already have unknown defined, unknown2? |
I think that maybe 3 should be removed from the enum, and "get_plug_status" should be amended to return None if plugStatus is 3. try:
if self.plugStatus is None:
return None
return enums.PlugState(self.plugStatus)
except ValueError as err:
log_exception(...)
return None |
Hello,
New to guthub. I hope my question is formaly right.
I am using the renault-api CLI commands and get this error which preclude me from getting any status.
www-data@doma:~/.local/bin$ ./renault-api status
Error: Unable to convert
3
to PlugState.Context:
Thanks a lot,
Regards,
The text was updated successfully, but these errors were encountered: