How to calculated hours from attribute in3

Theerayuttu2 years ago

The device is not report attribute "ignition" then the total hours is not calculated. Can we use for "in3" (true/false) attribute to calculate hours instead?

positions[0].attributes
{
    "in3": true,
    ...
}

If you have an example that would be great.
Thank you.

Joystick2 years ago

Try:

Attribute: ignition
Expression: in3?true:false
Type: boolean

Theerayuttua year ago

thank you. it worked.