[text] Build the on_value trigger with build_callback_automation (#19613)

This commit is contained in:
J. Nick Koston
2026-10-11 15:54:44 -10:00
committed by GitHub
parent 95de93bebb
commit fa4bc28d3e
4 changed files with 18 additions and 29 deletions
@@ -0,0 +1,11 @@
# on_value with the new text as trigger argument.
text:
- platform: template
name: Text Triggers
id: text_triggers
optimistic: true
mode: text
on_value:
- logger.log:
format: "Text is %s"
args: ["x.c_str()"]
@@ -0,0 +1,3 @@
packages:
text: !include common.yaml
triggers: !include common-triggers.yaml