alandtse / tesla

Tesla custom integration for Home Assistant. This requires a refresh token be generated by third-party apps to login.
Apache License 2.0
552 stars 99 forks source link

Post 2024.14.3 upgrade, Asleep variable stays Off even when car is actually sleeping and disconnected #958

Open j4m35 opened 2 months ago

j4m35 commented 2 months ago

Is there an existing issue for this?

I have read about the Fleet API and understand I may need to use it

Version of the Tesla component

3.21.0

Version of the Tesla car software

2024.14.3

Model

Model 3

Current Behavior

After upgrading my Model 3's software to 2024.14.3, the Asleep variable stays Off even when car is actually sleeping. The Online variable correctly shows Disconnected when the car goes to sleep.

Expected Behavior

The Asleep variable should turn On when the car goes to sleep

Debug logs

2024-05-04 11:12:54.646 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-04 11:12:54.647 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 31 Interval 60
2024-05-04 11:12:54.647 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.001 seconds (success: True)
2024-05-04 11:12:54.803 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-04 11:12:54.804 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 31 Interval 60
2024-05-04 11:12:54.804 DEBUG (MainThread) [teslajsonpy.controller] 01939: Skipping update with state offline. Polling: True. Last update: 3697 ago. Last parked: 3697.2160000801086 ago. Last wake up 3698 ago. 
2024-05-04 11:12:54.804 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.001 seconds (success: True)
2024-05-04 11:13:04.647 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-04 11:13:04.647 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 41 Interval 60
2024-05-04 11:13:04.647 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.001 seconds (success: True)
2024-05-04 11:13:04.803 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-04 11:13:04.803 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 41 Interval 60
2024-05-04 11:13:04.803 DEBUG (MainThread) [teslajsonpy.controller] 01939: Skipping update with state offline. Polling: True. Last update: 3707 ago. Last parked: 3707.2160000801086 ago. Last wake up 3708 ago. 
2024-05-04 11:13:04.804 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.001 seconds (success: True)
2024-05-04 11:13:14.647 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-04 11:13:14.648 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 51 Interval 60
2024-05-04 11:13:14.648 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.001 seconds (success: True)
2024-05-04 11:13:14.802 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-04 11:13:14.802 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 51 Interval 60
2024-05-04 11:13:14.803 DEBUG (MainThread) [teslajsonpy.controller] 01939: Skipping update with state offline. Polling: True. Last update: 3717 ago. Last parked: 3717.2160000801086 ago. Last wake up 3718 ago. 
2024-05-04 11:13:14.803 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.001 seconds (success: True)
2024-05-04 11:13:24.647 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-04 11:13:24.648 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 61 Interval 60
2024-05-04 11:13:24.648 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in 4:24:54
2024-05-04 11:13:24.649 DEBUG (MainThread) [teslajsonpy.connection] get: https://owner-api.teslamotors.com/api/1/products {}
2024-05-04 11:13:24.803 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-04 11:13:25.357 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.710 seconds (success: True)
2024-05-04 11:13:25.358 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 0 Interval 60
2024-05-04 11:13:25.358 DEBUG (MainThread) [teslajsonpy.controller] 01939: Skipping update with state offline. Polling: True. Last update: 3727 ago. Last parked: 3727.2160000801086 ago. Last wake up 3728 ago. 
2024-05-04 11:13:25.358 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.556 seconds (success: True)
2024-05-04 11:13:34.647 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-04 11:13:34.648 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 10 Interval 60
2024-05-04 11:13:34.648 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.001 seconds (success: True)
2024-05-04 11:13:34.803 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-04 11:13:34.803 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 10 Interval 60
2024-05-04 11:13:34.803 DEBUG (MainThread) [teslajsonpy.controller] 01939: Skipping update with state offline. Polling: True. Last update: 3737 ago. Last parked: 3737.2160000801086 ago. Last wake up 3738 ago. 
2024-05-04 11:13:34.803 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.001 seconds (success: True)
2024-05-04 11:13:44.648 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-04 11:13:44.648 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 20 Interval 60
2024-05-04 11:13:44.648 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.001 seconds (success: True)
2024-05-04 11:13:44.803 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-04 11:13:44.803 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 20 Interval 60
2024-05-04 11:13:44.803 DEBUG (MainThread) [teslajsonpy.controller] 01939: Skipping update with state offline. Polling: True. Last update: 3747 ago. Last parked: 3747.2160000801086 ago. Last wake up 3748 ago. 
2024-05-04 11:13:44.803 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.001 seconds (success: True)
2024-05-04 11:13:54.647 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-04 11:13:54.647 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 30 Interval 60
2024-05-04 11:13:54.647 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.001 seconds (success: True)
2024-05-04 11:13:54.802 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-04 11:13:54.802 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 30 Interval 60
2024-05-04 11:13:54.802 DEBUG (MainThread) [teslajsonpy.controller] 01939: Skipping update with state offline. Polling: True. Last update: 3757 ago. Last parked: 3757.2160000801086 ago. Last wake up 3758 ago. 
2024-05-04 11:13:54.803 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.001 seconds (success: True)
2024-05-04 11:14:04.647 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-04 11:14:04.648 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 40 Interval 60
2024-05-04 11:14:04.648 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.001 seconds (success: True)
2024-05-04 11:14:04.802 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-04 11:14:04.802 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 40 Interval 60
2024-05-04 11:14:04.802 DEBUG (MainThread) [teslajsonpy.controller] 01939: Skipping update with state offline. Polling: True. Last update: 3767 ago. Last parked: 3767.2160000801086 ago. Last wake up 3768 ago. 
2024-05-04 11:14:04.803 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.001 seconds (success: True)
2024-05-04 11:14:14.647 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-04 11:14:14.647 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 50 Interval 60
2024-05-04 11:14:14.648 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.001 seconds (success: True)
2024-05-04 11:14:14.802 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-04 11:14:14.803 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 50 Interval 60
2024-05-04 11:14:14.803 DEBUG (MainThread) [teslajsonpy.controller] 01939: Skipping update with state offline. Polling: True. Last update: 3777 ago. Last parked: 3777.2160000801086 ago. Last wake up 3778 ago. 
2024-05-04 11:14:14.803 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.001 seconds (success: True)
2024-05-04 11:14:24.647 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-04 11:14:24.648 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 60 Interval 60
2024-05-04 11:14:24.648 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in 4:23:54
2024-05-04 11:14:24.649 DEBUG (MainThread) [teslajsonpy.connection] get: https://owner-api.teslamotors.com/api/1/products {}
2024-05-04 11:14:24.802 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-04 11:14:25.371 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.723 seconds (success: True)
2024-05-04 11:14:25.375 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 0 Interval 60
2024-05-04 11:14:25.375 DEBUG (MainThread) [teslajsonpy.controller] 01939: Skipping update with state offline. Polling: True. Last update: 3787 ago. Last parked: 3787.2160000801086 ago. Last wake up 3788 ago. 
2024-05-04 11:14:25.375 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.573 seconds (success: True)
2024-05-04 11:14:34.647 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-04 11:14:34.647 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 10 Interval 60
2024-05-04 11:14:34.647 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.001 seconds (success: True)
2024-05-04 11:14:34.802 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-04 11:14:34.803 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 10 Interval 60
2024-05-04 11:14:34.803 DEBUG (MainThread) [teslajsonpy.controller] 01939: Skipping update with state offline. Polling: True. Last update: 3797 ago. Last parked: 3797.2160000801086 ago. Last wake up 3798 ago. 
2024-05-04 11:14:34.803 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.001 seconds (success: True)
2024-05-04 11:14:44.647 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-04 11:14:44.647 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 20 Interval 60
2024-05-04 11:14:44.647 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.001 seconds (success: True)
2024-05-04 11:14:44.805 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-04 11:14:44.806 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 20 Interval 60
2024-05-04 11:14:44.806 DEBUG (MainThread) [teslajsonpy.controller] 01939: Skipping update with state offline. Polling: True. Last update: 3807 ago. Last parked: 3807.2160000801086 ago. Last wake up 3808 ago. 
2024-05-04 11:14:44.806 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.001 seconds (success: True)
2024-05-04 11:14:54.647 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-04 11:14:54.647 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 30 Interval 60
2024-05-04 11:14:54.648 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.001 seconds (success: True)
2024-05-04 11:14:54.803 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-04 11:14:54.803 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 30 Interval 60
2024-05-04 11:14:54.803 DEBUG (MainThread) [teslajsonpy.controller] 01939: Skipping update with state offline. Polling: True. Last update: 3817 ago. Last parked: 3817.2160000801086 ago. Last wake up 3818 ago. 
2024-05-04 11:14:54.804 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.001 seconds (success: True)
2024-05-04 11:15:04.648 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-04 11:15:04.648 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 40 Interval 60
2024-05-04 11:15:04.648 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.001 seconds (success: True)
2024-05-04 11:15:04.802 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-04 11:15:04.802 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 40 Interval 60
2024-05-04 11:15:04.802 DEBUG (MainThread) [teslajsonpy.controller] 01939: Skipping update with state offline. Polling: True. Last update: 3827 ago. Last parked: 3827.2160000801086 ago. Last wake up 3828 ago. 
2024-05-04 11:15:04.803 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.001 seconds (success: True)
2024-05-04 11:15:14.646 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-04 11:15:14.647 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 50 Interval 60
2024-05-04 11:15:14.647 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.001 seconds (success: True)
2024-05-04 11:15:14.803 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-04 11:15:14.803 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 50 Interval 60
2024-05-04 11:15:14.804 DEBUG (MainThread) [teslajsonpy.controller] 01939: Skipping update with state offline. Polling: True. Last update: 3837 ago. Last parked: 3837.2160000801086 ago. Last wake up 3838 ago. 
2024-05-04 11:15:14.804 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.001 seconds (success: True)

Anything else?

No response

darek-margas commented 1 month ago

Same for me after 2024.14.3 update. The same issue appears on Teslamate so it seems firmware/API related. I use old API.

Imaginous commented 1 month ago

Here also the same problem since update 2024.14.3. Model 3 (Highland).

I use the Proxy connection method. Also seeing this behaviour in Teslamate.

Rebooting the car didn't help.

dtpazz commented 1 month ago

Also experiencing this issue.

skipishere commented 1 month ago

Unless you're adding detail to the issue, please don't add "me too" comments. If you're interested you can subscribe to the issue and you'll be alerted to any updates

EliteAppleHacks commented 1 week ago

Anyone here found a temp solution with this bug?