#Last_reported

1 messages · Page 1 of 1 (latest)

last brook
#

Hi I'm building an automation that polls my Tesla at specific intervals that I have defined. I'm using a Tesla polling helper that a timer.
I made an automation that when the timer get fired, it will update the Tesla location.
Now I want to reset the timer based on it location.
The way I want to do is creating a new automation that if the Tesla location get polled it will evaluate some business logic and set the timer accordingly.
I created a separate automation because I do also want this to get fires if it also a specific distance away from a Bluetooth sensor.

Now my problem is if the car is not moving, it doesn't set a new timer because the last_changed attribute does not change.
I see there is a attribute called last_reported that I want trigger off of. However if I try to use it with the manual event, it blocks me ( for performance reason). How do I use the last_reported attribute. Or is there a better way to do this automation

rotund escarp
last brook
#

Well the whole pointed is I'm rate limited on the Tesla api call. So I'm trying to create some logic that will dynamically change it polling based on distance away from house. To minimize polls

#

😅

#

I'm going to hit the rate limit if I poll every 5 min