mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
22 lines
508 B
YAML
22 lines
508 B
YAML
alias: 'Garage open nobody home'
|
|
id: automation_garage_open_nobody_home
|
|
initial_state: 'on'
|
|
trigger:
|
|
- platform: state
|
|
entity_id: binary_sensor.garage_open_nobody_home
|
|
to: 'on'
|
|
|
|
condition:
|
|
- condition: and
|
|
conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.home_occupied
|
|
state: 'off'
|
|
- condition: state
|
|
entity_id: cover.garage_door
|
|
state: 'on'
|
|
|
|
action:
|
|
- service: notify.mobile_app_pixel_7
|
|
data:
|
|
message: The garage is open, but nobody is home |