Logic Machine Forum
Lua check several rooms/values - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Lua check several rooms/values (/showthread.php?tid=4238)



Lua check several rooms/values - stigen - 13.09.2022

Hi!

I have 10 rooms with co2 sensor in.

I want to check if any of the rooms co2 level is above 800ppm.

Is there an easier way where i can use tags on objects and a resident script.....? any suggestions....

-s-


RE: Lua check several rooms/values - admin - 13.09.2022

You can use tags to find the maximum value between multiple objects: https://forum.logicmachine.net/showthread.php?tid=3091&pid=20011#pid20011