onokje / node-red-contrib-tesla

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

Push or other message from car to Node-RED? #54

Open KSumwalt opened 2 years ago

KSumwalt commented 2 years ago

Is it possible to know, without sending a command to the car every x seconds, when the car has been taken out of Park, or some other change in the state of the car? Everything I see is requesting information so I am guessing that is the only possibility since there is no official API at this time but figured I would ask since I get notifications of some changes on my phone via Tesla's app.

Kindest Regards, Karl S

coreGreenberet commented 1 year ago

There is something called "Streaming API" which will push some data. However this library isn't supporting it yet. I would suggest to install teslamate and mqtt. Teslamate will publish the data from the streaming api to mqtt and you can grab it via mqtt. I'm doing the same currently.
See #50