63 lines
2.2 KiB
YAML
63 lines
2.2 KiB
YAML
motion_tracker:
|
|
module: motiontracker
|
|
class: MotionTracker
|
|
|
|
priority: 5 # this need to be initialized before app using motion tracker
|
|
|
|
max_time: 30
|
|
|
|
areas:
|
|
corridor:
|
|
motion_sensors: binary_sensor.corridor_motion
|
|
hallway:
|
|
motion_sensors: binary_sensor.hallway_motion
|
|
restroom:
|
|
motion_sensors: binary_sensor.restroom_motion
|
|
porche:
|
|
motion_sensors: binary_sensor.porche_motion
|
|
desk:
|
|
update_on_both_front: true
|
|
motion_sensors: binary_sensor.desk_presence_presence
|
|
garage:
|
|
door_generate_motion: true
|
|
motion_sensors:
|
|
- binary_sensor.garage_motion
|
|
door_sensors:
|
|
- binary_sensor.garage_entrance
|
|
- binary_sensor.garage_door
|
|
kitchen:
|
|
motion_sensors: binary_sensor.kitchen_motion
|
|
mezzanine:
|
|
motion_sensors: binary_sensor.mezzanine_motion
|
|
living_room:
|
|
update_on_both_front: true
|
|
motion_sensors: binary_sensor.living_room_presence_presence
|
|
|
|
occupancy_sensors:
|
|
module: virtualsensors
|
|
class: VirtualSensorsApp
|
|
priority: 8 # default priority app is 50, since most of them require sensors created by virtual sensors, it's important that virtual_sensors start first
|
|
|
|
default_values:
|
|
binary_sensor.someone_home: off
|
|
|
|
sensors:
|
|
binary_sensor.living_room_occupancy:
|
|
trigger_conditions: sensor.living_room_last_motion <= 5
|
|
binary_sensor.kitchen_occupancy:
|
|
trigger_conditions: sensor.kitchen_last_motion <= 5
|
|
binary_sensor.garage_occupancy:
|
|
trigger_conditions: sensor.garage_last_motion <= 5 or binary_sensor.garage_entrance or binary_sensor.garage_door
|
|
binary_sensor.restroom_occupancy:
|
|
trigger_conditions: sensor.restroom_last_motion <= 3
|
|
binary_sensor.bedroom_occupancy:
|
|
trigger_conditions: binary_sensor.is_bedroom_sleeping or binary_sensor.day_interval_night
|
|
blocking_conditions: not binary_sensor.someone_home
|
|
retain_condition.desk_occupancy:
|
|
retain_time: 5 * 60
|
|
conditions:
|
|
trigger_conditions:
|
|
- sensor.desk_last_motion <= 5
|
|
#- binary_sensor.alienware_r10
|
|
#- sensor.macbook_m3_pro_de_pierre_frontmost_app != 'loginwindow' and sensor.macbook_m3_pro_de_pierre_displays == 2
|