Skip to content

Entity Naming

This guide explains how the AutoPi integration names entities and how you can customize them.

Default Naming Conventions

The AutoPi integration follows Home Assistant's naming best practices for consistent and intuitive entity names.

Device Names

Each vehicle becomes a device with this naming pattern:

Vehicle InfoDevice NameExample
Call Name setUses call nameMy Tesla
License plate onlyUses license plateABC-123
Vehicle ID onlyUses vehicle IDVehicle abc123

Entity Naming Structure

Entities follow Home Assistant's has_entity_name pattern:

{device_name} {entity_name}

Examples: - Device: My Tesla, Entity name: SpeedMy Tesla Speed - Device: ABC-123, Entity name: AltitudeABC-123 Altitude

Entity ID Generation

Entity IDs are automatically generated from names:

Entity NameEntity IDNotes
My Tesla Speedsensor.my_tesla_speedSpaces become underscores
ABC-123 GPS Satellitessensor.abc_123_gps_satellitesSpecial chars become underscores
AutoPi Vehicle Countsensor.autopi_vehicle_countIntegration-level entities

Entity Categories

Vehicle Entities

Each vehicle gets these entities:

Primary Entities

Entity NameEntity ID PatternPurpose
Statussensor.{vehicle}_statusVehicle license plate/name
Trackerdevice_tracker.{vehicle}GPS location tracking
Speedsensor.{vehicle}_speedCurrent speed
Altitudesensor.{vehicle}_altitudeHeight above sea level
Coursesensor.{vehicle}_courseDirection of travel
GPS Satellitessensor.{vehicle}_gps_satellitesNumber of satellites

Diagnostic Entities

Entity NameEntity ID PatternPurpose
Latitudesensor.{vehicle}_latitudeGPS latitude coordinate
Longitudesensor.{vehicle}_longitudeGPS longitude coordinate

Integration Entities

Integration-wide entities with consistent naming:

Entity NameEntity IDCategory
AutoPi Vehicle Countsensor.autopi_vehicle_countDiagnostic
AutoPi API Callssensor.autopi_api_callsDiagnostic
AutoPi Failed API Callssensor.autopi_failed_api_callsDiagnostic
AutoPi API Success Ratesensor.autopi_api_success_rateDiagnostic
AutoPi Update Durationsensor.autopi_update_durationDiagnostic

Customizing Entity Names

Using Home Assistant UI

You can customize entity names through the Home Assistant interface:

  1. Navigate to Entity:
  2. Go to SettingsDevices & Services
  3. Find AutoPi integration
  4. Click on a device to see its entities

  5. Edit Entity:

  6. Click on an entity
  7. Click the Settings icon (gear)
  8. Modify Name field
  9. Click Update

Bulk Customization

For multiple entities, use the Entity Registry:

  1. Navigate to Entities:
  2. Go to SettingsDevices & Services
  3. Click Entities tab
  4. Filter by "autopi" domain

  5. Select and Edit:

  6. Select multiple entities
  7. Use bulk edit functions
  8. Apply consistent naming patterns

YAML Configuration

While entities are created dynamically, you can use customizations:

# configuration.yaml
homeassistant:
  customize:
    sensor.my_tesla_speed:
      friendly_name: "Tesla Current Speed"
      icon: mdi:speedometer-medium

    device_tracker.my_tesla:
      friendly_name: "Tesla Location"
      icon: mdi:car-electric

    sensor.my_tesla_gps_satellites:
      friendly_name: "Tesla GPS Quality"

Naming Best Practices

Consistent Patterns

Use consistent naming across all vehicles:

Pattern Examples

# Speed sensors
sensor.family_car_speed
sensor.work_truck_speed
sensor.motorcycle_speed

# Device trackers  
device_tracker.family_car
device_tracker.work_truck
device_tracker.motorcycle

Avoid These Patterns

# Inconsistent naming
sensor.car_speed           # Too generic
sensor.my_awesome_car_spd  # Abbreviations
sensor.vehicle_123_speed   # Technical IDs

