Skip to content

Instantly share code, notes, and snippets.

@Ultra9k
Ultra9k / motion_switch_light.yaml
Last active December 2, 2025 07:52
This is a blueprint based on the original motion_light from Home Assistant. This one, however, allows you to control not only lights but also switches when motion is detected.
blueprint:
name: Motion-activated Switch and/or Light
description: Turn on a switch and/or light when motion is detected.
domain: automation
input:
motion_entity:
name: Motion Sensor
selector:
entity:
domain: binary_sensor