šŸ’” Sensor Light - Motion Sensor - Door Sensor - Sun Elevation - LUX Value - Scenes - Time - Light Control - Device Tracker - Night Lights

@funkstille

Welcome to the community.

I donā€™t use them, but what state do your knx motion sensors provide? It should be a ON / OFF state. If so then you just use the knx motion sensors.

Blacky :smiley:

@Blacky AWESOME work, canā€™t believe all the effort you put into this.
I have a feature request that (I think) would make this blueprint even more awesome:

On the Lights section of the blueprint add two options with checkboxes:

ā˜‘ Use automation to turn selected lights ON (default: selected)
ā˜‘ Use automation to turn selected lights OFF (default: selected)

This would give the user more control to what to do with the automation. My use case is I want to turn on lights manually and use the automation just to turn these off.

I know that you made the Manual Light blueprint for this but It isnā€™t nearly as powerful as this one that has bypass; sun elevation; and other cool configs.

What do you think?

3 Likes

@maxipallotto

Thanks for your feedbackā€¦ I will add it to the list of suggestions.

Blacky :grinning:

2 Likes

Sweet. Thatā€™s a nice idea! :+1:

1 Like

Thx for the input!
I have been using scenes for lights and night lights anyways :slight_smile:

Thatā€™s my script which I am using to turn off the lights from now on:

alias: Script Light Staircase FF pre-off
sequence:
  - action: scene.turn_on
    metadata: {}
    data: {}
    target:
      entity_id:
        - scene.scene_staircase_ff_night
  - action: scene.turn_on
    metadata: {}
    data: {}
    target:
      entity_id: scene.scene_staircase_ff_off
description: Triggers night scene first and then turns lights off
icon: mdi:lightbulb-auto-outline

Hi Blacky,
Thank you for all your efforts!

Can you check out my error?
Iā€™m trying to establish a pretty simple (yet :wink: ) automation using your template and it returns error Message malformed: extra keys not allowed @ data['triggers']

Thatā€™s what Iā€™ve tried:

description: ""
use_blueprint:
  path: Blackshome/sensor-light.yaml
  input:
    motion_trigger:
      - binary_sensor.corridor_motion_sensor_motion
    light_switch:
      entity_id: light.wled
    time_delay: 2
alias: Š”Š²ŠµŃ‚ Š² ŠŗŠ¾Ń€ŠøŠ“Š¾Ń€Šµ

Hello Blacky,

can you please add the function that you also have in the Smart Light Blueprint to the Blueprint?

So that you can select the trigger from ā€œOff to Onā€ or ā€œOn to Offā€?

That would be really great.

I have a hallway light that is either always on or always off until a button is pressed.

It works with the Smart Light Blueprint, but unfortunately I canā€™t set a time (e.g. 3 minutes) after which it should go off on its own.

@chris400

Nice one, glad you got it working how you would like it.

Thanks for letting us know.

Blacky :smiley:

1 Like

@YusDyr

Please update your Home Assistant and you will be good to go.

Blacky :smiley:

@Markus1995

Have you looked at this blueprint? :hourglass_flowing_sand: Entity - Run ON Timer

Blacky :smiley:

1 Like

Hi all,
I have a simple application and thought i could use this blueprint. But the complexity is a bit overwhelming.
I want to reset my Internet router some time during the night, for example at 02:00 and switch it back on at 02:15.all other times the router should be stayed ON.
I want to use a TAPO Plug for this (entity: switch.tapo_smart_wcd_10)
But I do not know to tackle thisā€¦
I was thinking of using Night Lights Mode, but instead of switching a light ON, I just want to switch it OFF for 15 minutes.
.
This is what I came up with, but I dont see any On or OFF functions:

alias: Smart Light Fritz!Box 7490 - Reset (Tapo 10)
description: Smart Light voor uit- en aanschakelen Fritz!Box 7490
use_blueprint:
  path: Blackshome/smart-light.yaml
  input:
    after_time: "03:00:00"
    before_time: "02:00:00"
    light_switch:
      entity_id: switch.tapo_smart_wcd_10

