Skip to content

Add examples of templated targets#41586

Merged
c0ffeeca7 merged 2 commits into
nextfrom
arturpragacz-templated-targets
Nov 3, 2025
Merged

Add examples of templated targets#41586
c0ffeeca7 merged 2 commits into
nextfrom
arturpragacz-templated-targets

Conversation

@arturpragacz
Copy link
Copy Markdown
Member

Proposed change

Add examples of templated action targets.

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.

Copilot AI review requested due to automatic review settings November 3, 2025 12:00
@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 Nov 3, 2025
@netlify
Copy link
Copy Markdown

netlify Bot commented Nov 3, 2025

Deploy Preview for home-assistant-docs ready!

Name Link
🔨 Latest commit fe4cde2
🔍 Latest deploy log https://app.netlify.com/projects/home-assistant-docs/deploys/69089c78840a5a0008c170fa
😎 Deploy Preview https://deploy-preview-41586--home-assistant-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds examples demonstrating how to use templates in action targets within automations. The examples show two different approaches: using a template for the entire target object and using a template for a specific target property.

  • Adds an example of templating the entire target object as a dictionary
  • Adds an example of templating a label_id list within a target

Comment thread source/_docs/automation/action.markdown
Comment thread source/_docs/automation/action.markdown
Added YAML example for 'Office at evening' automation action.
Copy link
Copy Markdown
Contributor

@c0ffeeca7 c0ffeeca7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @arturpragacz 👍

@c0ffeeca7 c0ffeeca7 added the awaits-parent Awaits the merge of an parent PR label Nov 3, 2025
@home-assistant home-assistant Bot added the parent-merged The parent PR has been merged already label Nov 3, 2025
@c0ffeeca7 c0ffeeca7 merged commit c0fcded into next Nov 3, 2025
9 checks passed
@home-assistant home-assistant Bot removed awaits-parent Awaits the merge of an parent PR parent-merged The parent PR has been merged already labels Nov 3, 2025
@c0ffeeca7 c0ffeeca7 deleted the arturpragacz-templated-targets branch November 3, 2025 16:05
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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.

3 participants