From 2c895a19e50338171de8fb76ff2fd4cbc0c1fae7 Mon Sep 17 00:00:00 2001 From: Matthias Alphart Date: Wed, 15 May 2024 21:05:37 +0200 Subject: [PATCH] Allow templates for enabling actions (#32772) --- source/_docs/scripts.markdown | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/source/_docs/scripts.markdown b/source/_docs/scripts.markdown index f7b5ee49517..32fd91bbfe1 100644 --- a/source/_docs/scripts.markdown +++ b/source/_docs/scripts.markdown @@ -916,6 +916,25 @@ script: entity_id: light.ceiling ``` +Actions can also be disabled based on limited templates or blueprint inputs. + +{% raw %} + +```yaml +blueprint: + input: + input_boolean: + name: Boolean + selector: + boolean: + + action: + - delay: 0:35 + enabled: !input input_boolean +``` + +{% endraw %} + ## Respond to a conversation The `set_conversation_response` script {% term action %} allows returning a custom response