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:
parent
51e98c435f
commit
253dfb40b4
1 changed files with 12 additions and 6 deletions
|
@ -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
|
||||
- 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
|
||||
- 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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue