Skip to content

Instantly share code, notes, and snippets.

View JoshBello's full-sized avatar
🙃
Debugging

Josh Bello JoshBello

🙃
Debugging
View GitHub Profile
blueprint:
name: Motion-Activated Light (Night Only)
description: Turn on a light when motion is detected, but only between sunset and sunrise.
domain: automation
input:
motion_sensor:
name: Motion Sensor
description: The motion sensor that triggers the automation
selector:
entity:
blueprint:
name: Two Light Sync v16
description: >
Sync on/off state and brightness between two lights.
• Bidirectional sync or independent target mode
• Optional brightness sync with force full brightness option
• Context-based loop detection
• Configurable transition, tolerance, and debounce
• v16: Fixed restart race condition — tracker is now set BEFORE
turning on the light so mode: restart cannot skip it.
0x7DaC0f95550a984151662C9b7Cf1E43731ea222d
backup