home-assistant / home-assistant.io

:blue_book: Home Assistant User documentation
https://www.home-assistant.io
Other
4.99k stars 7.29k forks source link

Tesla integration: Provide more information about wakeup and battery #16521

Closed mabahj closed 3 years ago

mabahj commented 3 years ago

Feedback

I've long been concerned if this integration wakes up my car and drain the battery. Also, I've tried to figure out how to intentionally wake up the car. I've now enabled some debugging, reviewed the logs and also found this thread: https://github.com/zabuldon/teslajsonpy/issues/119

I think there are a couple of battery related topics that could be better addressed in the documentation. I am not confident that my proposals are correct, so I won't write it in myself. But here's a proposal. (The English can probably be improved, it is not my first language..)

URL

https://www.home-assistant.io/integrations/tesla/

Version

2021.2.3

Proposal:

Battery impact

probot-home-assistant[bot] commented 3 years ago

Hey there @zabuldon, @alandtse, mind taking a look at this feedback as its been labeled with an integration (tesla) you are listed as a codeowner for? Thanks! (message by CodeOwnersMention)

alandtse commented 3 years ago

Yes, this is generally correct. You may want to explain the wake_on_start option will wake the cars when the integration first begins.

  • (Open question: Will it ever wake up the car during polling?)

No.

Some clarification, please consider how to summarize it for the documentation.

Lastly, the update switch was added in to disable the scan_interval entirely. If update switch is not on, it will not perform any updates. Specifically, the update check still happens every scan_interval and will only scan a car if the update_switch is on.

I use it in an automation to disable the update_interval once I'm away from a charger for more than 24 hours. This is useful for parking at an airport.

I have been very conservative on polling the car because it costs people real money if the vehicle doesn't sleep and I don't want to risk stranding someone while they're away from home.

Please see https://github.com/zabuldon/teslajsonpy/blob/dev/teslajsonpy/controller.py#L526-L603 and https://github.com/zabuldon/teslajsonpy/blob/dev/teslajsonpy/const.py for more details.

frenck commented 3 years ago

Hehe, @alandtse.. The point of feedback, is so you, as a code owner, can actively improve the documentation for your integration šŸ˜‰

alandtse commented 3 years ago

@frenck I get that point, but given this is an open source community, people can help document stuff if they care about it. I'm spending my time trying to solve the MFA issues preventing users logging in. I'd assume users would prefer I choose that over documentation of how it works under the hood. ;)

frenck commented 3 years ago

Its alright, @alandtse! Was just checking if that was clear.

And of course, anybody willing to pick this up, please go ahead šŸŽ‰

github-actions[bot] commented 3 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved. If this issue is still relevant, please let us know by leaving a comment šŸ‘ This issue has now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.