Skip to content

Instantly share code, notes, and snippets.

View jamesharding's full-sized avatar

James Harding jamesharding

View GitHub Profile
@jamesharding
jamesharding / presence-automations.yaml
Last active February 16, 2026 17:44
Presence automation blueprint for Home Assistant, using binary sensors, media players, etc.
blueprint:
name: Presence Automations
description: >
Presence-based automation system with day/sunset/night lighting scenes, binary
device control, custom script triggers, configurable timeouts, manual override
detection, and occupancy tracking.
Supports motion sensors (bursty), media players, door sensors, and static presence indicators.
Uses rising-edge detection: lights, devices, and scripts only activate at the moment