No needed anymore. The automation works like charme, since it was triggered by the āsunā. I thought while setting up or testing it, it would run because the sun was down.
Awesome work. Saved me alot of headacheā¦ ā donation
No needed anymore. The automation works like charme, since it was triggered by the āsunā. I thought while setting up or testing it, it would run because the sun was down.
Awesome work. Saved me alot of headacheā¦ ā donation
Sorry for my late reply - have been traveling. Understood, thanks so much! It indeed slowly recovers from the night light to get to the full light again with the step values. I āmisuseā the night light mode to dim the lights when my TV is on so itās great when it fast transitions from dynamic lighting to night light as it does now. Is there also a possibility to bypass the step value when it goes from night light back to dynamic lighting? Thanks!
I have this working great in a hallway using a presence sensor to trigger the lights. I have dynamic lighting based on sun elevation to set the appropriate brightness.
However, is it possible to have an AND clause in the trigger, such that if the illuminance sensor has a lux above a threshold it would not trigger (or trigger presence triggered and lux below threshold).?
It doesnāt and I guess the work around would be to use dynamic lighting?
Thanks for letting us know, your kind words and for you support
Glad it hear it working and saved you some time.
Blacky
You can increase the step value to a higher value like 50% or even 100% then in Light Control increase your transition time so it smooths out the light for you.
Hope this helps
Blacky
If you are using a presence sensor to trigger the automation you better off using my Sensor Light blueprint. In this blueprint you will then have the ability to use a LUX sensor so if the light levels are below your setting the automation will run.
This is how I do this and is what you are after.
Blacky
Hello @Blacky - very smart things you do!
Please do you have a clue how to use this blueprint to turn light xx minutes before sunset and let them ON for XX minutes (after OFF) and again ON XX minutes before sunrise? Thank you.
@Blacky need help. i canāt understand why night light doesnāt start
alias: Smart Light
description: ""
use_blueprint:
path: Blackshome/smart-light.yaml
input:
night_lights_conditions:
- time_enabled
night_lights:
entity_id: light.0xa81710b966bd0000
include_night_light_control:
- use_brightness
night_light_brightness: 15
include_night_light_colour_control: use_rgb_colour
night_light_rgb_colour:
- 255
- 0
- 0
include_night_lights: night_lights_enabled
include_sun:
- sun_falling
- sun_rising
light_switch:
entity_id: scene.evening_mode
end_scenes:
- scene.morning_mode
sun_elevation_rising: -10
sun_elevation: -1.5
night_lights_before_time: "06:30:00"
night_lights_after_time: "00:00:00"
Thanks for your kind words.
I am assuming your asking to;
If this is correct then just use sun elevation and time triggers.
Blacky
Thanks for your YAML.
There is one thing I am not sure of and that is your scenes. Scene āevening mode" should have your lights ON and scene "morning modeā should have your lights OFF.
That said you will need to add;
Once you have done that it all should work.
To create a Toggle Helper, follow these steps:
Blacky
thanks for answering
evening mode turn on āevening lightā and roller shades close.
morning mode open roller shades only.
in night lights i used other light like night light.
interested that, night light not ON but OFF(turned on in manual mode) by time. and today it started āevening modeā by ābefore timeā and off night light.
Maybe use this blueprint to control your lights and use just light entities not scenes. Then have a look at this blueprint for your shades click here, it seams to have a lot of support.
Blacky
You have created a script with extensive capabilities. I just use them. Interestingly, I have no problems with curtains, everything works perfectly
Hello, @Blacky thank you for anÅwer but I have bad news. None of your blueprints doesnĀ“t work on my installation :Ćŗ Really donĀ“t know what could be wrong. I tried it for motion sensor (Philips HUE with light sensor) to turn ON specified light (in fact sonoff switch) under certain light conditions (10 Lux) and turn the same switch off after 30 seconds if no motion detected. It turns the switch ON properly but never turn OFF. Where should I start?
If you are using a motion sensor then use my Sensor Light blueprint.
If you would like to turn ON and OFF a light on a trigger option provided in this blueprint then you use this blueprint. Example, I use this blueprint to turn lamps ON at sunset and then OFF at 11:30pm. That is really what this blueprint is designed to do. Other examples are;
You can mix an match what you would like to do. As I doā¦ I turn ON when sun sets and OFF at X time.
So you are asking to turn a light ON when motion is detected if your LUX sensor is below 10 and then when the motion sensor clears then in 30 seconds you would like the light OFF then use my Sensor Light blueprint. Your motion sensor is the trigger, add your light in and use Ambient. Try using the Sensor Light blueprint and if you have any questions on the sensor light blueprint post a question under that post and maybe post your YAML settings of the automation so I can help you further.
What is your YAML Settings? This YAML code are the settings you have selected in the automation so I can help. To do this go into your automation, top right 3 dots, Edit in YAML, copy all the code, come back to the forum and in your reply at the top tool bar click on ā</>ā and paste code in there.
Blacky
Itās a bit mixed up. Actually, I am dealing with two automations. You wrote me a nice tutorial for the first one, and itās about turning on the lights based on sunrise and sunset and the time.
The latter is built on a sensor that detects movement and lighting value. If the ambient light value is lower than 10Lux and at the same time movement is detected, then the automation should turn on the switch and leave it on for 30 seconds after the last movement is detected. Any further movement should stop the countdown. If no further movement is detected for 30 seconds, the switch will turn off. And I canāt set itā¦
Use this blueprint Sensor Light - Click Here. This is the one you need for motion sensor. In the blueprint in triggers add your motion sensor as the trigger, then in Lights add your light/s in Lights - Switches - Scenes - Scripts as entities (green selection) and set the Time Delay to 0.5ā¦ click save and your done.
Blacky
And how about a light sensor?
In the sensor light blueprint use Ambient, enter in your sensor and adjust your settings.
Blacky
This is it! It works. I knew you are a genius