1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-01 19:02:18 +01:00

[key_collector] enable/disable (#8718)

Co-authored-by: Samuel Sieb <samuel@sieb.net>
This commit is contained in:
Samuel Sieb
2025-05-08 01:26:10 -07:00
committed by GitHub
parent 9e64e71cdf
commit 8e29437900
4 changed files with 61 additions and 0 deletions

View File

@@ -26,3 +26,11 @@ key_collector:
- logger.log:
format: "input timeout: '%s', started by '%c'"
args: ['x.c_str()', "(start == 0 ? '~' : start)"]
enable_on_boot: false
button:
- platform: template
id: button0
on_press:
- key_collector.enable:
- key_collector.disable: