blocking pushbutton functions for a party - 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: blocking pushbutton functions for a party (/showthread.php?tid=377) |
blocking pushbutton functions for a party - managementboy - 17.08.2016 Hi, last party we had one of our guest accidentally pressed the "away" button, putting the whole home into a deep sleep (no music, no power etc). Does someone know of an easy way of blocking the execution of such things? I have an object I use to set the apartment into a "party" mode. I guess I would like to add a tag to those objects I want to disable for a while and re-enable after the party is over. Thanks! RE: blocking pushbutton functions for a party - edgars - 18.08.2016 Hi Elkin, I suppose you have event-based script for "away" functionality. Simply add If Else defining if there is Party mode, the Away functionality is not working. RE: blocking pushbutton functions for a party - managementboy - 23.08.2016 (18.08.2016, 08:20)edgars Wrote: Hi Elkin, for now I have decided to have a Party-Object (true-false) and a short code sniplet to add to those places I want to block execution. Code: party = grp.getvalue('Party') -- are we in party mode? Code: if (party == true) then Still looking for a cleaner solution... |