Skip to content

Get the titlangle with the orientation for Vibration sensor

Smanar edited this page Jan 27, 2021 · 7 revisions

This code permit to have both information but using the same widget.

commandArray = {}

if (devicechanged['deCONZ - Vibration Sensor2']) then
    print ( '*********** Vibration detector2')
    s = otherdevices_svalues['deCONZ - Vibration Sensor2']
    n = devicechanged['deCONZ - Vibration Sensor2']
    n= devicechanged_ext["nvalue"]
    print ( 'nValue '..tostring(n)..' sValue '..tostring(s) ) 
end