Files
fresh-home/automations/things/car/car_home.yaml
T
2025-07-17 20:30:11 -04:00

40 lines
1.0 KiB
YAML

initial_state: 'on'
id: automation_car_home
alias: Car Home
trigger:
- platform: state
entity_id:
- binary_sensor.gray_suv_east_side
- binary_sensor.gray_suv_west_side
to: 'on'
- platform: state
entity_id: device_tracker.chevrolet_traverse_location
to: 'home'
- platform: homeassistant
event: start
condition:
- condition: state
entity_id: input_boolean.car_home
state: 'off'
- condition: or
conditions:
- condition: state
entity_id: binary_sensor.gray_suv_east_side
state: 'on'
- condition: state
entity_id: binary_sensor.gray_suv_west_side
state: 'on'
- condition: state
entity_id: binary_sensor.east_side_vehicle_occupancy
state: 'on'
- condition: state
entity_id: binary_sensor.west_side_vehicle_occupancy
state: 'on'
- condition: state
entity_id: device_tracker.chevrolet_traverse_location
state: 'home'
action:
- service: input_boolean.turn_on
entity_id: input_boolean.car_home