Hi all,
In my house, I have a daily time of day based light level virtual device that changes throughout the day. There are then other events for specific lights that set the actual light level to the virtual device level when it changes. For some lights, I have a second virtual device I call a trim adjuster. If my global time of day device level is too bright for that specific light, I can trim the level the light is set to be more appropriate without having to change a bunch of other events. I do this with an event that sets the device to an expression: "$$DVR:434:+$$DVR:704:" (for example). The trim device (704) has a status range of -50 to 50.
So, with the above in mind, I am trying to figure out a way to only set the device to the sum of the above expression if the value is greater than zero (or some other low number).
IE:
IF SpecificDevice is not OFF
AND IF TimeofDay_Device changes
AND IF TimeofDay_Device+TrimeDevice is > 0
THEN
Set Device to Expression: $$DVR:434:+$$DVR:704:
Hope this makes sense, sorry if I am missing something obvious.
Thank you!
In my house, I have a daily time of day based light level virtual device that changes throughout the day. There are then other events for specific lights that set the actual light level to the virtual device level when it changes. For some lights, I have a second virtual device I call a trim adjuster. If my global time of day device level is too bright for that specific light, I can trim the level the light is set to be more appropriate without having to change a bunch of other events. I do this with an event that sets the device to an expression: "$$DVR:434:+$$DVR:704:" (for example). The trim device (704) has a status range of -50 to 50.
So, with the above in mind, I am trying to figure out a way to only set the device to the sum of the above expression if the value is greater than zero (or some other low number).
IE:
IF SpecificDevice is not OFF
AND IF TimeofDay_Device changes
AND IF TimeofDay_Device+TrimeDevice is > 0
THEN
Set Device to Expression: $$DVR:434:+$$DVR:704:
Hope this makes sense, sorry if I am missing something obvious.
Thank you!
Comment