Open charlievogt opened 2 years ago
Are you subscribed to remote services
?
We just started the work on supporting older generations here https://github.com/widewing/toyota-na/pull/4 And a related issue: https://github.com/widewing/toyota-na/issues/2
I am subscribed to remote services. I am able to do everything from the Toyota app.
I'm seeing the same issues. I have a 2020 Corolla XSE and I'm subscribed to remote services. Not sure why it won't read my car.
2022-01-27 16:13:44 INFO (MainThread) [homeassistant.setup] Setting up toyota_na
2022-01-27 16:13:44 INFO (MainThread) [homeassistant.setup] Setup of domain toyota_na took 0.0 seconds
2022-01-27 16:13:45 INFO (MainThread) [custom_components.toyota_na] Tokens refreshed, updating ConfigEntry
2022-01-27 16:13:49 WARNING (MainThread) [custom_components.toyota_na] Error fetching vehicle status
2022-01-27 16:13:49 WARNING (MainThread) [custom_components.toyota_na] Error fetching vehicle status
2022-01-27 16:13:49 INFO (MainThread) [root] Response status: SUCCESS
2022-01-27 16:13:49 INFO (MainThread) [homeassistant.setup] Setup of domain tplink took 5.2 seconds
2022-01-27 16:13:50 INFO (MainThread) [root] Response status: SUCCESS
2022-01-27 16:13:50 ERROR (MainThread) [root] Error parsing response: {"status":"SUCCESS","code":200,"message":"Ok","errors":[]}
2022-01-27 16:13:50 WARNING (MainThread) [custom_components.toyota_na] Error fetching odometer detail
2022-01-27 16:13:50 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.toyota_na
2022-01-27 16:13:50 INFO (MainThread) [homeassistant.components.device_tracker] Setting up device_tracker.toyota_na
2022-01-27 16:13:50 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up toyota_na platform for sensor Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform await asyncio.shield(task)
File "/config/custom_components/toyota_na/sensor.py", line 31, in async_setup_entry if sensor.available:
File "/config/custom_components/toyota_na/sensor.py", line 75, in available return "fuelLevel" in self.vehicle_odometer_detail
File "/config/custom_components/toyota_na/base_entity.py", line 47, in vehicle_odometer_detail return self.vehicle["odometer_detail"]
KeyError: 'odometer_detail'
2022-01-27 16:13:50 ERROR (MainThread) [homeassistant.components.device_tracker] Error while setting up toyota_na platform for device_tracker Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform await asyncio.shield(task)
File "/config/custom_components/toyota_na/device_tracker.py", line 21, in async_setup_entry if tracker.available:
File "/config/custom_components/toyota_na/device_tracker.py", line 47, in available return "latitude" in self.vehicle_status
File "/config/custom_components/toyota_na/base_entity.py", line 35, in vehicle_status return self.vehicle["status"]
KeyError: 'status'
Similar issues here:
Logger: root
Source: /usr/local/lib/python3.9/site-packages/toyota_na/client.py:34
First occurred: February 1, 2022, 9:28:27 PM (1 occurrences)
Last logged: February 1, 2022, 9:28:27 PM
Error parsing response: {"status":"SUCCESS","code":200,"message":"Ok","errors":[]}
----
2022-02-02 21:13:56 WARNING (MainThread) [custom_components.toyota_na] Error fetching vehicle status
2022-02-02 21:13:57 ERROR (MainThread) [root] Error parsing response: {"status":"SUCCESS","code":200,"message":"Ok","errors":[]}
2022-02-02 21:13:57 WARNING (MainThread) [custom_components.toyota_na] Error fetching odometer detail
2022-02-02 21:13:57 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up toyota_na platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/toyota_na/sensor.py", line 31, in async_setup_entry
if sensor.available:
File "/config/custom_components/toyota_na/sensor.py", line 75, in available
return "fuelLevel" in self.vehicle_odometer_detail
File "/config/custom_components/toyota_na/base_entity.py", line 47, in vehicle_odometer_detail
return self.vehicle["odometer_detail"]
KeyError: 'odometer_detail'
2022-02-02 21:13:57 ERROR (MainThread) [homeassistant.components.device_tracker] Error while setting up toyota_na platform for device_tracker
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/toyota_na/device_tracker.py", line 21, in async_setup_entry
if tracker.available:
File "/config/custom_components/toyota_na/device_tracker.py", line 47, in available
return "latitude" in self.vehicle_status
File "/config/custom_components/toyota_na/base_entity.py", line 35, in vehicle_status
return self.vehicle["status"]
KeyError: 'status'`
Can you try again on https://github.com/widewing/ha-toyota-na/releases/tag/v2.0.0
We fixed several bugs and implemented support for some Entune 3 vehicles that previously errored out like this.
Thanks! I tried again, but am now receiving a new set of errors.
"Retrying setup: None is not a valid ApiVehicleGeneration" shows up on the integrations page of HA.
These two events are in the logs:
EDIT: sorry, new keyboard. Original markdown had ' instead of back ticks.
Logger: homeassistant.config_entries
Source: config_entries.py:366
First occurred: 12:51:51 PM (3 occurrences)
Last logged: 12:56:32 PM
Config entry 'xxxxx@gmail.com' for toyota_na integration not ready yet: None is not a valid ApiVehicleGeneration; Retrying in background
This error originated from a custom integration.
Logger: custom_components.toyota_na
Source: custom_components/toyota_na/__init__.py:104
Integration: Toyota (North America) (documentation, issues)
First occurred: 12:51:51 PM (17 occurrences)
Last logged: 12:57:54 PM
Error fetching data
Traceback (most recent call last):
File "/config/custom_components/toyota_na/__init__.py", line 104, in update_vehicles_status
raw_vehicles = await get_vehicles(client)
File "/usr/local/lib/python3.9/site-packages/toyota_na/vehicle/vehicle.py", line 14, in get_vehicles
ApiVehicleGeneration(vehicle["generation"])
File "/usr/local/lib/python3.9/enum.py", line 384, in __call__
return cls.__new__(cls, value)
File "/usr/local/lib/python3.9/enum.py", line 702, in __new__
raise ve_exc
ValueError: None is not a valid ApiVehicleGeneration
We just pushed a release that supports the diagnostic platform in HA. Navigate to the integrations page, select the menu on the Toyota
integration, and click Download Diagnostics
. The dump automatically redacts all sensitive information and will provide us with a lot more detail to help diagnose what's going on here.
Once I log into the integration with my Toyota credentials, it appears in the GUI that it was successful, though no entities or devices are added. The logs show several errors, included below.
Any suggestions? I saw another issue with similar logs, and the indication seemed to be that the vehicle was too old to work. This is a 2020 Highlander.