I have a lot of pistons that do something similar to this:
Only When
Presence #1 and Presence #2 are not present
Execute
If Door #1 Opens, send an alert
I change the presence sensors used from time to time (these are mostly phones and people) and I don’t want to change every piston each time this happens. I created a global variable:
device @PresenceSensors = Presence Sensor #1 and Presence Sensor #2;
I’d like the pistons all to use this global variable in the condition statement, e.g.,:
Only When
{@PresenceSensors} are not present
Execute
If Door #1 Opens, send an alert
Expected behavior is that when ALL of the presence sensors in that global variable are NOT PRESENT, the WHEN condition is TRUE.
Instead, the condition always evaluates FALSE, I assume because of bad syntax and a misunderstanding of how to use device variables. Suggestions appreciated.