1
0

Change motion sensor in bathroom

This commit is contained in:
pgrondek 2021-05-07 01:03:19 +02:00
parent d781fcfc0b
commit 47f825cc57
3 changed files with 7 additions and 7 deletions

View File

@ -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'

View File

@ -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

View File

@ -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