-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
vehicleLockState missing for unlocked vehicle? #87
Comments
This "bug" is because most fields have TeslaBleHttpProxy/internal/api/models/statesConverter.go Lines 17 to 38 in 94d1fd8
|
@Lenart12 do you know, is it possible to deliver body_controller_state with vehicle_data aswell? |
It would be possible to implement, but I don't why that would make sense... just use the provided endpoint for b-c-s |
hi,
I do:
curl -X POST http://192.168.0.242:8080/api/1/vehicles/XXX/command/door_lock -d ""
{"response":{"result":true,"reason":"The command was successfully received and will be processed shortly.","vin":"XXX","command":"door_lock"}}
afterwards looking into http://192.168.0.242:8080/api/1/vehicles/XXX/body_controller_state
{"response":{"result":true,"reason":"The request was successfully processed.","vin":"XXX","command":"body-controller-state","response":{"vehicleLockState":"VEHICLELOCKSTATE_LOCKED","vehicleSleepStatus":"VEHICLE_SLEEP_STATUS_AWAKE","userPresence":"VEHICLE_USER_PRESENCE_NOT_PRESENT"}}}
if I do:
curl -X POST http://192.168.0.242:8080/api/1/vehicles/XXX/command/door_unlock -d ""
{"response":{"result":true,"reason":"The command was successfully received and will be processed shortly.","vin":"XXX","command":"door_unlock"}}
it removes the vehicleLockState:
{"response":{"result":true,"reason":"The request was successfully processed.","vin":"XXX","command":"body-controller-state","response":{"vehicleSleepStatus":"VEHICLE_SLEEP_STATUS_AWAKE","userPresence":"VEHICLE_USER_PRESENCE_NOT_PRESENT"}}}
is this intended? I would expect to have there "vehicleLockState":"VEHICLELOCKSTATE_UNLOCKED" in the json
also, is there a possibility to request and deliver the body_controller_state also with http://192.168.0.242:8080/api/1/vehicles/XXX/vehicle_data ?
Thanks
The text was updated successfully, but these errors were encountered: