Something which might make this easier is to link your String Channel to a String Item, and then trigger when that Item has changed.
I think you can then use triggeringItem.state
in your subsequent rule, i.e.
switch(triggeringItem.state) {
...
}
Scroll down to the DSL rule in the post below, where I do what you’re ultimately after, in a slightly different way:
1 Like