I think I know what you mean but just to check, you think the input fields for ‘Only run before time’ and ‘Only run after time’ should be swapped? That makes sense to me;) I will change it in the blueprint.
That is hard to support with a good input field for this automation, because weekday inputs are not yet supported.
A workaround I can think of is creating 2 automations with this blueprint, and then turning the automations on and off based on the weekday.
Something a bit like:
- alias: Turn off blueprint automation 1
initial_state: true
trigger:
platform: time
at: '00:00:00'
condition:
condition: time
weekday:
- mon
- wed
- fri
action:
- service: automation.turn_off
entity_id: automation.generated_from_blueprint_1
Good evening, the script works perfectly, I would like to have the light switched on via a door contact and if no movement was detected for a period of 5 minutes, switch the light off again. Maybe someone can help me
Just use the door sensor as the motion sensor entity.
Otherwise just use the blueprint as described, it will work if the door sensor state = ‘on’ when the door is open
Hey, i use this automation to trigger two scripts that call rest commands. One as the turn on entity and one as the turn off entity.Any ideas how I can wrap these scripts in some entity so that the turn off wait time will work?
Indeed, my apologies (RTFM). It’s now up and running in the correct way.
I created two automations with it: one for a Xiaomi based motion sensor, the other with a Lidl sensor.
The Xiaomi based sensor works well with the script; the Lidl one (which has no Illuminance) doesn’t trigger the script. I created different Helpers to check if that is the case ( I wanted different settings), but it didn’t help so far.
Hello I have a question.
I want to use this blueprint to toggle my lighswitch with a motion sensor.
I want that the light is turned off after 2mins, I used 2 as InputNumber.
But the switch is tunred off after 1,30 mins. It tunes off after the motion sensor change to state clear.
I’ve got a feature request. At night I prefer to have the lights a little bit less bright.
Could you add a brightness parameter to turning on the lights?
And optionally… a second brightness between specific times. But I could work around this by creating 2 blueprint automations I guess
Have you created an input_number entity like described in the first post? Or have you entered a hardcoded value in the blueprint? Please read the first post again.
Well I don’t really see the point in that… you either want to control your lights based on illuminance levels or by sunstate right? Or am I overlooking some usecase?
Hi, first of all, thank you for all the effort you’ve put into this Blueprint.
I probably have a noob question but I was wondering the Following:
my setup is pretty basic: Activate a scene(since I want to dim my light) by motion and auto turn the
target entity off. My Yaml file looks like this.
- id: '1612558178556'
alias: Turn on light, switch, scene, script or group based on motion and illuminance.
description: ''
use_blueprint:
path: freakshock88/motion_illuminance_activated_entity.yaml
input:
motion_sensor: binary_sensor.shenzhen_neo_electronics_co_ltd_battery_powered_pir_sensor_v2_sensor_5
target_entity: scene.badkamer_snachts
target_off_entity: light.badkamer
no_motion_wait: input_number.badkamer_wait_time
Unfortunately the light does not turn off automatically.
any idea where this is going wrong?
I think there’s other blueprints available to suit that purpose, this one supports illuminance conditions.
I don’t want to make an overcomplicated blueprint that ‘does-it-all’, that would be unmaintanable.