onokje / node-red-contrib-tesla

Node red nodes to control Tesla vehicles and devices
MIT License
20 stars 11 forks source link

commandArgs? #14

Open jgthornburgh opened 3 years ago

jgthornburgh commented 3 years ago

Is there a reference for what it is expecting in the msg.commandArgs for the different commands?

onokje commented 3 years ago

You can look at the docs for the TeslaJs library (where this node is based on). But the list is not long so here it is:

navigationRequest: commandArgs.subject, commandArgs.text, commandArgs.locale remoteStart: commandArgs.password scheduleSoftwareUpdate: commandArgs.offset seatHeater: commandArgs.heater, commandArgs.level setChargeLimit: commandArgs.amt setSentryMode: commandArgs.onoff setTemps: commandArgs.driver, commandArgs.pass setValetMode: commandArgs.pin speedLimitActivate: commandArgs.pin speedLimitDeactivate: commandArgs.pin speedLimitClearPin: commandArgs.pin speedLimitSetLimit: commandArgs.limit steeringHeater: commandArgs.level sunRoofControl: commandArgs.state sunRoofMove: commandArgs.percent windowControl: commandArgs.command

All other commands don't have any arguments.

I'll put it in the readme on next update :)

jgthornburgh commented 3 years ago

thanks, I couldn't find it.