pyze icon indicating copy to clipboard operation
pyze copied to clipboard

Enhancement idea - include Kameron response fields when starting pre-conditioning

Open TheBluProject opened this issue 4 years ago • 3 comments

Hi, At the moment there's no return status when requesting AC start, but in the debug mode we can clearly see the Kameron response with some useful data that could be grabbed from there and included into the non-debug response from pyze to confirm that the request has been successful.

DEBUG:pyze.api.kamereon:Received Kamereon vehicle response: {"data":{"type":"HvacStart","id":"03c48ea6-a923-46d3-89e2-19b432067a97","attributes":{"action":"start","targetTemperature":21.0}}}

Even returning entire json as above would be better than no confirmation at all.

Thanks !

TheBluProject avatar Sep 24 '20 10:09 TheBluProject

Which is the url format? This (and others) is not working:

hvac-sessions?start=2021-09-26&end=2021-09-27

jumpjack avatar Sep 27 '21 09:09 jumpjack

Which is the url format? This (and others) is not working:

hvac-sessions?start=2021-09-26&end=2021-09-27

Please could you stop asking questions that can be answered by looking at the code rather than posting on unrelated issues?

jamesremuscat avatar Sep 29 '21 14:09 jamesremuscat

At the moment there's no return status when requesting AC start, but in the debug mode we can clearly see the Kameron response with some useful data

Server response does not say if car actually started HVAC, you need to check the value of hvacStatus in the output of endpoint /hvac-status:

{
    "id": "xxx MY VIN xxx",
    "socThreshold": 40,
    "lastUpdateTime": "2022-04-01T11:09:34Z",
    "hvacStatus": "off"  <<<<================== this value
}

jumpjack avatar Apr 01 '22 11:04 jumpjack