Skip to content

Commit 253dfb4

Browse files
MissingDLLfabaff
authored andcommitted
Update binary_sensor.xiaomi.markdown (home-assistant#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.
1 parent 51e98c4 commit 253dfb4

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

source/_components/binary_sensor.xiaomi.markdown

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,13 @@ The requirement is that you have setup the [`xiaomi` component](/components/xiao
4343
entity_id: sensor.illumination_34ce00xxxx11
4444
below: 300
4545
action:
46-
service: light.turn_on
47-
entity_id: light.gateway_light_34ce00xxxx11
48-
data:
49-
brightness: 5
46+
- service: light.turn_on
47+
entity_id: light.gateway_light_34ce00xxxx11
48+
data:
49+
brightness: 5
50+
- service: automation.turn_on
51+
data:
52+
entity_id: automation.MOTION_OFF
5053
- alias: If there no motion for 5 minutes turn off the gateway light
5154
trigger:
5255
platform: state
@@ -56,8 +59,11 @@ The requirement is that you have setup the [`xiaomi` component](/components/xiao
5659
for:
5760
minutes: 5
5861
action:
59-
service: light.turn_off
60-
entity_id: light.gateway_light_34ce00xxxx11
62+
- service: light.turn_off
63+
entity_id: light.gateway_light_34ce00xxxx11
64+
- service: automation.turn_off
65+
data:
66+
entity_id: automation.Motion_off
6167
```
6268
6369
#### {% linkable_title Door and/or Window %}

0 commit comments

Comments
 (0)