Hi,
I am trying to figure out how to create an event that will slowly change the value of a global light value (that all my devices change to) on a set schedule. I currently have something along the lines of (using EasyTrigger):
(one increments a global light level value, the other a global color temperature value, devices 433, color and 434, level are the global virtual devices if that wasn't clear)
The issue is I think I am creating a bit of a loop in that there is not a way to arrive at 92 (for example) from, for example, 74 by adding 5 and thus the statement can never be true (or essentially, not require a change). I also realize that my above expression is missing what to do if the value does finally equal the specified value. Not sure the best way to handle the third scenario of the device value eventually equaling the target value. Finally, I am not addressing the need for whole-numbers, which I assume are needed.
This is a long way of asking, how can I do the above better? In addition to a better way to construct the expression, is there also a better way to approach this that is less taxing on the system? I use the counter condition to control which event is "allowed" to run and the counter is changed via other scheduled events. Again, I am sure there is probably a better way!
Thank you very much!
I am trying to figure out how to create an event that will slowly change the value of a global light value (that all my devices change to) on a set schedule. I currently have something along the lines of (using EasyTrigger):
(one increments a global light level value, the other a global color temperature value, devices 433, color and 434, level are the global virtual devices if that wasn't clear)
The issue is I think I am creating a bit of a loop in that there is not a way to arrive at 92 (for example) from, for example, 74 by adding 5 and thus the statement can never be true (or essentially, not require a change). I also realize that my above expression is missing what to do if the value does finally equal the specified value. Not sure the best way to handle the third scenario of the device value eventually equaling the target value. Finally, I am not addressing the need for whole-numbers, which I assume are needed.
This is a long way of asking, how can I do the above better? In addition to a better way to construct the expression, is there also a better way to approach this that is less taxing on the system? I use the counter condition to control which event is "allowed" to run and the counter is changed via other scheduled events. Again, I am sure there is probably a better way!
Thank you very much!
Comment