I have (separate) sensors that return my car’s longitude, latitude and altitude. How can I define a sensor, or a device_tracker, entity based on these values that can be used wherever a device_tracker entity can be used? I had something like this a while ago which seemed to work but now HA says that the entity is no longer being provided by the template integration…
I don’t understand how I would do that though. Surely I would need an existing device_tracker for the car, and I do not have one. The documentation for ‘device_tracker’ that you pointed me at is not very clear as to how I would create a ‘dummy’ device tracker entity that I could then update using device_tracker.see. Do you have actual working code examples?
An item to consider is how to remove the jumpy updates. Meaning when the inputs both change, the automation will run twice and it’s likely that device.see will be using the new value for latitude and the old value for longitude (or vv depending on the order they get updated). On the second run it’ll update the other element and the position will be correct.
You should be able to see this behavior in the automation traces. If not, then all is good.
If so, then adding a short delay to the automation may allow enough time to elapse for the other sensor to update.