Hmm, ok. My understanding of all this stuff is very limited, so I appreciate your help.
Reading the wiki, I can sort of understand that some information can be stored in the variable.
So in this case, the variable is set to contain the message I want to send, as a string? I see that a variable can be local, global, or system. Should I define a local variable at the start of the piston?
To clarify further, what I’m hoping to accomplish is something like this:
If virtual switch turns on and presence sensor is present, send message immediately.
If virtual switch turns on and presence sensor isn’t present, send message when presence sensor arrives.
The virtual switch is a momentary switch that gets turned on by IFTTT when my wemo humidifier runs out of water.