mirror of
https://github.com/esphome/esphome.git
synced 2026-10-14 10:12:52 +00:00
[text] Build the on_value trigger with build_callback_automation (#19613)
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user