From 87eaa28be8a6c96c653b56bd3b0cf6a6265699a9 Mon Sep 17 00:00:00 2001 From: tobkim <46690754+tobkim@users.noreply.github.com> Date: Sun, 9 May 2021 02:53:55 +0200 Subject: [PATCH] Translated condition example to english (#17748) Wasn't sure I was understanding the condition example correctly, so I translated it to english for clarity. --- source/_docs/automation/condition.markdown | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/source/_docs/automation/condition.markdown b/source/_docs/automation/condition.markdown index d9f7076920d..a780f41fc1e 100644 --- a/source/_docs/automation/condition.markdown +++ b/source/_docs/automation/condition.markdown @@ -13,10 +13,10 @@ Example of using condition: ```yaml automation: - - alias: "Enciende Despacho" + - alias: "Turn on office lights" trigger: - platform: state - entity_id: sensor.mini_despacho + entity_id: sensor.office_motion_sensor to: "on" condition: - condition: or @@ -26,12 +26,12 @@ automation: attribute: elevation below: 4 - condition: numeric_state - entity_id: sensor.sensorluz_7_0 + entity_id: sensor.office_lux_sensor below: 10 action: - service: scene.turn_on target: - entity_id: scene.DespiertaDespacho + entity_id: scene.office_lights ``` {% endraw %} @@ -42,16 +42,16 @@ The `condition` option of an automation, also accepts a single condition templat ```yaml automation: - - alias: "Enciende Despacho" + - alias: "Turn on office lights" trigger: - platform: state - entity_id: sensor.mini_despacho + entity_id: sensor.office_motion_sensor to: "on" condition: "{{ state_attr('sun.sun', 'elevation') < 4 }}" action: - service: scene.turn_on target: - entity_id: scene.DespiertaDespacho + entity_id: scene.office_lights ``` {% endraw %}