Trigger only when condition occurs for a given duration?
Posted: Tue Dec 15, 2020 6:08 pm
Something that would help with several of my triggers is to have a "duration" value... This would be a configuration parameter that only executes when the trigger condition has occurred for a given period of time. For example, when certain sensors detect motion for more than a few seconds turn on a light (no need to turn on lights if I just move between rooms).
Today, I'm getting around this using Timers. The problem with that approach is twofold:
1) Indigo becomes cluttered with more timers and triggers than necessary.
2) It can be harder to debug behaviors since the original event is asynchronous from the actions that take place.
It's workable as-is, just tossing it out an an idea for future releases. Of course, if there is a better way to solve this in Indigo currently, I'm all ears!
Today, I'm getting around this using Timers. The problem with that approach is twofold:
1) Indigo becomes cluttered with more timers and triggers than necessary.
2) It can be harder to debug behaviors since the original event is asynchronous from the actions that take place.
It's workable as-is, just tossing it out an an idea for future releases. Of course, if there is a better way to solve this in Indigo currently, I'm all ears!