Skip to content
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

No valid response from getHVACStatus service #1

Closed
Jack-RK-24 opened this issue Apr 29, 2020 · 9 comments
Closed

No valid response from getHVACStatus service #1

Jack-RK-24 opened this issue Apr 29, 2020 · 9 comments

Comments

@Jack-RK-24
Copy link

Thanks for creating this Adapter for our beloved Zoe (using on a Zoe Phase 2) utilizing the new API. Having installed the Adapter it reads only a limited number of values
Zoe2_Adapter_Stats
(charge_level, charging, plugged and totalMileage), other Objects are created (batteryTemperature, charging_finished_at, remaining_range and remaining_time) are created but no Values are shown and the script simply get's stuck with logging "No valid response from getHVACStatus service".
Zoe2_Adapter_error
I assume the Error maybe thrown because of Issues on Renault side with preCondition not working correctly etc.. (as usual), but I wonder if it is not possible to show the missing Information like I get from the MyRenault App or by using the pyze Scripts (https://github.com/jamesremuscat/pyze)
When I'm using those pyze Scripts I get all Stats shown correctly
pyze_stats
without an error message (Battery level, Available Energy, Range estimate, Plug state, Charging state, Time remaining, Charge Mode, Battery temperature, Total Mileage as well as Cars last GPS Location).

@fungus75
Copy link
Owner

Thanks for that feedback. First time I get one on this Adapter I've create.
Can you please send me the full line of this HVAC-Error? It is also available in the iobroker-logfile (on my system it is in /opt/iobroker/log). This first line of your screen-shot will be fine (response:...)

@Jack-RK-24
Copy link
Author

Jack-RK-24 commented Apr 29, 2020

Sure (VIN & ID's have been modified as I do not want to show Originals obviously):
2020-04-29 20:50:13.724 - info: zoe2.0 (31061) response:{"statusCode":502,"body":"{"type":"TECHNICAL","messages":[{"code":"err.tech.502","message":"{\"errors\":[{\"status\":\"502\",\"code\":\"gateway.processing\",\"title\":\"VNEXT\",\"detail\":\"invalid vehicle state in order to be processed by gateway, invalid can : C1A\"}]}"}],"errors":[{"errorCode":"err.tech.502","errorMessage":"{\"errors\":[{\"status\":\"502\",\"code\":\"gateway.processing\",\"title\":\"VNEXT\",\"detail\":\"invalid vehicle state in order to be processed by gateway, invalid can : C1A\"}]}"}],"error_reference":"TECHNICAL"}","headers":{"date":"Wed, 29 Apr 2020 18:50:13 GMT","content-type":"application/json","transfer-encoding":"chunked","connection":"close","access-control-allow-origin":"*","x-amzn-trace-id":"Self=1-5zz9zz65-;Root=1-5zz9zz65-","x-content-type-options":"nosniff","x-xss-protection":"1; mode=block","cache-control":"no-cache, no-store, max-age=0, must-revalidate","pragma":"no-cache","expires":"0","vary":"accept-encoding","x-response-time":"361"},"request":{"uri":{"protocol":"https:","slashes":true,"auth":null,"host":"api-wired-prod-1-euw1.wrd-aws.com","port":443,"hostname":"api-wired-prod-1-euw1.wrd-aws.com","hash":null,"search":"?country=FR","query":"country=FR","pathname":"/commerce/v1/accounts/dxxxxxxxxxkamereon/kca/car-adapter/v1/cars/xxx/hvac-status","path":"/commerce/v1/accounts/yxxxxx/kamereon/kca/car-adapter/v1/cars/VF1AG000123456705/hvac-status?country=FR","href":"https://api-wired-prod-1-euw1.wrd-aws.com/commerce/v1/accounts/xxxxx/kamereon/kca/car-adapter/v1/cars/xxxxxx/hvac-status?country=FR"},"method":"get","headers":{"x-gigya-id_token":"e

@fungus75
Copy link
Owner

Thank you for that log. I'm sorry, but the error says absolutely nothing to me :-(

I have created a new version which has a new config-parameter: ignoreApiError. When using this parameter, no more error should be shown in the log.

I'm going to start some more tests and try to implement some of the other features you've requested. But still need some more time...

@Jack-RK-24
Copy link
Author

Thanks, always happy to test!

@fungus75
Copy link
Owner

Can you please update the adapter with the new version in this repo? I've just created a "in between" version by using the v2-api-call for battery-status. Also created some more values. I'm wondering if it shows more from your zoe (just to clarify: my zoe is gen-1, stone-old. So I just get some few parameters back ;-))

