Get the titlangle with the orientation for Vibration sensor - Smanar/Domoticz-deCONZ GitHub Wiki
This code permit to have both information but using the same widget.
Can use the same method for raw value for the cube.
Just remember deconz will create 2 widgets with the same name for the Xiaomi/Aqara cube, so rename the orientation one.
commandArray = {}
if (devicechanged['deCONZ - Vibration Sensor2']) then
print ( '*********** Vibration detector2')
s = otherdevices_svalues['deCONZ - Vibration Sensor2']
n = devicechanged_ext["nvalue"]
print ( 'Titlangle: '..tostring(n)..' Orientation: '..tostring(s) )
end