reed and updates on no change - 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: reed and updates on no change (/showthread.php?tid=322) |
reed and updates on no change - managementboy - 15.06.2016 Hi, I am having the issue with a reed connected to the re:actor. It continually sends an update even if nothing has changed. Did I configure something wrong? I only want an action when the value changes. RE: reed and updates on no change - managementboy - 21.06.2016 (15.06.2016, 09:40)managementboy Wrote: Hi, I am having the issue with a reed connected to the re:actor. It continually sends an update even if nothing has changed. Did I configure something wrong? I only want an action when the value changes. Since I did not get any reply I asume I was not concrete enough. Here a screenshot of the object: And this is the script attached to the object. Code: if (event.getvalue() > 1) then normal is about 1.1V... door open is about 0.6V What am I doing wrong? RE: reed and updates on no change - admin - 21.06.2016 I think you should only send update if previous value was different, like this: Code: addr = '4/4/6' RE: reed and updates on no change - managementboy - 22.06.2016 (21.06.2016, 13:21)admin Wrote: I think you should only send update if previous value was different, like this: thank you!! As the Germans say: can't see the forest because of all those trees. |