# Entity ID

> The ID of an entity: its domain and an object ID, like `light.kitchen`.

Source: https://contributors.home-assistant.io/glossary/entity-id/

- In code: `entity_id`
- Also: entity IDs, object ID

Users see and type entity IDs in automations, templates, and YAML, and they can change them. Code should never depend on an entity ID. To recognize an entity, use its [unique ID](https://contributors.home-assistant.io/glossary/unique-id/).

## Related terms

- [Entity](https://contributors.home-assistant.io/glossary/entity/): One thing Home Assistant can show, measure, or control, like a light, a temperature sensor, or a switch. Every entity has a state.
- [Unique ID](https://contributors.home-assistant.io/glossary/unique-id/): An ID that an integration gives an entity or config entry, which never changes, so Home Assistant recognizes it after a restart.
- [Domain](https://contributors.home-assistant.io/glossary/domain/): The short, unique identifier of an integration, like `hue` or `light`. It is also the first part of every entity ID.
