I have been using the UK Transport component, which is working great
The only issue I’m having is the amount of API requests, I have only one bus sensor set up and running, but by 21:30 I had reached 80% of the 1000 limit, and by 23:30 I had received an ‘App limit violation’ notice.
Does anyone know how to limit the amount of requests?
Thanks for the help guys, I’ve checked the stats and there is a sudden jump in the number of requests part way through the day, I’ve attached screenshots.
I don’t understand how that could occur, since API calls are throttled. Unless anyone else is experiencing this it must be related to your setup some how
I’ve started getting a similar issue reaching the limits. Is it possible to add an interval option for the compoment and then start using the new homeassistant.update_entity feature in 0.81 to check periodically? This way I could check only when needed.
I think scan_interval has been around for a while but I don’t think all components support it (I could be wrong), it’s homeassistant.update_entity that was introduced in 0.81.
If I update one of these template sensors using the update_entity service it doesn’t seem to update. Is this because the underlying platform isn’t being updated? If so how do I force the uk_transport platfrom to update?
EDIT: I am basing my assertion that it isn’t updating on this ‘more info’ panel but there are no trains on this route today so maybe I am mistaken. Maybe the “42 minutes” ago is telling me the last time it changed rather than the last time it was updated? I’ll wait until tomorrow when this line has trains again and see what happens.