ST902 device reporting issue handling

bsaggarwal6 years ago

HI
with limited programing knowledge below is my question.
I am tesitng the traccar server with ST902 OBD. and the tracker is stationary but still reporting speed and motion as true, see below entry.

attribute: '{"ignition":false,"status":4294949887,"io1":"404","io2":"11","io3":"01021","io4":"28482","distance":0.0,"totalDistance":0.0,"motion":true}'
speed: 5.95

can someone help me how we can set motion as "false' using computed attribute.
May be condition "when ignition is false" set "motion as false"..can someone help what expression to use in computed attribute.?

I could have used event.motion.speedThreshold but the issue is my other devices " like personal tracker which has speed always less than 2 would also be impacted as this is param is global to traccar server.