Skip to content

Instantly share code, notes, and snippets.

View satmandu's full-sized avatar

Satadru Pramanik, DO, MPH, MEng satmandu

View GitHub Profile
@satmandu
satmandu / presence-automations.yaml
Last active October 2, 2026 00:25 — forked from jamesharding/presence-automations.yaml
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
@satmandu
satmandu / GUIDE.md
Last active April 4, 2026 19:21 — forked from CappyT/GUIDE.md
Hassio Unifi Network Application hotfix

HA OS UniFi Add-on - Temporary Hotfix (CVE-2026-22557 & CVE-2026-22558)

This is a quick image-cache hijacking workaround to patch the local container without migrating volumes or waiting for the upstream release. It restores the s6-overlay entrypoint correctly so the add-on boots normally.

The Supervisor will automatically wipe this custom image and pull the official one once the maintainers release the patched update.

Prerequisites:

1. SSH access to the HA OS host on port 22222. (refer to the docs https://developers.home-assistant.io/docs/operating-system/debugging/#enabling-ssh-access-to-the-host )

@satmandu
satmandu / a_enable_wireless.sh
Last active June 19, 2024 21:50 — forked from marcfargas/a_enable_wireless.sh
Sample files to enable wireless on Debian initramfs
#!/bin/sh
# this goes into /etc/initramfs-tools/scripts/init-premount/a_enable_wireless
PREREQ=""
prereqs()
{
echo "$PREREQ"
}
case $1 in
prereqs)