meg768 / homebridge-my-tesla Goto Github PK
View Code? Open in Web Editor NEWHomebridge plugin for Teslas
Homebridge plugin for Teslas
Can you please add the feature, so we don’t have to save our Tesla account username/password in the config.json? Homebridge-Tesla already has access token feature working.
Currently, unlocking the car automatically enables keyless entry. Would it be possible to separate this into two separate actions / accessories within HomeKit?
Hello,
Could you please add frunk ?
Is it possible to expose the trunk as an item that can be opened or closed?
Thermostat appear in Home app, but I can't modify, set or activate it.
Would it be possible for this, or another one, thermostat to be the desired temperature in the car.
Thank,
TypeError: Cannot read properties of undefined (reading 'find')
at TeslaAPI.getVehicle (/opt/homebrew/lib/node_modules/homebridge-my-tesla/src/tesla-api-request.js:285:26)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at Vehicle.getAccessories (/opt/homebrew/lib/node_modules/homebridge-my-tesla/src/vehicle.js:60:17)
No accessories shown :(
I double checked the refresh token and VIN
{
"platform": "Tesla",
"name": "My Tesla Plugin",
"vehicles": [
{
"name": "TeslaMy",
"vin": "xx",
"token": "xx",
"expose": [
"ping",
"defrost",
"ventilation",
"trunk",
"hvac",
"doors",
"insideTemperature",
"steeringWheelHeater"
],
"accessories": {
"ping": {
"name": "Keep Tesla Awake",
"requiredBatteryLevel": 50,
"timerInterval": 1
},
"defrost": {
"name": "Defrost Tesla"
},
"ventilation": {
"name": "Teslas Ventilation"
},
"trunk": {
"name": "Open Teslas Trunk"
},
"charging": {
"name": "Teslas Charger"
},
"hvac": {
"name": "Teslas Climate",
"requiredBatteryLevel": 20
},
"doors": {
"name": "Doors",
"remoteStartDrivePassword": ""
},
"outsideTemperature": {
"name": "Temperature Outside Tesla"
},
"insideTemperature": {
"name": "Temperature Inside Tesla"
},
"thermostat": {
"name": "Set Teslas Temperature",
"requiredBatteryLevel": 40,
"timerInterval": 2
},
"steeringWheelHeater": {
"name": "Steering Wheel Heater"
}
}
}
Hi, I'm running the latest, on node 12, and unless I set the above environment vars, I end up with
[12/7/2019, 17:39:22] [Tesla] Initializing Tesla platform...
[12/7/2019, 17:39:22] [Tesla] Environment variables PUSHOVER_USER and/or PUSHOVER_TOKEN not defined. Push notifications will not be able to be sent.
[12/7/2019, 17:39:22] Error: Need Tesla credentials. A username must be specified
at new TeslaAPI (/opt/node/lib/node_modules/homebridge-my-tesla/src/tesla-api.js:25:19)
at new Vehicle (/opt/node/lib/node_modules/homebridge-my-tesla/src/vehicle.js:20:9)
at /opt/node/lib/node_modules/homebridge-my-tesla/src/platform.js:34:27
at Array.forEach (<anonymous>)
at Platform.accessories (/opt/node/lib/node_modules/homebridge-my-tesla/src/platform.js:33:30)
at Server._loadPlatformAccessories (/opt/node/lib/node_modules/homebridge/lib/server.js:403:20)
at Server._loadPlatforms (/opt/node/lib/node_modules/homebridge/lib/server.js:341:16)
at Server.run (/opt/node/lib/node_modules/homebridge/lib/server.js:90:36)
at module.exports (/opt/node/lib/node_modules/homebridge/lib/cli.js:59:10)
at Object.<anonymous> (/opt/node/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (internal/modules/cjs/loader.js:936:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:947:10)
at Module.load (internal/modules/cjs/loader.js:790:32)
at Function.Module._load (internal/modules/cjs/loader.js:703:12)
at Function.Module.runMain (internal/modules/cjs/loader.js:999:10)
at internal/main/run_main_module.js:17:11
I tried to debug the js to see what's going on but failed. Any suggestions?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.