mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
26 lines
596 B
YAML
26 lines
596 B
YAML
alias: 'Nearly Home'
|
|
id: automation_nearly_home
|
|
initial_state: 'on'
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.garage_door
|
|
- binary_sensor.front_door_contact
|
|
to: 'on'
|
|
condition:
|
|
- condition: state
|
|
entity_id: input_boolean.home_occupied
|
|
state: 'off'
|
|
for: '00:10:00'
|
|
- condition: numeric_state
|
|
entity_id: sensor.deck_light_level
|
|
below: 25
|
|
- condition: numeric_state
|
|
entity_id: sensor.sun_elevation
|
|
below: 15
|
|
action:
|
|
- service: input_select.select_option
|
|
data:
|
|
entity_id: input_select.entryway_mode
|
|
option: 'Auto'
|