Variable as device attribute


#1

1) Give a description of the problem
Trying to use a variable (Source_Variable) as device attribute. My speakers have 6 inputs (source0 - source5) and I am trying to determine which source is active. Eventually I want to use a loop and use $index to build the Source_Variable to determine which of the 6 inputs is active. That would be [device :source($index)] within the device statement, such as [Speakers_On.concat(source, $index)] or something similar to yield [device :source0] through [device :source5].
My Workshop speaker is on with source1 active (for piston testing).

2) What is the expected behaviour?
Use a loop to index through my speaker inputs source0 through source5
3) What is happening/not happening?
I have assigned “source1” to Source_Variable for testing. Expression statement not recognizing [device :Source_Variable] that will be built within a loop using $index.

**4) Post a Green Snapshot of the piston![image|45x37]


5) Attach logs after turning logging level to Full
screencapture-dashboard-webcore-co-piston-26c8d90cf0bb0736fd2a418a74d32eeb-2020-06-30-05_44_28