Skip to content

Add object_id to modern template syntax #40409

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: next
Choose a base branch
from

Conversation

Petro31
Copy link
Contributor

@Petro31 Petro31 commented Aug 13, 2025

Proposed change

Allow users to set object_id in modern template syntax to suggest a possible entity_id.

E.g.

template:
- sensor:
  - name: Foo Bar
    object_id: my_foobar_sensor

will create the entity_id sensor.my_foobar_sensor instead of sensor.foo_bar

Type of change

  • Spelling, grammar or other readability improvements (current branch).
  • Adjusted missing or incorrect information in the current documentation (current branch).
  • Added documentation for a new integration I'm adding to Home Assistant (next branch).
  • Added documentation for a new feature I'm adding to Home Assistant (next branch).
  • Removed stale or deprecated documentation.

Additional information

Checklist

  • This PR uses the correct branch, based on one of the following:
    • I made a change to the existing documentation and used the current branch.
    • I made a change that is related to an upcoming version of Home Assistant and used the next branch.
  • The documentation follows the Home Assistant documentation standards.

@Petro31 Petro31 requested a review from a team as a code owner August 13, 2025 12:37
@home-assistant home-assistant bot added has-parent This PR has a parent PR in another repo next This PR goes into the next branch labels Aug 13, 2025
Copy link

netlify bot commented Aug 13, 2025

Deploy Preview for home-assistant-docs failed.

Name Link
🔨 Latest commit 39d997b
🔍 Latest deploy log https://app.netlify.com/projects/home-assistant-docs/deploys/689c94fab441f100089dfe3a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has-parent This PR has a parent PR in another repo next This PR goes into the next branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant