How to command read motion atrribute value - ST Motion Senser


(Justinlhudson) #1

Let me start by saying I am way out of my element of understanding…

I have pulled together by inspection and reading through ST API document the command “st rattr”. However, could not find any documentation on what value(s) would force read device to re-broadcast its motion state of the sensor? Do not know what value(s) to plug in (if possible) to force read motion state much like how it already requests temp and battery level on refresh (below):

def refresh()
{
log.debug “Refreshing Temperature and Battery”
[

    "st rattr 0x${device.deviceNetworkId} 1 0x402 0", "delay 200",
  "st rattr 0x${device.deviceNetworkId} 1 1 0x20"

]
}