I created a sensor that able to get current location (detailed street name) of a car, and i want to make this car show in the map, so i know how far it is to a zone.
Here is my though:
- Get current location (street name, build number etc) of the car in every 1 min
- Search the location info in to get lon and lat with (Search - Nominatim Documentation)
- Create device tracker entity with lon and lat
- Show the entity on map
My question as below:
- How do i create a sensor that picks up the info step 1 above, is this possible?
- How do i create a device tracker? From the document, it seems i must have a mac address or host. Am i not able to just use lon and lat to create this tracker? or this is not the right approach.
I’ve also downloaded ‘places’ from HACS, but it seems my major issue is setting up a device tracker of the car.
Background story:
I live in a place where a car will pick up trash at a certain time, its really annoying i don’t know where the car is when the estimate time is always wrong. Luckily they provide car’s current location, but i will need to input the address to google map and see where it is… so i want to use HA to show the car on map directly, and set zone to notify me when its near to my zone.