How to do gradual brightness increase by time

Moderator: leecollings

Post Reply
Dave21w
Posts: 404
Joined: Sunday 29 November 2015 21:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: UK
Contact:

How to do gradual brightness increase by time

Post 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
AllesVanZelf
Posts: 265
Joined: Monday 05 February 2018 8:42
Target OS: Raspberry Pi / ODroid
Domoticz version: 12467
Location: Netherlands, near Haarlem
Contact:

Re: How to do gradual brightness increase by time

Post 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.
Domoticz 2020.1 (12230) on Raspberry Pi 3B with Raspian Buster. Besides Domoticz, Rpi is running Pi-Hole.
Dave21w
Posts: 404
Joined: Sunday 29 November 2015 21:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: UK
Contact:

Re: How to do gradual brightness increase by time

Post by Dave21w »

I will give it a try and report back

Many Thanks
Dave21w
Posts: 404
Joined: Sunday 29 November 2015 21:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: UK
Contact:

Re: How to do gradual brightness increase by time

Post 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 :lol:
wakeup.jpg
wakeup.jpg (31.6 KiB) Viewed 1191 times
Dave21w
Posts: 404
Joined: Sunday 29 November 2015 21:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: UK
Contact:

Re: How to do gradual brightness increase by time

Post 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
Weekday Wakeup .jpg (77.06 KiB) Viewed 1175 times
AllesVanZelf
Posts: 265
Joined: Monday 05 February 2018 8:42
Target OS: Raspberry Pi / ODroid
Domoticz version: 12467
Location: Netherlands, near Haarlem
Contact:

Re: How to do gradual brightness increase by time

Post by AllesVanZelf »

I'm not sure about the time issue. But I have another suggestion.
I created a dummy switch named: Weekend.

Image

with a timer setting like:

Image

Then you do not have to use Day > monday etc.
Domoticz 2020.1 (12230) on Raspberry Pi 3B with Raspian Buster. Besides Domoticz, Rpi is running Pi-Hole.
Dave21w
Posts: 404
Joined: Sunday 29 November 2015 21:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: UK
Contact:

Re: How to do gradual brightness increase by time

Post 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"
Dave21w
Posts: 404
Joined: Sunday 29 November 2015 21:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: UK
Contact:

Re: How to do gradual brightness increase by time

Post by Dave21w »

Good news, started perfectly on time and I'm now back in my fiancee's good books :D

Thanks
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest