Computed attributes - Decimal value

RyD 5 years ago

Hello

I am getting a fuel message from a sensor that counts pulses. The K-factor is /400 , the result on the computted attribute is always "0" because every 30 seconds the fuel consumption will be up to a 100 top and divided by 400 its always 0.xx . How to configure so the attributte appears with decimals.

Computted attributes

Flowmeter inline
io136 ? io136 / 358 : null
Number

Flowmeter outline
io137 ? io137 / 400 : null
Number

Message on state

Time
2018-12-13 13:59:29
Latitude
-12.158532°
Longitude
-76.992902°

Io136
2
Io137
3

Flowmeter inline
0
Flowmeter outline
0

RyD 5 years ago