so that I can pass the variable to Pushover in a string to make up part of an alert. Most of the time it works fine. Occasionally, I get the wrong mode being sent to my alert. Here is a screenshot of the log.
I made the change as you recommended. However, I’d like to understand why this is different. If your system sets the context variable’s value because of the trigger, how is that any different than me grabbing the value of the mode which has just changed.
I was originally just going to put a 1 second delay before getting the value, to hopefully eliminate a timing issue.