Help with errors and intermittent behavior


1) Give a description of the problem
Intermittent behavior, errors in the log. (See below)

2) What is the expected behavior?
This should determine which bulbs and which doors are left open, send notifications, and turn off bulbs.

3) What is happening/not happening?
Had it working with one bulb earlier. Sometimes it doesn’t work and sends an error. Other times it works and sends a text twice. Rest of the time it works gr8.

**4) Post a Green Snapshot of the piston!

5) Attach any logs (From ST IDE and by turning logging level to Full)

║║An error occurred while executing the event: groovy.lang.MissingMethodException: No signature of method: is applicable for argument types: (java.lang.String) values: [setVariable]


You don’t need the set variable command. Just use $currentEventDevice in your message


Okay, just wondering about syntax. Is it supposed to be an expression? It sends the text “$currentEventDevice” instead of the actual current event device… This is doing it as “$currentEventDevice has been on for 20 minutes. Turning off now.” (using the quotes).


Got it: Brackets!

“{$currentEventDevice} has been on for 20 minutes. Turning off now.”

In other news I just discovered this, so I’m gonna read it now: Understanding $device, $devices, $currentEventDevice, etc


Glad you got it figured out