Right now I have a variable (lets call it variable A) that is set by a schedule that checks power usage from a smart plug every 1 second.
So the values are numeric and always jumping around.
As an example, what I want to do now is say:
"If variable A is between 0 and 5 for at least 30 seconds, set variable B to OFF"
"If variable A is between 5 and 10 for at least 60 seconds, set variable B to DOOR"
"If variable A is between 10 and 1000 for at least 20 seconds, set variable B to ON"
"If variable A is 1000 or higher for at least 30 seconds, set variable B to HIGH"
I haven't been able to figure out how to do this with Indigo UI, and couldn't adapt any of my existing Python scripts to work correctly.
Thanks,
Chris