Thx Tom for your quick reaction!
But for example I use this Progressive Dimmer rule as a wake up dimmer.
But I have changed/added some things (the dimLevel to 90 instead of 100).
I have made another rule to do the same when I trigger a switch.
But now I would rather have de dimLevel to 70 so I have to change it twice.
Is there a way to make a “standard rule” to dim the lights and refer to it in another rule?
to be clear I want this part as the standard rule
if (timer === null) {
timer = createTimer(now.plusSeconds(0), [ | //Starts immediately
Light1_Dimmer.sendCommand(dimLevel)
if (dimLevel == 100) {
timer = null // cancel timer
} else {
dimLevel = dimLevel + 1
timer.reschedule(now.plusMillis(timeoutMills)) // reschedule timer is 3 * 600 mills
}
])
}