-
-
Notifications
You must be signed in to change notification settings - Fork 24
Get the titlangle with the orientation for Vibration sensor
Smanar edited this page Jun 13, 2021
·
7 revisions
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