I’m trying to create a smooth wake-up experience using my Philips Hue bulb and a Z-Wave dimmer in my bedroom. The idea is to have the Hue bulb trigger a gradual increase in brightness from my Z-Wave-controlled light. I’ve set up a rule to handle this, but I’m running into some issues. Here’s what I’ve done so far:
I created a rule that activates when the Hue bulb turns on. It’s supposed to increase the brightness of my bedroom light by 10% every minute until it reaches 100%. The rule looks like this:
plaintext
rule “morning alarm”
when Item LightDeck changed to ON
then
logInfo(“WakeupStarted”, “Wakeup Started”)
if(Snooze.state==OFF && MorningAlarm.state==ON) {
LightMaster.sendCommand(10)
Timer0 = createTimer(now.plusMinutes(1)) [| LightMaster.sendCommand(20)]
… (and so on until 100%)
}
else if(Snooze.state==ON) {
LightMaster.sendCommand(OFF)
logInfo(“WakeupEnd”, “Wakeup Ended”)
}
end
The problem is that while there are no syntax errors, the rule isn’t working as expected. My logs show that the model isn’t being parsed correctly. I’m not sure where the issue lies—whether it’s with the rule structure, the timers, or something else entirely.
Has anyone successfully set up a similar gradual wake-up system? Any tips or suggestions would be greatly appreciated! I’m really hoping to get this working for a more pleasant morning routine. ![]()
~John