Almost there, for arrays like this and the color xy attributes, it is a bit different than expected. While the REST-API shows an array internally and in rules these are separate state attributes.
To test the orientation of the Aqara DJT11LM vibration sensor using a ruler, you can perform the following steps:
Place the sensor flat on a table with a known orientation (e.g., X facing forward).
Use a ruler to tilt the sensor gradually along one axis (X, Y, or Z).
Observe the changes in the "orientation" array:
The first value corresponds to the X-axis.
The second value corresponds to the Y-axis.
The third value corresponds to the Z-axis.
By carefully tilting and noting the values, you can calibrate or map the sensor’s orientation. Use the "tiltangle" to verify how much angular change occurs. This is particularly useful if you plan to trigger automation based on movement or angle.