From 0bfdca7e2f1825c31075ca0c75bedc4aeeed1db9 Mon Sep 17 00:00:00 2001 From: Juri Calleri Date: Tue, 6 Oct 2020 10:18:10 +0200 Subject: [PATCH] English code and fixes (#14929) Not everybody speak Spanish, also, better names for sensor and scene --- source/_docs/automation/action.markdown | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/_docs/automation/action.markdown b/source/_docs/automation/action.markdown index ca7a364fcb6..c995f842c3d 100644 --- a/source/_docs/automation/action.markdown +++ b/source/_docs/automation/action.markdown @@ -45,11 +45,11 @@ Conditions can also be part of an action. You can combine multiple service calls ```yaml automation: -- alias: 'Enciende Despacho' +- alias: 'Office at evening' trigger: platform: state - entity_id: sensor.mini_despacho - to: 'ON' + entity_id: sensor.office_occupancy + to: 'on' action: - service: notify.notify data: @@ -59,7 +59,7 @@ automation: - condition: template value_template: '{% raw %}{{ state_attr('sun.sun', 'elevation') < 4 }}{% endraw %}' - condition: template - value_template: '{% raw %}{{ states('sensor.sensorluz_7_0') < 10 }}{% endraw %}' + value_template: '{% raw %}{{ states('sensor.office_illuminance') < 10 }}{% endraw %}' - service: scene.turn_on - entity_id: scene.DespiertaDespacho + entity_id: scene.office_at_evening ```