Change motion sensor in bathroom
This commit is contained in:
parent
d781fcfc0b
commit
47f825cc57
@ -3,7 +3,7 @@
|
||||
mode: restart
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.bathroom_motion_sensor
|
||||
entity_id: binary_sensor.bathroom_motion_occupancy
|
||||
from: 'off'
|
||||
to: 'on'
|
||||
condition:
|
||||
@ -21,7 +21,7 @@
|
||||
mode: restart
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.bathroom_motion_sensor
|
||||
entity_id: binary_sensor.bathroom_motion_occupancy
|
||||
from: 'off'
|
||||
to: 'on'
|
||||
condition:
|
||||
@ -41,7 +41,7 @@
|
||||
mode: restart
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.bathroom_motion_sensor
|
||||
entity_id: binary_sensor.bathroom_motion_occupancy
|
||||
from: 'off'
|
||||
to: 'on'
|
||||
condition:
|
||||
@ -59,7 +59,7 @@
|
||||
mode: restart
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.bathroom_motion_sensor
|
||||
entity_id: binary_sensor.bathroom_motion_occupancy
|
||||
for: '0:05:00'
|
||||
from: 'on'
|
||||
to: 'off'
|
||||
|
@ -28,7 +28,7 @@
|
||||
type: remote_button_short_press
|
||||
subtype: remote_button_short_press
|
||||
condition:
|
||||
- condition: not1212
|
||||
- condition: not
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: media_player.bathroom
|
||||
|
@ -30,7 +30,7 @@
|
||||
from: 'on'
|
||||
to: 'off'
|
||||
- platform: state
|
||||
entity_id: binary_sensor.bathroom_motion_sensor
|
||||
entity_id: binary_sensor.bathroom_motion_occupancy
|
||||
for: '0:01:00'
|
||||
from: 'on'
|
||||
to: 'off'
|
||||
@ -39,7 +39,7 @@
|
||||
entity_id: binary_sensor.shower_motion
|
||||
state: 'off'
|
||||
- condition: state
|
||||
entity_id: binary_sensor.bathroom_motion_sensor
|
||||
entity_id: binary_sensor.bathroom_motion_occupancy
|
||||
state: 'off'
|
||||
action:
|
||||
- service: media_player.turn_off
|
||||
|
Loading…
Reference in New Issue
Block a user