Hello, I have a Notification that triggers based on a virtual switch. In the rule that turns 'on' the virtual switch, I set a global variable that I want to use as text in the notification.
I then use that variable in the notification like this:
Where are you setting this notification? Global Variables are Rule Machine Global variables. They can only be accessed from within rule machine. Not from within other apps.
Thanks for fast reply.
Oh. You're right I'm setting it in the RM. So how can I customize the text of a notification based on a rule event? Or do I have to have a notification for each type of text.
Oh that's what I'm doing wrong. I have a notification triggered on a virtual switch which I flip in the RM. Instead there must be some Action that directly invokes the Notification (I'm not home to look right now).
So if I do that then the notification 'inherits' the global variables? Or is there some way to pass in the text to the notification. Maybe it's obvious and I'll see it when I get home
Thanks!
You cannot use a global variable from anywhere outside of Rule Machine. So, rather than send the notification from the Notifications app, you can send it from Rule Machine.