When the position of the ELIO device changes, it emits a different sound and glows a different color
Compatibility
{ "do": [ { "on": { "do": [ { "if": { "is": [ "cubePosition", "==", 1 ], "then": [ { "sound": { "frequency": 440, "volume": 2 } }, { "light": { "color": 1, "duration": 1 } } ] } }, { "if": { "is": [ "cubePosition", "==", 2 ], "then": [ { "sound": { "frequency": 494, "volume": 2 } }, { "light": { "color": 2, "duration": 1, "led": 0 } } ] } }, { "if": { "is": [ "cubePosition", "==", 3 ], "then": [ { "sound": { "frequency": 523, "volume": 2 } }, { "light": { "color": 3, "duration": 1, "led": 0 } } ] } }, { "if": { "is": [ "cubePosition", "==", 4 ], "then": [ { "sound": { "frequency": 587, "volume": 2 } }, { "light": { "color": 4, "duration": 1, "led": 0 } } ] } }, { "if": { "is": [ "cubePosition", "==", 5 ], "then": [ { "sound": { "frequency": 659, "volume": 2 } }, { "light": { "color": 7, "duration": 1, "led": 0 } } ] } }, { "if": { "is": [ "cubePosition", "==", 6 ], "then": [ { "sound": { "frequency": 659, "volume": 2 } }, { "light": { "color": 10, "duration": 1, "led": 0 } } ] } } ], "event": "cubicPositionChanged" } } ]}