Help with complex Room Lighting

I have several RM rules that run this automation, but I was curious if I could get it done with one RL app instead. The basic use case:

  1. When mode is Home and there is motion the light should come on at a level based on a variable (testLuxPercent) with temperature of 4500. The light should go off if no motion for 1 minute.
  2. When mode is Evening the light should come on 100% at temp 2900. It should stay on regardless of motion.
  3. When mode is Asleep and there is motion the light should come on at 20% and temp 2900. The light should go off if no motion for 1 minute.
  4. The light does not need to fade between levels... i.e. if testLuxPercent changes from 80% to 20% the light can change immediately
  5. When mode changes from Home to Evening, the light should transition over time from temp 4500 to temp 2900.

I actually have it all working except for #4 and #5. I tried using "Use transition for Activation," and the transition happens with #4 (light level when Home), but not #5 (temperature when mode changes). That's the opposite of what I want.

As I said, I have a several RM rules that run parts of this automation, and they are working mostly OK, so there's no need to change it... just curiosity to see if I could.

This is what I have so far. Any suggestions?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.