[2.3.2.134 C7] Error in %device% value for trigger

When a variable change is used as a trigger, the %device% value returns the HUB name, not the variable that caused the trigger event. RM Version 5.1.3 (4/4/2022)

%device% never was set by a variable trigger. It is set by device triggers.

Interesting. That code was working in a 5.0 rule...but ceased when I recreated it in 5.1 (I did that to fix the erroneous display of "invalid" after the variable value).

Is there a "%" word I can use to get the trigger variable name instead of the hub? I'm pretty sure I've seen this issue with some other rules (but didn't understand why and didn't dig into it then).

I just looked at the 5.0 code, and it doesn't appear to set it to the variable name.

Next release, %device% will show variable name.

2 Likes

Awesome!! Thanks!!

It looks like the "Source" and "Event" Event Subscription values in 5.0 are different than in 5.1... which caused the differences I was seeing. Thanks for looking into this and fixing it.

1 Like