Execute rule from a rule?

Can you execute a rule from a rule? The only thing I’ve figured out is to create a virtual switch that triggers a rule which is triggered from the first rule. Feels like it should be easier but I don’t see an option to to execute a rule from a rule action.

Hi @Jason_Dossett, executing a rule from a rule is in my list, and not currently supported. Thanks for your feedback as the user interests received is a great key determining our task priories. :blush:

1 Like

In the meantime, you could create a virtual momentary switch and use that as an action in one rule and a trigger in another.

Out of curiosity, what’s your desired use-case for a rule running another rule?

1 Like

Great, thanks. After doing it using a virtual switch, I kind of like it because it gives me a persistent device state that represents something having happened in my system.

My use case is basically creating reusable rule ‘functions’. I have a set of things I always do to start up our theater (turn on projector, turn on receiver, etc.), and have several user tiles that always do that plus one other thing. Watch Netflix does all the the theater startup plus tunes the Tivo to Netflix, Watch TV does all the theater startup plus tunes the Tivo to Tivo Central. This way I don’t have to copy the theater startup in every rule and if it changes, I don’t have to change a bunch of other rules.

The system variables you’ve talked about adding would also address this use case if a tile will be able to pass variables as part of a call to a rule.

2 Likes