Skip to content

Instantly share code, notes, and snippets.

View FrankTub's full-sized avatar

Frank Tubbing FrankTub

View GitHub Profile
@FrankTub
FrankTub / binary_sensor_to_input_boolean.yaml
Last active August 29, 2025 04:23
Binary sensor to input boolean
blueprint:
name: Binary sensor → input_boolean with day/night rules
description: >
Toggle an input_boolean on/off based on a binary sensor with separate day/night delays
and cutoff times.
domain: automation
input:
required_inputs:
name: "Required inputs"
@FrankTub
FrankTub / development_occupancy.yaml
Last active September 10, 2025 11:10
Development occupancy
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.
Original credits go to [Alex Babel](https://community.home-assistant.io/u/alexbabel/summary).
Given that you already use a door and motion sensor this blueprint allows some additional configuration for scenario's where you want to deviate from the wasp in a box principle.
- (Optional) Clear occupancy on closing the door after a delay period
@FrankTub
FrankTub / occupancy.yaml
Last active September 10, 2025 11:11
Wasp principle for HA
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.
Original credits go to [Alex Babel](https://community.home-assistant.io/u/alexbabel/summary).
Given that you already use a door and motion sensor this blueprint allows some additional configuration for scenario's where you want to deviate from the wasp in a box principle.
- (Optional) Clear occupancy on closing the door after a delay period