Hello everyone,
I created a person named Mazda_3 in Home Assistant. This person should represent the location of my car. The coordinates (latitude and longitude) come from two input_number entities:
input_number.mazda_location_latitude
input_number.mazda_location_longitude
I created an automation that should update the person’s location when these coordinates change:
alias: Mazda Standort aktualisieren
trigger:
- platform: state
entity_id:
- input_number.mazda_standort_latitude
- input_number.mazda_standort_longitude
action:
- service: person.set_location
data:
person_id: person.mazda_3
latitude: "{{ states('input_number.mazda_standort_latitude') | float }}"
longitude: "{{ states('input_number.mazda_standort_longitude') | float }}"
gps_accuracy: 10
mode: single
But the location isn’t recognized.
Does anyone know a solution or an alternative?
Thanks in advance for your help