Descriptive Names

Make names meaningful for your household:

Good Examples

  • Family Car instead of Vehicle 1
  • Dad's Truck instead of ABC-123
  • Teen Driver Car instead of Honda Civic

Context-Appropriate Names

  • Family use: Mom's Car, Kids' Van
  • Fleet use: Delivery Truck 1, Service Van A
  • Personal use: Daily Driver, Weekend Car

Special Characters

Handle special characters in vehicle names:

Original NameRecommendedEntity ID Result
Mom's CarMom Carsensor.mom_car_speed
Car #1Car 1sensor.car_1_speed
Work/PersonalWork Personalsensor.work_personal_speed

Troubleshooting Naming Issues

Common Problems

Duplicate Entity IDs

Symptoms: Entities not appearing or numbered with _2, _3

Causes: - Multiple vehicles with similar names - Conflicts with existing entities - Special character handling

Solutions: 1. Rename vehicles in AutoPi dashboard 2. Customize entity names in Home Assistant 3. Remove conflicting entities if safe

Unclear Entity Names

Symptoms: Hard to identify which vehicle an entity represents

Solutions: 1. Use descriptive vehicle names in AutoPi 2. Customize entity friendly names 3. Use consistent naming patterns

Entity ID Changes

Symptoms: Automations break after name changes

Solutions: 1. Update automations with new entity IDs 2. Use friendly names in automations when possible 3. Plan naming changes carefully

Entity Registry Issues

Orphaned Entities

If entities remain after vehicle removal:

  1. Manual Cleanup:
  2. Go to SettingsDevices & ServicesEntities
  3. Filter for orphaned AutoPi entities
  4. Remove unwanted entities

  5. Integration Reload:

  6. Reload the AutoPi integration
  7. Check for proper cleanup

Lost Customizations

If entity customizations disappear:

  1. Backup Customizations:

    # Save to configuration.yaml
    homeassistant:
      customize: !include customize.yaml
    
  2. Restore from Backup:

  3. Use Home Assistant backup system
  4. Restore entity registry if needed

Advanced Naming Strategies

Multi-Vehicle Households

For families with multiple vehicles:

Naming Strategy 1: User-Based

- Mom's Car
- Dad's Truck  
- Teen's Car
- Family Van

Naming Strategy 2: Purpose-Based

- Daily Driver
- Work Vehicle
- Weekend Car
- Emergency Backup

Naming Strategy 3: Model-Based

- Tesla Model 3
- Honda Pilot
- Toyota Prius
- Ford F-150

Fleet Management

For business or fleet use:

Geographic Naming

- North Region Van
- South Region Truck
- Downtown Delivery
- Suburban Service

Functional Naming

- Delivery Vehicle 1
- Service Truck A
- Manager Vehicle
- Backup Unit

Integration with Other Systems

Dashboard Organization

Group entities logically in dashboards:

# Dashboard card
type: entities
title: Vehicle Speeds
entities:
  - sensor.family_car_speed
  - sensor.work_truck_speed
  - sensor.teen_car_speed

Automation Patterns

Use consistent naming in automations:

# Template for all vehicles
- alias: "Vehicle Arrived Home"
  trigger:
    - platform: zone
      entity_id: 
        - device_tracker.family_car
        - device_tracker.work_truck
        - device_tracker.teen_car
      zone: zone.home
      event: enter

Future Naming Features

Planned Improvements

Smart Name Detection

  • Automatic extraction of meaningful names from vehicle data
  • Integration with vehicle manufacturer APIs
  • Improved handling of special characters

Naming Templates

  • Configurable naming patterns
  • Consistent naming across all entities
  • Bulk rename operations

Localization Support

  • Multi-language entity names
  • Regional naming conventions
  • Cultural naming preferences

Migration Support

When naming conventions change: - Automatic entity ID migration - Backward compatibility - Clear migration documentation