Is there an option to skip the automation if the light is already switched on? iām sorry! iām pretty new in this stuff. it would the great if you could help me with that!
@Sickpumpkin This is what Iām also looking for. Doesnāt appear to be built in at the moment and the preferred method is to use a separate bypass switch which doesnāt work for me. Iāve been trying two solutions which work, just deciding which is betterā¦
- Have a 2nd automation which disables the Sensor Light automation when you donāt want it to activate.
- Have a helper binary switch which mirrors your trigger sensor but add whatever conditions you want. Then use that helper to trigger Sensor Light.
You could try that and see if it works for you.
Blacky
Welcome to the community.
No there is no option for this. Best way to have manual control is to use the bypass.
Blacky
All is looking good, the only thing I can see is in your night lights you have a brightness setting of 1%. Some lights will not work at a low value like this and could be the reason they are not staying ON. Try to increase it to 5% or 10%ā¦ a % value they will work at.
Let us know if I am on the right track.
Blacky
It will accept a binary sensor into the bypass.
Some people like using a bed occupancy sensor. If you would like a DIY then I would try this one first, click here.
I personally use do not disturb (focus in apple) on my phone.
Blacky
Hi Blacky,
It seems like the Transitionās donāt seem to be working with my old Yaml code. I have put some exaggerated Sun present numbers in just to activate the Blueprint earlier.
Iām a little confused about the use of the Transition options ā Transition off or on? If Iām going from lights off to lights on at 50Ā° do I use the Transition to ON and leave the Transition to OFF to whatever?
When Iām dimming down in āNight Lightsā do I use the Transition OFF (or ON)
I managed to get option 4 in Dynamic Lighting but to transition from 10% to 75% I had to use the SunĀ° angles to make any Transition ā The Transition in the Dynamic Lighting seems to do nothing.
Again Iām probably totally misunderstanding something but Iām dammed if I can see it!!
Any help?
Perhaps you could configure and send me your Yaml file so I can see what works for you.
My need once more so we are both on the same page.
1, At a set Sun position in the evening I would like my outside lights to gradually get brighter following the Sun as it moves into darkness and the light would be at 100% brightness.
2, At a set time I would like the same lights to dim down slowly to a set level apx 10%, depending on the ability of my light to stay flicker free at whatever % - once I get it going I can adjust the Brightness, Transition and Sun elevation to suit my needs.
3, At a set time in the Evening/Night turn off the lights completely.
Again any help to get this going would be much appreciated and thanks in advance for the help.
Below in my latest YAML dump.
alias: Blacky Outside light tester
description: Blacky Outside Lights on and off test
use_blueprint:
path: Blackshome/sensor-light.yaml
input:
motion_trigger:
- schedule.a_test_light_schedule
include_sun: sun_enabled
light_switch:
entity_id: light.my_test_moer_zigbee_dimmer_light_2
include_light_control:
- use_transition
- use_brightness
light_brightness: 50
light_transition_on: 600
light_transition_off: 0
include_night_lights: night_lights_enabled
night_lights:
entity_id: light.my_test_moer_zigbee_dimmer_light_2
night_time_delay: 0
include_night_light_control:
- if_lights_are_on_adjust_when_crossing_over
- use_brightness
- use_transition
night_light_brightness: 10
night_light_transition_on: 0
night_lights_conditions:
- time_enabled
night_lights_after_time: "18:30:00"
night_lights_before_time: "19:10:00"
time_delay: 0
light_colour_temperature: 5500
night_lights_sun_elevation: 2
night_lights_sun_elevation_rising: -4
sun_elevation: 50
night_light_transition_off: 600
night_lights_entity_state: []
Regards,
Bobā¦
Hi there,
i checked out this blueprint and i think this is very good.
But I canāt manage to use the AMBIENT function. My light always comes on, even if the ambient sensor delivers lux values āāhigher than 5. What could I possibly be doing wrong?
This is my configuration:
alias: Licht bei Bewegung BĆ¼ro
description: ""
use_blueprint:
path: Blackshome/sensor-light.yaml
input:
motion_trigger:
- binary_sensor.bewegungsmelder_buro_motion_detection
light_switch:
entity_id:
- light.dimmable_light_1_26
- light.dimmable_light_1_27
- light.dimmable_light_1_28
- light.dimmable_light_1_29
time_delay: 0.5
include_light_control:
- use_brightness
- use_colour_temperature
- use_transition
light_brightness: 25
light_transition_off: 10
ambient_light_value: 5
include_ambient: ambient_enabled
light_transition_on: 0
light_colour_temperature: 7600
include_dynamic_lighting: disable_dynamic_lighting
motion_bypass_lights_on: []
ambient_light_sensor: sensor.bewegungsmelder_buro_illuminance
include_bypass: []
motion_bypass_lights_off: []
Greetings Karl Heinz
Hi Blacky,
The light went straight up to 50% and is staying there - Iām only a little way into the automationā¦ Again it seems to be ignoring the Transition ON timing.
Regards,
Bobā¦
Is it possible to collapse and expand entries in blueprints? That would be awesome and make these blueprints so much easier to modify
First, thanks for this powerful blueprint!
Iād like to trigger an automation based on multiple situations with some overlapping conditions. Hereās an example:
- Trigger 1: Light level drops below 40lx AND someone is at home AND time is before 23:00 (11:00 PM)
- Trigger 2: First person arrives home (e.g., through location tracking or door sensor) AND light level is below 40lx AND time is before 23:00 (11:00 PM)
Question: Whatās the recommended way to achieve this? Here are some options I found:
- Multiple Simple Binary Triggers:
- Trigger 1: Light level < 40 lux OR First person arrives home
- Use the UI to set conditions (start/end time, days of the week, device tracker, sun, light level) for all triggers.
- Template Trigger:
- Define a single template trigger with the specific combination of triggers and conditions: (First person arrives home & time is < 23h & lux) OR (Lux < 40 & someone is at home & time is < 23h)
- No need to set conditions separately in the UI.
Iām unsure how the conditions (Lux, time, presence) interact with each other in the UI. When setting multiple conditions like Lux below 40lx, time before 23h, sun below horizon, and someone at home, are these treated as:
- OR conditions: (If any one condition is met, the automation triggers)
- AND conditions: (All conditions must be met for the automation to trigger)
For example, if the trigger is occupancy > 0 and I also set a device tracker as a condition for other triggers, how would they interact?
I tried to play around with the options and the simpler automations work without problems. However, adding more conditions makes it difficult to troubleshoot why they arenāt working.
Thanks in advance for any help!
Thank you very much!
Hi Bobie
Transition ON
Night Lights - Transition - ON
In your YAML you have no Dynamic Lighting options selected.
Below I will provide your YAML you need. Copy and paste it replacing your YAML and I will explain below.
alias: Blacky Outside light tester
description: Blacky Outside Lights on and off test
use_blueprint:
path: Blackshome/sensor-light.yaml
input:
motion_trigger:
- schedule.a_test_light_schedule
light_switch:
entity_id: light.my_test_moer_zigbee_dimmer_light_2
time_delay: 0
include_light_control:
- use_transition
light_transition_on: 5
include_dynamic_lighting: enable_sun_elevation_brightness
dynamic_lighting_min_brightness: 10
dynamic_lighting_sun_elevation_start_falling: 5
dynamic_lighting_sun_elevation_end_falling: -3
include_sun: sun_enabled
sun_elevation: 5
include_night_lights: night_lights_enabled
night_lights:
entity_id: light.my_test_moer_zigbee_dimmer_light_2
night_time_delay: 0
include_night_light_control:
- if_lights_are_on_adjust_when_crossing_over
- use_brightness
- use_transition
night_light_brightness: 10
night_light_transition_on: 600
night_light_transition_off: 5
night_lights_conditions:
- time_enabled
night_lights_after_time: "18:30:00"
night_lights_before_time: "19:10:00"
- I have set up dynamic lighting option 4.
- Because we are only concerned about dynamic lighting at sunset we are only concerned with these inputs. You will have to play around with them but it will start you of. Dynamic lighting will control the brightness so we donāt need to select it in the light control options but we will use transition to smooth it out between changes within dynamic lighting and 5 sec will do that.
- Dynamic Lighting - Max Brightness Value = 100%
- Dynamic Lighting - Min Brightness Value = 10%
- Dynamic Lighting - Sun Elevation Descending - Start Point = 5 Deg
- Dynamic Lighting - Sun Elevation Descending - End Point = -3 Deg
- Dynamic Lighting - Heartbeat
- Dynamic Lighting - Step Value
- Dynamic Lighting - Dead Zone (Ā±)
- In āThe Sun Optionā we are only concerned with āSun Elevation Fallingā as we are just dealing with sunset. this allows you to use your timer helper is from 4pm until 9pm. Having a start time of 4pm is earlier and allows us to use the sun to trigger it ON when it gets to 5 deg. Note the 5 deg is the same as used in āDynamic Lighting - Sun Elevation Descending - Start Pointā so you will need to adjust these together if required. Also when adjusting the 5 deg make sure 4pm is well before this happens and you could even have 3pm if you require.
- Nightlights set up for you.
I havenāt tested this set up but you should be good to go. The main thing to adjust is
- Dynamic Lighting - Sun Elevation Descending - Start Point = 5 Deg
- Dynamic Lighting - Sun Elevation Descending - End Point = -3 Deg
- Sun Elevation Falling = 5 Deg
Let us know if this works for you.
Blacky
You are probably finding that your light is coming ON when it is below 5 but it will not turn OFF until it is above 80 as your āAmbient Light - High Lux Valueā is set to this. Having a Low and High setting allows us to have a buffer zone so the light wont flicker. You can adjust the āAmbient Light - High Lux Valueā down to 5 but it can be lower then your low setting.
Let us know if this works for you.
Blacky
Agree, please see this feature request and vote on it as it is a limitation in HA.
It is under development so HA is onto it. GitHub Link. It is why we love HA they really listen to us all.
When HA release it it will be implemented.
Blacky
First thing is to work out your trigger. Normally it is a motion sensor but it looks like you are asking for 3 things.
- Time
- LUX
- Device Tracker
Out of the 3 we can use time as the trigger and set LUX and Device Tracker as conditions. If you use a schedule helper for your time and enter it into the trigger. This will be the time you would like the lights ON when it is below 40lux and someone is home.
Then set 2 conditions. Both have to be met (True) for the automation to run.
- The Ambient Options
- The Device Tracker Options
Hope this helpsā¦ let us know how you go.
Blacky
Hi Blacky,
Any luck on looking at the night lights crossover function?
I have sensor light in many of my rooms now and they all crossover to night light scenes (using the time option) even when the option is unchecked so I donāt think that check box is working.
Thanks.
100% that is the next thing on my list and I am back to normal now with work so I have some free time now.
Stay tuned
Blacky
Thanks very much
Your lighting experience, your way ā take control and customize it to perfection!
Bugs Fixes
- Fixed bug when using scenes and crossing over from normal lights to night lights and vice versa. The option āIf lights are ON, adjust the lights when crossing overā now works with scenes but you must use āScenes & Scripts - Toggle Helperā.
If you like this blueprint? Consider hitting the button in the top post
If you like my blueprints, and would like to show your support or just say thank you? Click Here
Enjoy
Blacky