@Jack-RK-24
Copy link
Author

Done and Result looks very nice now. Obviously the HVAC error is still being thrown but as said I assume that is Renault itself), but now I got very useful Values. Did a short drive and charge run:
Charging:
charging_new
Charging finished:
chargedone_new

I assume Renault does not update some values anymore after charge finished, therefore still showing the last values for remaining time and charging power. Probably needs some manual tweaking to "0" when charging value goes to false...

Good work so far, as said happy to test with our Ph2 so you can check with your Ph1 Zoe. Driving Zoe since 2014 and loved our old Baby but after driving 6 years it was time to get the bigger battery and larger autonomy...

@fungus75
Copy link
Owner

@Jack-RK-24 thanks for your testing.
Created v 0.0.6 from the version you've currently tested.

@fungus75
Copy link
Owner

@Jack-RK-24 can you please test the version 0.0.7 of the Adapter? Should now support gps-Coordinates on your ZOE also (mine doesn't support them at all ;-( )

@Jack-RK-24
Copy link
Author

What a nice surprise. Just installed and tested, but unfortunately it throws an error.
Checking via PYZE script I get valid Location Info
pyze

, but unfortunately the Adapter not.
Zoe2_0 7

Error Message within iobroker log:
2020-06-18 17:10:17.275 - info: zoe2.0 (4835) response:{"statusCode":404,"body":"{"type":"FUNCTIONAL","messages":[{"code":"err.func.404","message":"{\"timestamp\":\"2020-06-18T15:10:17.007+0000\",\"status\":404,\"error\":\"Not Found\",\"message\":\"No message available\",\"path\":\"/car-adapter/v2/cars/VF1AG000800000000/location\"}"}],"errors":[{"errorCode":"err.func.404","errorMessage":"{\"timestamp\":\"2020-06-18T15:10:17.007+0000\",\"status\":404,\"error\":\"Not Found\",\"message\":\"No message available\",\"path\":\"/car-adapter/v2/cars/VF1AG000800000000/location\"}"}],"error_reference":"FUNCTIONAL"}","headers":{"date":"Thu, 18 Jun 2020 15:10:17 GMT","content-type":"application/json","transfer-encoding":"chunked","connection":"close","access-control-allow-origin":"*","x-amzn-trace-id":"Self=1-500003d7-4002a2406c45fe0000005528;Root=1-500003d7-2b0000000cad9ca000000ac8","x-content-type-options":"nosniff","x-xss-protection":"1; mode=block","cache-control":"no-cache, no-store, max-age=0, must-revalidate","pragma":"no-cache","expires":"0","vary":"accept-encoding","x-response-time":"1271"},"request":{"uri":{"protocol":"https:","slashes":true,"auth":null,"host":"api-wired-prod-1-euw1.wrd-aws.com","port":443,"hostname":"api-wired-prod-1-euw1.wrd-aws.com","hash":null,"search":"?country=DE","query":"country=DE","pathname":"/commerce/v1/accounts/dd000000-3003-0000-0000-e00000000a82/kamereon/kca/car-adapter/v2/cars/VF1AG000800000000/location","path":"/commerce/v1/accounts/dd000005-3005-4003-a3f4-e00000000a82/kamereon/kca/car-adapter/v2/cars/VF1AG000800000000/location?country=DE","href":"https://api-wired-prod-1-euw1.wrd-aws.com/commerce/v1/accounts/dd000000-3003-0000-0000-e00000000a82/kamereon/kca/car-adapter/v2/cars/VF1AG000800000000/location?country=DE"},"method":"get","headers":{"x-gigya-id_token":"........","apikey":".......","x-kamereon-authorization":"Bearer.....","Content-Type":"application/vnd.api+json","content-length":0}}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants