My water monitor reports water volume like 1.38E-7 for 138 liters.
To get 138 from 1.38E-7 I tried to apply variable math, but looks like a decimal variable with the value 1.38E-7 when presented to math, gets converted/rounded/truncated (?) to 0.
Any idea how to get 138 out of 1.38E-7 ? Thanks in advance
EDIT: Tried string manipulation - no luck either
EDIT2: The value comes from the Tuya integration - can it be converted in the driver? Help please!
how about
Set Dec1 to (Smart Water Monitor water * 10000000)
There's no way of entering '* 10000000' in RM5, or at least I don't know a way of doing it.
Set Dec1 to 10000000 Set Dec2 to (Smart Water Monitor water * Dec1) ???
Variable math accepts only 2 variables OR 1 variable and 1 constant
Who makes these rules ?? Now I'm going to have to dust off my RM instance and play ....