From 253dfb40b4bae35bb45351346369542bdb249861 Mon Sep 17 00:00:00 2001 From: MissingDLL Date: Sun, 30 Jul 2017 09:34:21 +0200 Subject: [PATCH] Update binary_sensor.xiaomi.markdown (#3094) I would recommend to turn the automation off/on for turning off the Lights because, if you do not do this, and you for example turn manually the light on and walk into your motion sensor it will turn off the light(s). I have had this a few times. --- .../_components/binary_sensor.xiaomi.markdown | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/source/_components/binary_sensor.xiaomi.markdown b/source/_components/binary_sensor.xiaomi.markdown index ff3c9dc62ec..d4f5a7672a4 100644 --- a/source/_components/binary_sensor.xiaomi.markdown +++ b/source/_components/binary_sensor.xiaomi.markdown @@ -43,10 +43,13 @@ The requirement is that you have setup the [`xiaomi` component](/components/xiao entity_id: sensor.illumination_34ce00xxxx11 below: 300 action: - service: light.turn_on - entity_id: light.gateway_light_34ce00xxxx11 - data: - brightness: 5 + - service: light.turn_on + entity_id: light.gateway_light_34ce00xxxx11 + data: + brightness: 5 + - service: automation.turn_on + data: + entity_id: automation.MOTION_OFF - alias: If there no motion for 5 minutes turn off the gateway light trigger: platform: state @@ -56,8 +59,11 @@ The requirement is that you have setup the [`xiaomi` component](/components/xiao for: minutes: 5 action: - service: light.turn_off - entity_id: light.gateway_light_34ce00xxxx11 + - service: light.turn_off + entity_id: light.gateway_light_34ce00xxxx11 + - service: automation.turn_off + data: + entity_id: automation.Motion_off ``` #### {% linkable_title Door and/or Window %}