Dim, wait & return to previous

Posted on
Wed May 10, 2017 12:20 am
haavarda offline
User avatar
Posts: 599
Joined: Aug 18, 2012
Location: Norway

Dim, wait & return to previous

Sometimes I want to use my light to notify me of an event. Today I do this by toggling the lights twice.
But I think could I do this more elegant with a python script. Anyone that can help to set up a script as described below?
Any help is much appreciated :)

1 Store the current dim level
2 Dim the light 80%
3 Wait 4 seconds
4 Return to the stored dim level

Håvard

Posted on
Fri May 12, 2017 5:45 am
DaveL17 offline
User avatar
Posts: 3403
Joined: Aug 20, 2013

Re: Dim, wait & return to previous

haavarda wrote:
Sometimes I want to use my light to notify me of an event. Today I do this by toggling the lights twice.
But I think could I do this more elegant with a python script. Anyone that can help to set up a script as described below?
Any help is much appreciated :)

1 Store the current dim level
2 Dim the light 80%
3 Wait 4 seconds
4 Return to the stored dim level

HI - Have a look at this thread -- it may be just what you're looking for.

Posted on
Sun May 14, 2017 9:57 am
haavarda offline
User avatar
Posts: 599
Joined: Aug 18, 2012
Location: Norway

Re: Dim, wait & return to previous

Hi Dave.
With minor modifications that did exactly what I wanted.
Thanks!


Sent from my iPhone using Tapatalk

Håvard

Posted on
Mon May 15, 2017 3:59 am
DaveL17 offline
User avatar
Posts: 3403
Joined: Aug 20, 2013

Re: Dim, wait & return to previous

Glad that helped. Cheers!


Sent from my iPhone using Tapatalk

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest