From 48e19f989466d7ef25903dc2b25dfb973fa4fdc9 Mon Sep 17 00:00:00 2001 From: Joscha Date: Wed, 19 Feb 2025 19:58:01 +0100 Subject: [PATCH] Add Trigger Selector example in Selectors Documentation (#37571) Co-authored-by: Franck Nijhof --- source/_docs/blueprint/selectors.markdown | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/source/_docs/blueprint/selectors.markdown b/source/_docs/blueprint/selectors.markdown index ca4ed195ee7..ea5d7f82503 100644 --- a/source/_docs/blueprint/selectors.markdown +++ b/source/_docs/blueprint/selectors.markdown @@ -1539,3 +1539,19 @@ The output of this selector is a list of triggers. For example: entity_id: "sensor.outside_temperature" below: 20 ``` + +### Example - Merging with existing triggers + +If the trigger(s) should exist within a blueprint that already has some default triggers defined, and an additional customizable trigger should be merged, you need to use the `- triggers` syntax in the blueprint. + +```yaml +# Example trigger selector +input: + my_trigger_input: + selector: + trigger: +triggers: + - triggers: !input my_trigger_input + - platform: numeric_state + [...] +```