Skip to content

Instantly share code, notes, and snippets.

View FrankTub's full-sized avatar

Frank Tubbing FrankTub

View GitHub Profile
@FrankTub
FrankTub / occupancy.yaml
Last active February 16, 2025 13:38
Wasp principle for combination of door and motion sensor to set occupancy of a room. In addition to existing examples this also sets the occupancy to true when the door was opened and no one is in the room
blueprint:
name: Occupancy
description: |
This blueprint implements the 'Wasp in a Box' principle, a method for detecting room occupancy based on motion and door sensors. It was inspired by an AppDaemon app with a similar approach.
You can find more information about this blueprint on the Home Assistant Community: https://community.home-assistant.io/t/occupancy-blueprint/477772
domain: automation
source_url: https://gist.github.com/FrankTub/34808ea98e3d312173b0d453bc28bf14
input:
door_sensor:
name: Single Door Sensor or Door Sensor Group