Replies: 3 comments
-
If you create a person in the people section then add the location tracker from this integration to the person you created you will see the location on the map if you click on the created person |
Beta Was this translation helpful? Give feedback.
-
The coordinates are already in the data, even without enabling Geolocation. That said, I have made something that comes close (and that doesn't need Geolocation, so you don't have to enable it to make this work) and gives you a link which shows your car's location on OpenStreetMap: Configuration
alias: Make OSM url with car location
sequence:
- service: input_text.set_value
data:
value: >-
https://www.openstreetmap.org/search?query={{
state_attr('binary_sensor.e_niro_data',
'vehicle_data').vehicleLocation.coord.lat }}%2C+{{
state_attr('binary_sensor.e_niro_data',
'vehicle_data').vehicleLocation.coord.lon }}#map={{
states('input_number.osm_zoom_level') | int }}/{{
state_attr('binary_sensor.e_niro_data',
'vehicle_data').vehicleLocation.coord.lat }}/{{
state_attr('binary_sensor.e_niro_data',
'vehicle_data').vehicleLocation.coord.lon }}
target:
entity_id: input_text.osm_url
mode: single I'm not 100% sure if the name of the device is the same in your instance of HA (mine is e_niro). If it is something different, change it in the above code. type: vertical-stack
cards:
- type: entities
entities:
- entity: input_number.osm_zoom_level
name: OSM zoom level
title: Show car location on map
- show_name: true
show_icon: true
type: button
tap_action:
action: call-service
service: script.make_osm_url_with_car_location
data: {}
target: {}
name: Make OSM URL
hold_action:
action: none
icon: mdi:map-marker
- type: entity
entity: input_text.osm_url
name: OSM URL
How to useThis is assuming you're using a smartphone or tablet.
|
Beta Was this translation helpful? Give feedback.
-
To re-iterate on my post from almost a month ago, there is another, much more direct way, again without enabling Geolocation:
|
Beta Was this translation helpful? Give feedback.
-
Can the coordinates of the car be added to the geocodes location of the car so it would be visable on a map?
Beta Was this translation helpful? Give feedback.
All reactions