Renaming tracker entity

hey

So i am trying to rename this device_tracker.ac5f3e301ed6 to device_tracker.rob or something like that. I have a known_tracker.yaml file. its giving it a friendly name

device_tracker.ac5f3e301ed6 home longitude: 115.9906
friendly_name: rob
entity_picture: https://home-assistant.io/images/favicon-192x192.png
source_type: router
latitude: -32.0856
gps_accuracy: 0

but not changing the mac address part of the entity to a friendly name. is there a command entity_name or something like that? in examples ive seen it renamed so i know its do able… just unsure how to.

HA has been a fun learning curve so far. almost got my shed setup (just got to get my sparkly mate to come mod the mains lighting… while doing it myself is easy… due to australian laws id loose my house insurance if i do it myself etc etc etc)

anyways any help would be fantastic

kind regards
rob

What device tracker are you using?

In owntracks you set the device id in the app and ha picks it up, presumably other trackers have a similar thing.

nmap tracker. i was using gpslogger but wanted to try nmap due to not having to use a extra app. be easier if HA could link into google

You can change the entity name in known_devices.yaml file. Just change the devicename here.

yeah I have that. This is my known_devices.yaml

ac5f3e301ed6:
hide_if_away: false
icon:
mac: AC:5F:3E:30:1E:D6
name: rob
picture: https://home-assistant.io/images/favicon-192x192.png
track: true

However its still device_tracker.ac5f3e301ed6 in dev…I would assume it would change in there or is it like a alias so when i call device_tracker.rob it would be the same as device_tracker,ac5f3e301ed6 ?

Change the first line…that is the devicename. Check the linked docs.

or should it say

rob:
icon:
mac: AC:5F:3E:30:1E:D6
name: rob

etc etc

Ahhhh see i knew it would be something simple :slight_smile: thanks for that. :slight_smile: