This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Switching sunrise/sunset-dependent light
#1
Hello, everybody,
i would like to write a script that switches the light independently from sunset or sunrise.

For example:

sunrise + 0 hours
40% Dimming

Sunrise + 2 hours
100% Dimming

Sunrise + 5 hours
100% Dimming

Sunset - 4 hours
100%

Sunset - 2 hours
100%

Sunset - 2 hours
100%

sunset + 0 hours
80% Dimming

Sunset + 1 hour
50% Dimming

Sunset + 2 hours
30% Dimming

Sunset + 3 hours
15 % Dimming

How would the script for this look like? How can I use sunset + sunrise for this?



Thanks a lot
Chris
Reply
#2
Easiest way is to you use a scheduler with sunrise / sunset settings.
Reply
#3
(24.03.2020, 07:45)Joep Wrote: Easiest way is to you use a scheduler with sunrise / sunset settings.


i need a script, because the motion detector should switch the light dependent.

i.e. if group address = 1 with motion detector then dependent switching.
Reply
#4
You can create a virtual object that the scheduler will use. Then create a script that will act as a gate so the value is only written when the motion detector is off.
Reply


Forum Jump: