Page 1 of 1
How to do gradual brightness increase by time
Posted: Monday 09 September 2019 10:42
by Dave21w
I'd like to slowly increase the brightness of my landing light on weekdays to help with waking up now the mornings are dark again
Is this possible in blockly, I know how to select the days, the start time and the initial brightness setting but now I'm stuck as to how to wait 5 mins and then set the next brighness level etc up to maximum, probably in 5 steps.
TIA
Dave
Re: How to do gradual brightness increase by time
Posted: Monday 09 September 2019 13:27
by AllesVanZelf
This might be possible like this:
if time is sunrise
do:
set dimmer1 = level 10% after 0 seconds
set dimmer1 = level 20% after 300 seconds
etc.
But I have not tested this.
Re: How to do gradual brightness increase by time
Posted: Monday 09 September 2019 13:33
by Dave21w
I will give it a try and report back
Many Thanks
Re: How to do gradual brightness increase by time
Posted: Monday 09 September 2019 19:35
by Dave21w
Perfect, many thanks for your help, my only issue now is either my lamp brightness does change below about 40% or my dimmer won't go lower than that, I have another bulb to try first, here is what I have anyway - the time was just to test, I don't get up that late

- wakeup.jpg (31.6 KiB) Viewed 1194 times
Re: How to do gradual brightness increase by time
Posted: Tuesday 10 September 2019 8:43
by Dave21w
OK so I completed my weekday wakeup routine as you can see below to start at 5:40AM so it will reach 60% by about 6AM, I'm presently not too popular cause the damn thing decided it would start at 5AM this morning, anyone have any ideas why?
Thanks

- Weekday Wakeup .jpg (77.06 KiB) Viewed 1178 times
Re: How to do gradual brightness increase by time
Posted: Tuesday 10 September 2019 9:21
by AllesVanZelf
I'm not sure about the time issue. But I have another suggestion.
I created a dummy switch named: Weekend.
with a timer setting like:
Then you do not have to use Day > monday etc.
Re: How to do gradual brightness increase by time
Posted: Wednesday 11 September 2019 22:01
by Dave21w
I followed your advice and created a dumy switch set for weekdays with a start time of 5:40AM and an off delay of 20 seconds so once the start action has been completed and detected in blockly the switch will revert to off ready for the following weekday, I also added a daylight sensor at the start so once the day light hours start to get longer again next year it will auto disable.
Tomorrow is the big test, hopefully it starts on time and doesn't wake me up nearly an hour early!
Thanks for your help "AllesVanZelf"
Re: How to do gradual brightness increase by time
Posted: Thursday 12 September 2019 20:37
by Dave21w
Good news, started perfectly on time and I'm now back in my fiancee's good books
Thanks