From 47f825cc57663891bc7c280638976870cf5a37fb Mon Sep 17 00:00:00 2001 From: pgrondek Date: Fri, 7 May 2021 01:03:19 +0200 Subject: [PATCH] Change motion sensor in bathroom --- automations/files/automations/bathroom-motion.yaml | 8 ++++---- automations/files/automations/bathroom-music-button.yaml | 2 +- automations/files/automations/bathroom-music.yaml | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/automations/files/automations/bathroom-motion.yaml b/automations/files/automations/bathroom-motion.yaml index dd6c49b..e12948d 100644 --- a/automations/files/automations/bathroom-motion.yaml +++ b/automations/files/automations/bathroom-motion.yaml @@ -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' diff --git a/automations/files/automations/bathroom-music-button.yaml b/automations/files/automations/bathroom-music-button.yaml index 5406ae7..78c17a0 100644 --- a/automations/files/automations/bathroom-music-button.yaml +++ b/automations/files/automations/bathroom-music-button.yaml @@ -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 diff --git a/automations/files/automations/bathroom-music.yaml b/automations/files/automations/bathroom-music.yaml index b2f5d04..607e653 100644 --- a/automations/files/automations/bathroom-music.yaml +++ b/automations/files/automations/bathroom-music.yaml @@ -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