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 garage: motion_sensors: binary_sensor.garage_motion kitchen: motion_sensors: binary_sensor.kitchen_motion mezzanine: motion_sensors: binary_sensor.mezzanine_motion living_room: 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 sensors: binary_sensor.occupancy_living_room: trigger_conditions: sensor.living_room_last_motion <= 5 binary_sensor.occupancy_kitchen: trigger_conditions: sensor.kitchen_last_motion <= 5 binary_sensor.occupancy_restroom: trigger_conditions: sensor.restroom_last_motion <= 3