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 response to maxDefrost #15

Open
elgeniskogen opened this issue Apr 28, 2021 · 5 comments
Open

No response to maxDefrost #15

elgeniskogen opened this issue Apr 28, 2021 · 5 comments

Comments

@elgeniskogen
Copy link

I am able to to use most of the commands, but for MaxDefrodt the node gives no output. I have tried msg.commandArgs=
{
"onoff": true
}

And a lot of other command.

@frownbreaker
Copy link

frownbreaker commented Jul 15, 2021

I'm not sure it works like that. I think the function is a toggle to turn the defrost setting to MAX or PREVIOUS value.

maxDefrost() toggles climate between Max Defrost and the previous setting

From: https://github.com/mseminatore/TeslaJS

If you want to defrost the car. Get the climate setting valid they are what you need, if not toggle maxDefrost() then call the climate on, and get climate info to track progress. You may also set steering wheel heating if fitted and enabled steeringHeater: commandArgs.level

Like maxDefrost() the steering heating is an option that when enabled will be activated when the climate control is engaged.

@aurelien93
Copy link

Yes
There is error in script
need to modify in this projet tesla.js
case 'maxDefrost': return tjs.maxDefrostAsync({authToken, vehicleID});
to
case 'maxDefrost': return tjs.maxDefrostAsync({authToken, vehicleID}, commandArgs.onoff);

And in library teslaJS
in file teslajs.js
exports.maxDefrost = function steeringHeater(options, onoff, callback) {
to
exports.maxDefrost = function maxDefrost(options, onoff, callback) {

And it's work

@TomNijsen
Copy link

Still not working on my NodeRED flow... Would really like this function to provide winter conditioning to our shared car user group in the coming months...

@takipo
Copy link

takipo commented Jan 31, 2022

i do have the same problem when i send commands.
Response is {"reason":"","result":true} but nothing happens.

@Vinisz
Copy link

Vinisz commented Apr 1, 2022

Reading the above, I'm not sure at the moment if it can work or if it is a bug.
Can someone clarify ? do I need to change commands or wait for a fix ?

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

6 participants