Comments (2)
Hello @BertVereecke, in principle that would be interesting.
The problem here, however, is that Toyota does not have an independent API for querying the last trip. You can only make requests to the Toyota Trips API that contain a from_date
and to_date
and then get back all trips that are within this period.
Now, of course, we don't know when your last trip took place, for example. You could have been travelling 3 days ago, but also 1 month or 1 year ago.
Toyota itself stores the trip data for 1 year. We would therefore have to retrieve all trip information for 1 year each time and filter for the last trip in it. In my initial opinion, this would probably cause too much load.
from ha_toyota.
It's possible. I already implemented that & currently testing with few other options, like sending remote commands. API takes offset & limit, so knowing the limitations, we can ask for 1 entry in the last 90 days (I thinks this period should have some entries). API seems to be sorting trips descending, so asking for only one will return the 'last trip' we need.
from ha_toyota.
Related Issues (20)
- Failed setup and no logs HOT 10
- Bug: Wrong open/closed status for doors & windows HOT 3
- ha_toyota breaks logging to home-assistant.log HOT 7
- Wrong hood, trunk and trunk lock status HOT 3
- Individual Trip statistics HOT 1
- No device or entities HOT 19
- invalid suggested_unit_of_measurement HOT 1
- Expansion for Subaru HOT 2
- Empty box after registration HOT 7
- Wehybrid Insurance HOT 3
- 2024.4.4 error - unable to install package HOT 37
- update Toyota Hybrid battery level and battery range more frequently during landing. HOT 1
- Integration unable to setup after updating to HA version 2024.5.0 HOT 29
- "Unknown Error Occurred" message at the beginning of the setup
- Errors in logs since 2024.5 HOT 2
- Cannot add integration HOT 3
- invalid suggested_unit_of_measurement HOT 1
- Blocking call to open inside the event loop HOT 2
- No Device or Entities returned
- Toyota Connected Services 2.0.3 - Detected blocking call to open inside the event HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ha_toyota.