#8
Post
by PandCall » 09 Jul 2023, 22:01
Yes, the rule works
15972183: ULTRASONIC : TaskNr: 4 Distance: 6.81 cm
15972210: EVENT: Litre_UV#Litre_UV=6.81
15972216: ACT : Let,1,-0.58823529411765
15972223: ACT : Let,2,23.529411764706
15972232: ACT : let,3,6.81*-0.588235
15972240: ACT : let,4,-4.00588+23.529412
15972248: ACT : Let,11,-0.58824
15972255: ACT : Let,12,23.529
15972263: ACT : let,13,6.81*-0.58824
15972271: ACT : let,14,-4.005914+23.529
15972280: ACT : logentry,'litre_uv: 6.81 cm. 19.523532 output. Less decimals: 19.523086'
15972285: litre_uv: 6.81 cm. 19.523532 output. Less decimals: 19.523086
But much more complex to set up.
But it works, the formula gives the result.
6.81 cm = 19.523532L
As I'm sending all the sensor values to an MQTT broker, this requires more code and complexity than applying the formula directly to %value%.
But thanks for the information.