onokje / node-red-contrib-tesla

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

openTrunkAsync has the wrong string constant #52

Open thevalyreangroup opened 2 years ago

thevalyreangroup commented 2 years ago
            case 'openFrunk':
                return tjs.openTrunkAsync({authToken, vehicleID}, "front");
            case 'openTrunk':
                return tjs.openTrunkAsync({authToken, vehicleID}, "rear");

Those two string should be "TRUNK" and "FRUNK". See TeslaJS openFrunkASYNC

thevalyreangroup commented 2 years ago

Well, scratch that. It appears "front" and "rear" is correct. This was fixed in commit Dec 28

But the version in NPM still contains the bug. Perhaps the NPM package hasn't been updated correctly?

lunix80 commented 1 year ago

Just change in the src/testla.js file "frunk" => "front" and "trunk" => "rear". Then it works.