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.
This commit is contained in:
MissingDLL 2017-07-30 09:34:21 +02:00 committed by Fabian Affolter
parent 51e98c435f
commit 253dfb40b4

View File

@ -43,10 +43,13 @@ The requirement is that you have setup the [`xiaomi` component](/components/xiao
entity_id: sensor.illumination_34ce00xxxx11 entity_id: sensor.illumination_34ce00xxxx11
below: 300 below: 300
action: action:
service: light.turn_on - service: light.turn_on
entity_id: light.gateway_light_34ce00xxxx11 entity_id: light.gateway_light_34ce00xxxx11
data: data:
brightness: 5 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 - alias: If there no motion for 5 minutes turn off the gateway light
trigger: trigger:
platform: state platform: state
@ -56,8 +59,11 @@ The requirement is that you have setup the [`xiaomi` component](/components/xiao
for: for:
minutes: 5 minutes: 5
action: action:
service: light.turn_off - service: light.turn_off
entity_id: light.gateway_light_34ce00xxxx11 entity_id: light.gateway_light_34ce00xxxx11
- service: automation.turn_off
data:
entity_id: automation.Motion_off
``` ```
#### {% linkable_title Door and/or Window %} #### {% linkable_title Door and/or Window %}