onokje / node-red-contrib-tesla

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

setChargeLimit only sets level to 50% #57

Closed antsve closed 1 year ago

antsve commented 1 year ago

Hi, been having trouble with setChargeLimit only sets limit to 50%, if i tries to put percent: "80" it resonds with {reason:"", result: true} but nothing happens. If i try som value that is below current set state (in app) i get same response but it sets it to 50% even if the node-red command said ie 60%. been reading this thread that has the same issue but not with node red (https://teslamotorsclub.com/tmc/threads/model-s-rest-api.13410/page-62) and there it's stated that the problem occurs due to content-type not being set correctly.

antsve commented 1 year ago

Found the solution, turns out you have to add msg.commandArgs = {amt: 80}. and not percent as i've read elsewhere. Would it be possible to add a list with all commands and ther respective commandArgs, with examples?