fungus75 / ioBroker.zoe2

Renault ZOE ioBroker adapter using the same API as myRenault APP
MIT License
15 stars 7 forks source link

Entry at "charging_finished_at" #33

Closed ThomasS1962 closed 3 years ago

ThomasS1962 commented 3 years ago

At Objects "charging_finished_at" it is shown as Invalid Date, in Vis the same tag is shown in Zulu time, i,e, 2021-09-16T17:25:30.000Z. Could it be converted to local time?

fungus75 commented 3 years ago

Just for beeing sure: have you tried if the date-field batteryTS is in a correct format? It is clear, that the value is something completely different to charging_finished_at, but the format is right, isn't it?

If so, all I have to do, is to format the charging_finished_at the same way, isnt' it?

ThomasS1962 commented 3 years ago

Hi, thanks for the quick reply. batteryTS is shown in correct date/time format. (String) charging_finished_at is shown as invalid. (String) So the format must be the same as batteryTS.

1 .

fungus75 commented 3 years ago

Ok, I see the problem: you are currently not charging, in that case, the date charging_finished_at was set to "null" which means nothing. The new iobroker-version does something "stupid" with that. Because of not charging, charging would not be finished somehow.

I have adjustet it with a quick fix and set it to 9999-12-31, which means in many systems "never". Please update the adapter and tell me if it helps (I haven't done a new version, but just update it from github)

ThomasS1962 commented 3 years ago

Ok, thank you for the quick reaction. I will check it tomorrow. 😀

DerPilz @.***> schrieb am Do., 16. Sept. 2021, 21:56:

Ok, I see the problem: you are currently not charging, in that case, the date charging_finished_at was set to "null" which means nothing. The new iobroker-version does something "stupid" with that. Because of not charging, charging would not be finished somehow.

I have adjustet it with a quick fix and set it to 9999-12-31, which means in many systems "never". Please update the adapter and tell me if it helps (I haven't done a new version, but just update it from github)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fungus75/ioBroker.zoe2/issues/33#issuecomment-921202042, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOGILJLSMWSHCKFOMUEOHTLUCJDX3ANCNFSM5EFLOM3Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

ThomasS1962 commented 3 years ago

Hi fungus75, I updated the adapter and now it works perfect. I see the date 9999-12-31 while not charging and the correct remaining time while the car is charging. Many thanks for doing that great job! Have a nice weekend.