Movement sensor with lux condition - 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: Movement sensor with lux condition (/showthread.php?tid=1443) |
Movement sensor with lux condition - Bobby - 11.06.2018 Hi! I have a movement sensor who controls the lightning. but i want a condition that says if the lightning level is above 300 lux, the lightning will not turn on. does anybody have a good script for this? RE: Movement sensor with lux condition - Jayce - 12.06.2018 This will work fine. Paste this inside the sensor switch object, change those group addresses which are marked 'x/x/x'. Code: value = event.getvalue() -- Value of current object Also, if you are by any chance using Auro by Basalte, you don't need script at all, everything can be set-up in your ETS project. |