Files
fresh-home/automations/people/Clint/Clint_home_after_work.yaml
T
2025-10-10 20:24:52 -04:00

30 lines
620 B
YAML

initial_state: "off"
alias: "clint home after work"
id: automation_home_after_work
#description:
trigger:
platform: state
entity_id: device_tracker.pixel_7
to: "home"
for:
minutes: 10
condition:
condition: and
conditions:
- condition: state
entity_id: input_boolean.notify_clint_work
state: "on"
- condition: or
conditions:
- condition: time
after: "15:00:00"
weekday:
- mon
- tue
- wed
- thu
- fri
action:
- action: homeassistant.turn_off
entity_id: automation.clint_home_after_work