Is there a way to pass an attribute value in a sms notification? I’m trying to pass the reported power from a smart plug.
Thanks, can you elaborate more on this? I chose two different variables and they both just pass the attribute name.
{{$context.event.attribute}}
{{$context.event.value}}
In the rules I’m using this in, I’ve already copied the value to a variable, so I’m just using the variable directly.
From a quick test, the event.value passes the actual value that triggered the rule and the event.attribute passes the attribute name that triggered the rule. Looks like it MUST be the thing that triggered the rule for those context ones to work.
2 Likes
Got it working, thanks for the path into the variables.
1 Like