From 1a254974415e335eb8632ad9a7f4b0314a56832c Mon Sep 17 00:00:00 2001 From: Martin Date: Mon, 28 Nov 2022 14:59:06 +0100 Subject: [PATCH] Update action.markdown (#25051) Co-authored-by: Franck Nijhof --- source/_docs/automation/action.markdown | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/_docs/automation/action.markdown b/source/_docs/automation/action.markdown index 74ccbe6f9e7..d1ca5057684 100644 --- a/source/_docs/automation/action.markdown +++ b/source/_docs/automation/action.markdown @@ -7,6 +7,8 @@ The action of an automation rule is what is being executed when a rule fires. Th You can also call the service to activate [a scene](/integrations/scene/) which will allow you to define how you want your devices to be and have Home Assistant call the right services. +{% raw %} + ```yaml automation: # Change the light in the kitchen and living room to 150 brightness and color red. @@ -42,6 +44,8 @@ automation 2: message: "Oh wow you really missed something great." ``` +{% endraw %} + Conditions can also be part of an action. You can combine multiple service calls and conditions in a single action, and they will be processed in the order you put them in. If the result of a condition is false, the action will stop there so any service calls after that condition will not be executed. ```yaml