I’m a bit new to home assistant and have been tinkering with some ideas and have hit a snag. After browsing the forums, I realized that setting a duration for a trigger, condition, and action will cause the automation to wait for that time to pass before executing the action.
Is it possible to instead create a duration that will cause an action to occur if a condition is fulfilled within a certain time of the trigger?
For example,
Trigger: Device A turns on
Condition: Device B turns on within 2 minutes Device A turning on
Action: Device C plays music (or calls service, etc).