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 mode: restart
trigger: trigger:
- platform: state - platform: state
entity_id: binary_sensor.bathroom_motion_sensor entity_id: binary_sensor.bathroom_motion_occupancy
from: 'off' from: 'off'
to: 'on' to: 'on'
condition: condition:
@ -21,7 +21,7 @@
mode: restart mode: restart
trigger: trigger:
- platform: state - platform: state
entity_id: binary_sensor.bathroom_motion_sensor entity_id: binary_sensor.bathroom_motion_occupancy
from: 'off' from: 'off'
to: 'on' to: 'on'
condition: condition:
@ -41,7 +41,7 @@
mode: restart mode: restart
trigger: trigger:
- platform: state - platform: state
entity_id: binary_sensor.bathroom_motion_sensor entity_id: binary_sensor.bathroom_motion_occupancy
from: 'off' from: 'off'
to: 'on' to: 'on'
condition: condition:
@ -59,7 +59,7 @@
mode: restart mode: restart
trigger: trigger:
- platform: state - platform: state
entity_id: binary_sensor.bathroom_motion_sensor entity_id: binary_sensor.bathroom_motion_occupancy
for: '0:05:00' for: '0:05:00'
from: 'on' from: 'on'
to: 'off' to: 'off'

View File

@ -28,7 +28,7 @@
type: remote_button_short_press type: remote_button_short_press
subtype: remote_button_short_press subtype: remote_button_short_press
condition: condition:
- condition: not1212 - condition: not
conditions: conditions:
- condition: state - condition: state
entity_id: media_player.bathroom entity_id: media_player.bathroom

View File

@ -30,7 +30,7 @@
from: 'on' from: 'on'
to: 'off' to: 'off'
- platform: state - platform: state
entity_id: binary_sensor.bathroom_motion_sensor entity_id: binary_sensor.bathroom_motion_occupancy
for: '0:01:00' for: '0:01:00'
from: 'on' from: 'on'
to: 'off' to: 'off'
@ -39,7 +39,7 @@
entity_id: binary_sensor.shower_motion entity_id: binary_sensor.shower_motion
state: 'off' state: 'off'
- condition: state - condition: state
entity_id: binary_sensor.bathroom_motion_sensor entity_id: binary_sensor.bathroom_motion_occupancy
state: 'off' state: 'off'
action: action:
- service: media_player.turn_off - service: media_player.turn_off