-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#iain-dev->#main (v0.4.1b-dev ) #141
Conversation
#polling->#iain-dev
Fantastic @iainbullock!! Looks great! |
It doesn't seem to. If you run tesla-control --help, it says this:
You can run the command without authentication, you just need the VIN (which you can see through the windscreen of the car). A bad actor could deliberately wake local cars if they knew the VIN, which would be bad. So again I think it can't wake the car
Not conclusive I know. We could have an environment variable to turn it off for all cars so there are no automatic body-controller-state calls at all. The code currently does a body-controller-state call every 30 secs regardless of whether polling is turned on for all vehicles. This is to ensure the Presence BC and Awake sensors work all the time. (I think we can stop using the old method of scanning BLE if the body-controller-state method proves to be reliable) |
@raphmur have a look at my comments and decide which you prefer if I've given an option. I will describe how the polling loop works shortly, I am being called away .... |
Here's a high level description of how the polling loop works. I had several attempts before I was happy with it. Firstly my requirements:
With these things in mind, I'll talk through how it works: function poll_state_loop()
function poll_state()
I probably should put this is a seperate document for future reference |
@raphmur shall I merge as it is, or make the changes? I'd prefer to merge as is and implement any changes on the next version. If you think differently no problem I can do it. For the next update I am currently working on:
Whilst I'm away on holiday I should make some progress, especially if I can leave my car and home at take my bike instead - weather dependent! It would be good to get _core#stage up to date as its hard to track lots of changes otherwise |
Let's go for merge |
Hi, great job! Bogdan |
0.4.1
RELEASE NEW Feature: Automatic Polling is now possible for state
NEW Feature: The following new states / entities are added:
NEW Feature: Environment variable NO_POLL_SECTIONS is provided to disable updating of various state categories during polling. This speeds up state updates, though less state entities are updated by the polling. The entities can still be manually updated by pressing the Force Update button for the relevent state category
Changes:
Fixes: