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

Obtain status of climate control? #7

Open
glynhudson opened this issue Jan 2, 2017 · 2 comments
Open

Obtain status of climate control? #7

glynhudson opened this issue Jan 2, 2017 · 2 comments

Comments

@glynhudson
Copy link

glynhudson commented Jan 2, 2017

I have written a script to publish data to MQTT and respond to MQTT messages by activating control :
https://github.com/glynhudson/leaf-python-mqtt

e.g. publishing 1 to leaf/control/climate will turn on the car's A/C

This is working well, however I have been unable to find a way to return the car's A/C / climate control status start_cc_result = l.get_start_climate_control_result(result_key) or l.get_latest_hvac_status() does not seem to work.

@jdhorne
Copy link
Owner

jdhorne commented Jan 3, 2017

Awesome work on the MQTT stuff, @glynhudson.

Does get_start_climate_control_result(result_key) just never return a result?

@glynhudson
Copy link
Author

l.get_start_climate_control_result(result_key)

Resuts in:

<pycarwings2.responses.CarwingsStartClimateControlResponse instance at 0x759b2e40>

I get the similar responce from:

l.get_latest_hvac_status()
pprint.pprint(climate)

Results in:

<pycarwings2.responses.CarwingsLatestClimateControlStatusResponse instance at 0x75ac5fd0>

Theinstance number seems to be different each time I run the API. Do you observe the same behavior from the API?

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