Skip to content

Commit

Permalink
Use longer wake allowance
Browse files Browse the repository at this point in the history
The TeslaFi API supports adding a `wake=N` argument that instructs
TeslaFi to wait for up to `N` seconds for the car to wake up before
sending the requested command. In my testing, wake=10 was sufficient
to allow the car to wake up, but that testing was performed at home
on wifi.

Issues #39 and #47 report that 10 seconds may not be enough time to
car fully, but 30 seconds appears to be more reliable.

If the car is already awake when a command is being sent, then the
argument will have no effect. So this should be a safe change.
  • Loading branch information
jhansche committed Jan 5, 2025
1 parent 6479722 commit 300dd53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/teslafi/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
POLLING_INTERVAL_SLEEPING = timedelta(minutes=10)

DELAY_CLIMATE = timedelta(seconds=30)
DELAY_CMD_WAKE = timedelta(seconds=10)
DELAY_CMD_WAKE = timedelta(seconds=30)
DELAY_LOCKS = timedelta(seconds=15)
DELAY_WAKEUP = timedelta(seconds=30)

Expand Down

0 comments on commit 300dd53

Please sign in to comment.