Closed capi92 closed 8 months ago
We recently released version 2.0.0 of the Custom Component with major changes and support for the new Mytoyota API. As we unfortunately cannot provide support for Custom Component versions < v2.0.0, I hereby close your issue. If the issue still applies to the current version, you are of course free to open a new issue. 😊
Describe the bug Sensors are not always updated and there is a limited set of sensors ha_toyota v1.2.7 Home Assistant 2022.2.3 Car : Yaris 2021, hybrid
Error Message : Retrying setup: None
Don't know why, but it's now working...
Logs in debug 2022-02-08 09:29:48 DEBUG (MainThread) [mytoyota] Performing first login 2022-02-08 09:29:48 DEBUG (MainThread) [mytoyota] Getting new token... 2022-02-08 09:29:53 DEBUG (MainThread) [mytoyota] Extracting token from result 2022-02-08 09:29:53 DEBUG (MainThread) [mytoyota] Token is the correct format 2022-02-08 09:29:53 DEBUG (MainThread) [mytoyota] Saving token and uuid 2022-02-08 09:29:53 DEBUG (MainThread) [mytoyota] Getting list of vehicles associated with the account 2022-02-08 09:29:53 DEBUG (MainThread) [mytoyota] Checking if token has expired... 2022-02-08 09:29:53 DEBUG (MainThread) [mytoyota] Constructing additional headers... 2022-02-08 09:29:53 DEBUG (MainThread) [mytoyota] Additional headers: {'X-TME-LC': 'en-gb', 'X-TME-LOCALE': 'en-gb', 'X-TME-TOKEN': '6', 'Cookie': 'iPlanetDirectoryPro=6', 'uuid': '8'} 2022-02-08 09:29:53 DEBUG (MainThread) [mytoyota] Creating client... 2022-02-08 09:29:53 DEBUG (MainThread) [mytoyota] Base headers: {'Content-Type': 'application/json;charset=UTF-8', 'Accept': 'application/json, text/plain, /*', 'Sec-Fetch-Dest': 'empty', 'X-TME-BRAND': 'TOYOTA'} - Timeout: 15 2022-02-08 09:29:53 DEBUG (MainThread) [mytoyota] Body: None - Parameters: None 2022-02-08 09:29:57 DEBUG (MainThread) [mytoyota] Getting status for vehicle - VNKKBAC35****... 2022-02-08 09:29:57 DEBUG (MainThread) [mytoyota] Checking if token has expired... 2022-02-08 09:29:57 DEBUG (MainThread) [mytoyota] Constructing additional headers... 2022-02-08 09:29:57 DEBUG (MainThread) [mytoyota] Additional headers: {'X-TME-LC': 'en-gb', 'X-TME-LOCALE': 'en-gb', 'X-TME-TOKEN': '6***', 'Cookie': 'iPlanetDirectoryPro=6***', 'uuid': '8*'} 2022-02-08 09:29:57 DEBUG (MainThread) [mytoyota] Creating client... 2022-02-08 09:29:57 DEBUG (MainThread) [mytoyota] Base headers: {'Content-Type': 'application/json;charset=UTF-8', 'Accept': 'application/json, text/plain, /', 'Sec-Fetch-Dest': 'empty', 'X-TME-BRAND': 'TOYOTA'} - Timeout: 15 2022-02-08 09:29:57 DEBUG (MainThread) [mytoyota] Body: None - Parameters: None 2022-02-08 09:29:57 DEBUG (MainThread) [mytoyota] Checking if token has expired... 2022-02-08 09:29:57 DEBUG (MainThread) [mytoyota] Constructing additional headers... 2022-02-08 09:29:57 DEBUG (MainThread) [mytoyota] Additional headers: {'X-TME-LC': 'en-gb', 'X-TME-LOCALE': 'en-gb', 'X-TME-TOKEN': '6', 'Cookie': 'iPlanetDirectoryPro=6', 'uuid': '8'} 2022-02-08 09:29:57 DEBUG (MainThread) [mytoyota] Creating client... 2022-02-08 09:29:57 DEBUG (MainThread) [mytoyota] Base headers: {'Content-Type': 'application/json;charset=UTF-8', 'Accept': 'application/json, text/plain, /*', 'Sec-Fetch-Dest': 'empty', 'X-TME-BRAND': 'TOYOTA'} - Timeout: 15 2022-02-08 09:29:57 DEBUG (MainThread) [mytoyota] Body: None - Parameters: None 2022-02-08 09:29:57 DEBUG (MainThread) [mytoyota] Checking if token has expired... 2022-02-08 09:29:57 DEBUG (MainThread) [mytoyota] Constructing additional headers... 2022-02-08 09:29:57 DEBUG (MainThread) [mytoyota] Additional headers: {'X-TME-LC': 'en-gb', 'X-TME-LOCALE': 'en-gb', 'X-TME-TOKEN': '6***', 'Cookie': 'iPlanetDirectoryPro=6***', 'uuid': '8*'} 2022-02-08 09:29:57 DEBUG (MainThread) [mytoyota] Creating client... 2022-02-08 09:29:57 DEBUG (MainThread) [mytoyota] Base headers: {'Content-Type': 'application/json;charset=UTF-8', 'Accept': 'application/json, text/plain, /', 'Sec-Fetch-Dest': 'empty', 'X-TME-BRAND': 'TOYOTA'} - Timeout: 15 2022-02-08 09:29:57 DEBUG (MainThread) [mytoyota] Body: None - Parameters: None 2022-02-08 09:29:57 DEBUG (MainThread) [mytoyota] Checking if token has expired... 2022-02-08 09:29:57 DEBUG (MainThread) [mytoyota] Constructing additional headers... 2022-02-08 09:29:57 DEBUG (MainThread) [mytoyota] Additional headers: {'X-TME-LC': 'en-gb', 'X-TME-LOCALE': 'en-gb', 'X-TME-TOKEN': '6', 'Cookie': 'iPlanetDirectoryPro=6', 'uuid': '8'} 2022-02-08 09:29:57 DEBUG (MainThread) [mytoyota] Creating client... 2022-02-08 09:29:57 DEBUG (MainThread) [mytoyota] Base headers: {'Content-Type': 'application/json;charset=UTF-8', 'Accept': 'application/json, text/plain, /*', 'Sec-Fetch-Dest': 'empty', 'X-TME-BRAND': 'TOYOTA'} - Timeout: 15 2022-02-08 09:29:57 DEBUG (MainThread) [mytoyota] Body: None - Parameters: None 2022-02-08 09:29:58 DEBUG (MainThread) [mytoyota] Presenting information as an object... 2022-02-08 09:29:58 DEBUG (MainThread) [mytoyota] Using legacy odometer data: [{'type': 'mileage', 'value': 1204, 'unit': 'km'}, {'type': 'Fuel', 'value': 27.0}] 2022-02-08 09:29:58 DEBUG (MainThread) [mytoyota] Raw sensor data: {} 2022-02-08 09:29:58 DEBUG (MainThread) [mytoyota] Getting statistics for VNKKBAC35****... 2022-02-08 09:29:58 DEBUG (MainThread) [mytoyota] Interval: isoweek - from_date: None - unit: metric 2022-02-08 09:29:58 DEBUG (MainThread) [mytoyota] Checking if token has expired... 2022-02-08 09:29:58 DEBUG (MainThread) [mytoyota] Constructing additional headers... 2022-02-08 09:29:58 DEBUG (MainThread) [mytoyota] Additional headers: {'vin': 'VNKKBAC35****', 'X-TME-LC': 'en-gb', 'X-TME-LOCALE': 'en-gb', 'X-TME-TOKEN': '6***', 'Cookie': 'iPlanetDirectoryPro=6***', 'uuid': '8*'} 2022-02-08 09:29:58 DEBUG (MainThread) [mytoyota] Creating client... 2022-02-08 09:29:58 DEBUG (MainThread) [mytoyota] Base headers: {'Content-Type': 'application/json;charset=UTF-8', 'Accept': 'application/json, text/plain, /', 'Sec-Fetch-Dest': 'empty', 'X-TME-BRAND': 'TOYOTA'} - Timeout: 15 2022-02-08 09:29:58 DEBUG (MainThread) [mytoyota] Body: None - Parameters: {'from': '2022-02-07', 'calendarInterval': 'day'} 2022-02-08 09:29:58 DEBUG (MainThread) [mytoyota] Getting statistics for VNKKBAC35****... 2022-02-08 09:29:58 DEBUG (MainThread) [mytoyota] Interval: month - from_date: None - unit: metric 2022-02-08 09:29:58 DEBUG (MainThread) [mytoyota] Checking if token has expired... 2022-02-08 09:29:58 DEBUG (MainThread) [mytoyota] Constructing additional headers... 2022-02-08 09:29:58 DEBUG (MainThread) [mytoyota] Additional headers: {'vin': 'VNKKBAC35****', 'X-TME-LC': 'en-gb', 'X-TME-LOCALE': 'en-gb', 'X-TME-TOKEN': '6', 'Cookie': 'iPlanetDirectoryPro=6', 'uuid': '8'} 2022-02-08 09:29:58 DEBUG (MainThread) [mytoyota] Creating client... 2022-02-08 09:29:58 DEBUG (MainThread) [mytoyota] Base headers: {'Content-Type': 'application/json;charset=UTF-8', 'Accept': 'application/json, text/plain, /*', 'Sec-Fetch-Dest': 'empty', 'X-TME-BRAND': 'TOYOTA'} - Timeout: 15 2022-02-08 09:29:58 DEBUG (MainThread) [mytoyota] Body: None - Parameters: {'from': '2022-02-01', 'calendarInterval': 'month'} 2022-02-08 09:29:58 DEBUG (MainThread) [mytoyota] Getting statistics for VNKKBAC35****... 2022-02-08 09:29:58 DEBUG (MainThread) [mytoyota] Interval: year - from_date: None - unit: metric 2022-02-08 09:29:58 DEBUG (MainThread) [mytoyota] Checking if token has expired... 2022-02-08 09:29:58 DEBUG (MainThread) [mytoyota] Constructing additional headers... 2022-02-08 09:29:58 DEBUG (MainThread) [mytoyota] Additional headers: {'vin': 'VNKKBAC35****', 'X-TME-LC': 'en-gb', 'X-TME-LOCALE': 'en-gb', 'X-TME-TOKEN': '6***', 'Cookie': 'iPlanetDirectoryPro=6***', 'uuid': '8*'} 2022-02-08 09:29:58 DEBUG (MainThread) [mytoyota] Creating client... 2022-02-08 09:29:58 DEBUG (MainThread) [mytoyota] Base headers: {'Content-Type': 'application/json;charset=UTF-8', 'Accept': 'application/json, text/plain, /', 'Sec-Fetch-Dest': 'empty', 'X-TME-BRAND': 'TOYOTA'} - Timeout: 15 2022-02-08 09:29:58 DEBUG (MainThread) [mytoyota] Body: None - Parameters: {'from': '2022-01-01', 'calendarInterval': 'month'} 2022-02-08 09:29:59 DEBUG (MainThread) [mytoyota] Parse statistics into the statistics object for formatting... 2022-02-08 09:29:59 DEBUG (MainThread) [mytoyota] Updating bucket for statistics.... 2022-02-08 09:30:00 DEBUG (MainThread) [mytoyota] Parse statistics into the statistics object for formatting... 2022-02-08 09:30:00 DEBUG (MainThread) [mytoyota] Updating bucket for statistics.... 2022-02-08 09:30:15 DEBUG (MainThread) [mytoyota] Performing first login 2022-02-08 09:30:15 DEBUG (MainThread) [mytoyota] Getting new token... 2022-02-08 09:30:33 DEBUG (MainThread) [mytoyota] Performing first login 2022-02-08 09:30:33 DEBUG (MainThread) [mytoyota] Getting new token... 2022-02-08 09:30:34 DEBUG (MainThread) [mytoyota] Extracting token from result 2022-02-08 09:30:34 DEBUG (MainThread) [mytoyota] Token is the correct format 2022-02-08 09:30:34 DEBUG (MainThread) [mytoyota] Saving token and uuid 2022-02-08 09:30:34 DEBUG (MainThread) [mytoyota] Getting list of vehicles associated with the account 2022-02-08 09:30:34 DEBUG (MainThread) [mytoyota] Checking if token has expired... 2022-02-08 09:30:34 DEBUG (MainThread) [mytoyota] Constructing additional headers... 2022-02-08 09:30:34 DEBUG (MainThread) [mytoyota] Additional headers: {'X-TME-LC': 'en-gb', 'X-TME-LOCALE': 'en-gb', 'X-TME-TOKEN': 'q', 'Cookie': 'iPlanetDirectoryPro=q', 'uuid': '8'} 2022-02-08 09:30:34 DEBUG (MainThread) [mytoyota] Creating client... 2022-02-08 09:30:34 DEBUG (MainThread) [mytoyota] Base headers: {'Content-Type': 'application/json;charset=UTF-8', 'Accept': 'application/json, text/plain, /*', 'Sec-Fetch-Dest': 'empty', 'X-TME-BRAND': 'TOYOTA'} - Timeout: 15 2022-02-08 09:30:34 DEBUG (MainThread) [mytoyota] Body: None - Parameters: None 2022-02-08 09:30:35 DEBUG (MainThread) [mytoyota] Getting status for vehicle - VNKKBAC35****... 2022-02-08 09:30:35 DEBUG (MainThread) [mytoyota] Checking if token has expired... 2022-02-08 09:30:35 DEBUG (MainThread) [mytoyota] Constructing additional headers... 2022-02-08 09:30:35 DEBUG (MainThread) [mytoyota] Additional headers: {'X-TME-LC': 'en-gb', 'X-TME-LOCALE': 'en-gb', 'X-TME-TOKEN': 'q***', 'Cookie': 'iPlanetDirectoryPro=q***', 'uuid': '8*'} 2022-02-08 09:30:35 DEBUG (MainThread) [mytoyota] Creating client... 2022-02-08 09:30:35 DEBUG (MainThread) [mytoyota] Base headers: {'Content-Type': 'application/json;charset=UTF-8', 'Accept': 'application/json, text/plain, /', 'Sec-Fetch-Dest': 'empty', 'X-TME-BRAND': 'TOYOTA'} - Timeout: 15 2022-02-08 09:30:35 DEBUG (MainThread) [mytoyota] Body: None - Parameters: None 2022-02-08 09:30:35 DEBUG (MainThread) [mytoyota] Checking if token has expired... 2022-02-08 09:30:35 DEBUG (MainThread) [mytoyota] Constructing additional headers... 2022-02-08 09:30:35 DEBUG (MainThread) [mytoyota] Additional headers: {'X-TME-LC': 'en-gb', 'X-TME-LOCALE': 'en-gb', 'X-TME-TOKEN': 'q', 'Cookie': 'iPlanetDirectoryPro=q', 'uuid': '8'} 2022-02-08 09:30:35 DEBUG (MainThread) [mytoyota] Creating client... 2022-02-08 09:30:35 DEBUG (MainThread) [mytoyota] Base headers: {'Content-Type': 'application/json;charset=UTF-8', 'Accept': 'application/json, text/plain, /*', 'Sec-Fetch-Dest': 'empty', 'X-TME-BRAND': 'TOYOTA'} - Timeout: 15 2022-02-08 09:30:35 DEBUG (MainThread) [mytoyota] Body: None - Parameters: None 2022-02-08 09:30:35 DEBUG (MainThread) [mytoyota] Checking if token has expired... 2022-02-08 09:30:35 DEBUG (MainThread) [mytoyota] Constructing additional headers... 2022-02-08 09:30:35 DEBUG (MainThread) [mytoyota] Additional headers: {'X-TME-LC': 'en-gb', 'X-TME-LOCALE': 'en-gb', 'X-TME-TOKEN': 'q***', 'Cookie': 'iPlanetDirectoryPro=q***', 'uuid': '8*'} 2022-02-08 09:30:35 DEBUG (MainThread) [mytoyota] Creating client... 2022-02-08 09:30:35 DEBUG (MainThread) [mytoyota] Base headers: {'Content-Type': 'application/json;charset=UTF-8', 'Accept': 'application/json, text/plain, /', 'Sec-Fetch-Dest': 'empty', 'X-TME-BRAND': 'TOYOTA'} - Timeout: 15 2022-02-08 09:30:35 DEBUG (MainThread) [mytoyota] Body: None - Parameters: None 2022-02-08 09:30:35 DEBUG (MainThread) [mytoyota] Checking if token has expired... 2022-02-08 09:30:35 DEBUG (MainThread) [mytoyota] Constructing additional headers... 2022-02-08 09:30:35 DEBUG (MainThread) [mytoyota] Additional headers: {'X-TME-LC': 'en-gb', 'X-TME-LOCALE': 'en-gb', 'X-TME-TOKEN': 'q', 'Cookie': 'iPlanetDirectoryPro=q', 'uuid': '8'} 2022-02-08 09:30:35 DEBUG (MainThread) [mytoyota] Creating client... 2022-02-08 09:30:35 DEBUG (MainThread) [mytoyota] Base headers: {'Content-Type': 'application/json;charset=UTF-8', 'Accept': 'application/json, text/plain, /*', 'Sec-Fetch-Dest': 'empty', 'X-TME-BRAND': 'TOYOTA'} - Timeout: 15 2022-02-08 09:30:35 DEBUG (MainThread) [mytoyota] Body: None - Parameters: None 2022-02-08 09:30:40 DEBUG (MainThread) [mytoyota] Presenting information as an object... 2022-02-08 09:30:40 DEBUG (MainThread) [mytoyota] Using legacy odometer data: [{'type': 'mileage', 'value': 1204, 'unit': 'km'}, {'type': 'Fuel', 'value': 27.0}] 2022-02-08 09:30:40 DEBUG (MainThread) [mytoyota] Raw sensor data: {} 2022-02-08 09:30:40 DEBUG (MainThread) [mytoyota] Getting statistics for VNKKBAC35****... 2022-02-08 09:30:40 DEBUG (MainThread) [mytoyota] Interval: isoweek - from_date: None - unit: metric 2022-02-08 09:30:40 DEBUG (MainThread) [mytoyota] Checking if token has expired... 2022-02-08 09:30:40 DEBUG (MainThread) [mytoyota] Constructing additional headers... 2022-02-08 09:30:40 DEBUG (MainThread) [mytoyota] Additional headers: {'vin': 'VNKKBAC35****', 'X-TME-LC': 'en-gb', 'X-TME-LOCALE': 'en-gb', 'X-TME-TOKEN': 'q***', 'Cookie': 'iPlanetDirectoryPro=q***', 'uuid': '8*'} 2022-02-08 09:30:40 DEBUG (MainThread) [mytoyota] Creating client... 2022-02-08 09:30:40 DEBUG (MainThread) [mytoyota] Base headers: {'Content-Type': 'application/json;charset=UTF-8', 'Accept': 'application/json, text/plain, /', 'Sec-Fetch-Dest': 'empty', 'X-TME-BRAND': 'TOYOTA'} - Timeout: 15 2022-02-08 09:30:40 DEBUG (MainThread) [mytoyota] Body: None - Parameters: {'from': '2022-02-07', 'calendarInterval': 'day'} 2022-02-08 09:30:40 DEBUG (MainThread) [mytoyota] Getting statistics for VNKKBAC35****... 2022-02-08 09:30:40 DEBUG (MainThread) [mytoyota] Interval: month - from_date: None - unit: metric 2022-02-08 09:30:40 DEBUG (MainThread) [mytoyota] Checking if token has expired... 2022-02-08 09:30:40 DEBUG (MainThread) [mytoyota] Constructing additional headers... 2022-02-08 09:30:40 DEBUG (MainThread) [mytoyota] Additional headers: {'vin': 'VNKKBAC35****', 'X-TME-LC': 'en-gb', 'X-TME-LOCALE': 'en-gb', 'X-TME-TOKEN': 'q', 'Cookie': 'iPlanetDirectoryPro=q', 'uuid': '8***'} 2022-02-08 09:30:40 DEBUG (MainThread) [mytoyota] Creating client... 2022-02-08 09:30:40 DEBUG (MainThread) [mytoyota] Base headers: {'Content-Type': 'application/json;charset=UTF-8', 'Accept': 'application/json, text/plain, /', 'Sec-Fetch-Dest': 'empty', 'X-TME-BRAND': 'TOYOTA'} - Timeout: 15 2022-02-08 09:30:40 DEBUG (MainThread) [mytoyota] Body: None - Parameters: {'from': '2022-02-01', 'calendarInterval': 'month'} 2