proflan
(proflan)
June 12, 2021, 12:14pm
1
Hi all,
I use Home Assistant in my van and want to display my current location on the Map Card.
I get the current Latitude and Longitude via command_line from my GPS router and it is already displayed correctly in degrees.
- platform: command_line
name: GPS Breitengrad
command: "ssh [email protected] 'gpsctl -i'"
unit_of_measurement: "°"
scan_interval: 3
command_timeout: 5
- platform: command_line
name: GPS Höhe
command: "ssh [email protected] 'gpsctl -a'"
unit_of_measurement: "m"
scan_interval: 3
command_timeout: 5
But how can I get these Coordinates displayed in the Map Card?
Peter
koying
(Chris B)
June 12, 2021, 1:21pm
2
proflan
(proflan)
June 12, 2021, 10:35pm
3
Thanks for your answer, but it didn’t help me. I tried following automation.
- id: update_gps_position
alias: gps_status_x
alias: Update GPS position
trigger:
platform: state
entity_id:
- sensor.gps_breitengrad
- sensor.gps_langengrad
condition: []
action:
- service: device_tracker.see
data_template:
mac: FF:FF:FF:FF:FF:F7
dev_id: campergps
host_name: camper
source_type: gps
gps:
- "{{ states('sensor.gps_breitengrad') }}"
- "{{ states('sensor.gps_langengrad') }}"
and it is shown as follows:
But when I try to use it, nothing is shown in map:
Do I have to define an device first? But where, the
guus
(Guus)
May 2, 2022, 9:41am
5
Hi Proflan,
did you also use that Automation you shared? (I mean combine with the “device_tracker” config?
1 Like