zoernert / node-red-contrib-toyota-myt

Retrieve Data from Toyota MyT App

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Data refresh

Er-i-c opened this issue · comments

Hi, first of all thanks for your work!
I created a dashboard in node-red. I'm want to track the charging and send a notification when charging is complete.
Everything works fine except that data refresh doesn't happen very often on the MyT side. I keep getting cached data. This is exaclty the same behaviour in the MyT app. I have to press the refresh icon in the Remote Charging screen to get the latest data. Once I do that, node-red also gets this data.
Is it possible to simulate the MyT refresh action?

Thanks!

Let me check. I have not found a specific endpoint to trigger a refresh - but only my side I get updates every hour. So let me check

I think the following project/issue relays on the same API: calmjm/tojota#7 (comment)

let's check if someone knows the trigger for refresh.

That's exactly the same thing I want :)

I just checked, my car is charging right now. I didn't get any updates for over 1.5 hours. Are you sure yours is updating every hour?
When I use the car, I do get more updates. After I came home and parked the car, I got 2 updates in less than 10 minutes.

When I use the car, I do get more updates. After I came home and parked the car, I got 2 updates in less than 10 minutes.

There are several different modes on how/when your car updates:

  • On request (that is what we are looking for)
  • On power on/off
  • State change (should be at the end of charge - but my car misses it too sometimes).
  • Periodically during driving (10 minutes or so)
  • Periodically in "deep sleep" (something like daily)

Long story short: We need to get first option ...

BTW I do not store or proxy any of your data. Your Node-RED is fetching it directly from Toyota.

I checked again yesterday while charging, even no update after 2 hours.
It looks like the car decides when to send an update

BTW I do not store or proxy any of your data. Your Node-RED is fetching it directly from Toyota.

Yes, Toyota is caching the data