onokje / node-red-contrib-tesla

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

openTrunkAsync has the wrong string constant #52

Open thevalyreangroup opened 1 year ago

thevalyreangroup commented 1 year 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 1 year 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.