mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 02:50:12 -04:00
29 lines
653 B
YAML
29 lines
653 B
YAML
initial_state: 'on'
|
|
id: automation_car_away
|
|
alias: Car Away
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.gray_suv_east_side
|
|
- binary_sensor.gray_suv_west_side
|
|
to: 'off'
|
|
for: '00:00:30'
|
|
|
|
- platform: homeassistant
|
|
event: start
|
|
condition:
|
|
- condition: state
|
|
entity_id: input_boolean.car_home
|
|
state: 'on'
|
|
- condition: and
|
|
conditions:
|
|
- condition: state
|
|
entity_id: binary_sensor.gray_suv_east_side
|
|
state: 'off'
|
|
- condition: state
|
|
entity_id: binary_sensor.gray_suv_west_side
|
|
state: 'off'
|
|
|
|
action:
|
|
- service: input_boolean.turn_off
|
|
entity_id: input_boolean.car_home |