This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Round of decimal values without triggering event?
#1
I have several motion detectors that also reports brightness in lux every 5 minutes or so. The associated group objects seem to require (?) 2-byte unsigned floats to function. But for visualization in Wiser for KNX Touch3 I would like to drop the decimals and show integers instead.

Now values look like: 25573.72 (lux)
I am happy with: 25574 (lux) for a less cluttered look

What is the best way to do this?

Changing the values with an event-based Lua-script will cause a loop (the script calls itself repeatedly) that can only be canceled by rebooting the Wiser for KNX unit.

All the best
Robert
Reply


Messages In This Thread
Round of decimal values without triggering event? - by temp4 - 11.03.2022, 05:53

Forum Jump: