All blueprints

Showcase/myggspray-auto-lights.yaml

IKEA MYGGSPRAY - Smart Motion Lights

automation · HA 2025.7.0+ · 14 inputs

Mock entities only — nothing here controls a real home. Import into HA for real devices.
Import in HA

Select one or more motion detectors. They do not need to expose a light-level entity; motion from any selected detector can turn the lights on.

No entity selected — pick below, like in HA.

Select one or more light-level entities. These can belong to different detectors from the motion sensors. The lights may turn on when at least one valid reading is below the threshold.

No entity selected — pick below, like in HA.

Motion only activates the lights below this level.

lx

All selected lights must be off before activation.

No entity selected — pick below, like in HA.
%

Keep the bulb's remembered colour, choose RGB, or choose white temperature.

Used only when Automation Colour is RGB colour.

#ffd6aa · rgb(255, 214, 170)
Same RGB picker HA shows for colour lists.

Used only when Automation Colour is White colour temperature.

K · warm

Zero is usually best for avoiding a visible ramp from an old state.

s

Safety timeout for a stuck sensor or missed clear event.

Automation YAML — live

Updates as you configure, like HA's YAML view. Paste into an automation using this blueprint.

alias: IKEA MYGGSPRAY - Smart Motion Lights — demo
description: Created from 0libote showcase replica (mock entities)
use_blueprint:
  path: 0libote/myggspray-auto-lights.yaml
  input:
    motion_sensor: []
    illuminance_sensor: []
    lux_threshold: 30
    target_lights: []
    brightness_pct: 70
    colour_mode: keep
    rgb_colour: [255, 214, 170]
    colour_temperature: 2700
    turn_on_transition: 0
    no_motion_duration: {hours: 0, minutes: 2, seconds: 0}
    maximum_runtime: {hours: 3, minutes: 0, seconds: 0}
    restore_previous_profile: true
    respect_manual_changes: true
mode: single

Sections open and collapse exactly as declared in myggspray-auto-lights.yaml. Entity pickers only list domains the blueprint's filter allows. The YAML panel shows what HA would store for an automation built from this blueprint.