Skip to content

Commit

Permalink
Added no motion to turn off bedroom clock display
Browse files Browse the repository at this point in the history
  • Loading branch information
dannytsang committed Oct 29, 2023
1 parent 9a72a40 commit 2009be4
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions packages/rooms/bedroom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 2009be4

Please sign in to comment.