Switching sunrise/sunset-dependent light - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: Switching sunrise/sunset-dependent light (/showthread.php?tid=2539) |
Switching sunrise/sunset-dependent light - lenze90 - 23.03.2020 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 RE: Switching sunrise/sunset-dependent light - Joep - 24.03.2020 Easiest way is to you use a scheduler with sunrise / sunset settings. RE: Switching sunrise/sunset-dependent light - lenze90 - 24.03.2020 (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. RE: Switching sunrise/sunset-dependent light - admin - 24.03.2020 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. |