I am sure, I do somthing stupid or do noth know how to use the Bp properly.
Anyone who could help me with this?

And Ohhh, I forgot something; with a restart from Home Assistant, the Smart Plug should default to ON, so my Internet connection comes on-line againā€¦

I try it for the first time. I canā€™t trigger any lamp or scene.

Here is the yml

talias: Sensor Light
description: ""
use_blueprint:
  path: Blackshome/sensor-light.yaml
  input:
    motion_trigger:
      - binary_sensor.0x001788010201002f_occupancy
    end_scenes:
      - scene.bad_hell

+1 i have the same use case, motion activated lighting in the ceiling and a mirror light which is turned on manually. Right now I just have a second automation to ā€œfollowā€ ceiling light if itā€™s turned off.

I will move this to the correct blueprint.

Blacky :smiley:

@Olli0073

You have your scene in the Scenes - Scripts To Turn OFF and it should be in Lights - Switches - Scenes - Scripts.

If you use a scene then you should create a Scenes & Scripts - Toggle Helper and then you need to create another scene with everything OFF and add this scene into Scenes - Scripts To Turn OFF.

I am thinking that you may not need a sceneā€¦ then you just add your light entities into Lights - Switches - Scenes - Scripts and set all the light settings in Light Control as this is a lot easier than creating scenes.

talias: Sensor Light
description: ""
use_blueprint:
  path: Blackshome/sensor-light.yaml
  input:
    motion_trigger:
      - binary_sensor.0x001788010201002f_occupancy
    light_switch:
      entity_id: scene.bad_hell

Blacky :smiley:

@xtfrost

For you mirror light that you turn ON manually use this blueprint :magic_wand: Manual light control with auto OFF and opt to use the Motion Sensor Option.

Blacky :smiley:

I just made a simple automation to always turn off when the ceiling lights turn off, I usually push the button to turn the lights off, where motion off is just a ā€œbackupā€

But the Manual light is just what I need for other rooms, where the lights arent turned off manually - You almost have an automation for everything, thanks :smiley:

1 Like

Blacky,

Iā€™ve been using your blueprints for a while now annd love them thank you! I cannot for the life of me get the nightlight mode to trigger on from my motion sensor. It works perfectly during the day time hours I have configured, however at night it will never trigger.

If I run the automation manually during the night it will turn on the lights correctly.

id: '1701985979449'
alias: Upstairs Bathrooms Lights
description: ''
use_blueprint:
 path: Blackshome/sensor-light.yaml
 input:
   motion_trigger:
     - binary_sensor.upstairs_bathroom_motion_sensor_occupancy
   light_switch:
     entity_id: light.upstairs_bathroom_lights
   end_scenes: []
   include_light_control: use_brightness
   include_time: time_enabled
   after_time: '05:00:00'
   before_time: '22:30:00'
   include_night_lights: night_lights_enabled
   night_lights:
     entity_id: light.upstairs_bathroom_lights
   include_night_light_control:
     - use_night_brightness
     - use_brightness
   night_light_brightness: 2
   night_lights_after_time: '22:31:00'
   night_lights_before_time: '04:59:00'
   time_delay: 30
   include_bypass: bypass_enabled_stop
   night_time_delay: 3
   night_lights_conditions:
     - time_enabled
   night_lights_entity_state:
     - binary_sensor.upstairs_bathroom_motion_sensor_occupancya

Simple fix. You need to include your Night Lights time window in the main time window.

Hi Blacky, this is an amazing blueprint! One small request, is it possible to add an option to specify brightness of bypass? Iā€™m using this to control a zigbee bulb that I typically want at 70%, then 5% for night light mode, but would like it to be at 100% if I activate the bypass switch.

I jumped into the yaml config and it is much more complex than the automation I have ben playing with so far :grimacing:

Thank you!