Skip to content

Instantly share code, notes, and snippets.

blueprint:
name: Motion-activated Light with Lux Sensor
description: Turn on a light when motion is detected and illuminance is below a given threshold.
domain: automation
input:
motion_entity:
name: Motion Sensor
selector:
entity:
domain: binary_sensor
@alfredfo
alfredfo / gist:e6c65293eb210bcf58e7cbdc80db3d7c
Last active July 5, 2023 08:14
bootstrap llvm/musl cross compiler with compiler-rt
#!/bin/bash
set -xeuo pipefail
export ARCH=aarch64
export CTARGET="${ARCH}-gentoo-linux-musl"
export CROSS_COMPILE="llvm-"
export MUSL_TARBALL="/var/cache/distfiles/musl-1.2.4.tar.gz"
export LLVM_TARBALL="/var/cache/distfiles/llvm-project-16.0.6.src.tar.xz"