Testing reaction set global expression
-
Hi @toggledbits
Just a quick question. I noticed that I can't test a "set variable" action when the rule is not active. I wanted to set a global expression in a reaction and wanted to test it by pushing the "Run action now" button in the border of the reaction, but it didn't do anything. Only when I activated the rule, the button worked.
Is this a bug or is this by design?
I'm running the latest docker build:
latest-23114-e4060aae -
Intended. Reactions don't run in disabled rules.
-
Intended. Reactions don't run in disabled rules.
@toggledbits But why do other actions DO run, when I hit "Run action now", even though my rule is deactivated.
I have an "entity action" next to the "set variable" in the same reaction and this action does fire.
-
Running a single action is not the same as running an entire reaction. Some actions require context created by the reaction or parent rule to operate, and can only be run from a reaction. That's why the individual "try" button (in action rows) isn't provided for every action type.
-
Ok, that makes sense. Thanks for clearing this up! Maybe make a note in the documentation? Most kind of expect all the actions to run when you click the "Run action now" button on the Reaction, I think. And it's even more confusing if it's also dependent on the rule being active or not.
-
-