From 2009be44262ab2bda479757cbe5a91e56f679761 Mon Sep 17 00:00:00 2001 From: Danny Tsang Date: Sun, 29 Oct 2023 17:36:48 +0000 Subject: [PATCH] Added no motion to turn off bedroom clock display --- packages/rooms/bedroom.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/packages/rooms/bedroom.yaml b/packages/rooms/bedroom.yaml index fbdb28e1..2e7b4ba5 100644 --- a/packages/rooms/bedroom.yaml +++ b/packages/rooms/bedroom.yaml @@ -495,6 +495,36 @@ automation: target: entity_id: scene.bedroom_turn_off_ambient_light mode: single + - id: "1621713867763" + alias: "Bedroom: No Motion For Long Time" + description: "" + trigger: + - platform: state + entity_id: binary_sensor.bedroom_area_motion + from: "on" + to: "off" + for: 01:00:00 + condition: + - condition: state + entity_id: light.bedroom_lamps + state: "off" + - condition: state + entity_id: input_boolean.enable_bedroom_motion_trigger + state: "on" + action: + - parallel: + - service: script.send_to_home_log + data: + message: >- + :no_pedestrians: No motion detected For 1 hour. + Turning clock off. + title: " :bed: Bedroom" + log_level: "Debug" + - service: light.turn_off + data: {} + target: + entity_id: light.bedroom_clock_matrix + mode: single # Fan - id: "1690844451011" alias: "Bedroom: Turn Off Fan"