summaryrefslogtreecommitdiffstats
path: root/blueprints/automation/motion/motion_switch.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'blueprints/automation/motion/motion_switch.yaml')
-rw-r--r--blueprints/automation/motion/motion_switch.yaml3
1 files changed, 2 insertions, 1 deletions
diff --git a/blueprints/automation/motion/motion_switch.yaml b/blueprints/automation/motion/motion_switch.yaml
index dbc5374..67e62b6 100644
--- a/blueprints/automation/motion/motion_switch.yaml
+++ b/blueprints/automation/motion/motion_switch.yaml
@@ -1,5 +1,5 @@
blueprint:
- name: Motion-activated Switch
+ name: Motion-activated Switch (obsolete by presensece_switch)
description: Turn on a light when motion is detected and surroundings are dark
domain: automation
input:
@@ -215,6 +215,7 @@ action:
match: any
state: 'off'
sequence:
+# Race here: state might change between 'condition' check and 'wait_for_trigger'. We might be better to just finish the loop and check once more before the actions...
- wait_for_trigger:
- platform: state
entity_id: !input on_cond_should_be_on