dim up / down to percentage - 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: dim up / down to percentage (/showthread.php?tid=5026) |
dim up / down to percentage - KoBra - 15.10.2023 I run this script to change up/down dim to a percentage but when it runs the logic machine goes in overload (100%) Is there another/better way? Code: dimmer = grp.getvalue('1/3/10') RE: dim up / down to percentage - Erwin van der Zwart - 15.10.2023 You probably run this as resident script at 0 sec correct? Or do you have it as event based attached to 1/4/10? If yes then you should change that as this way you run this script every 0.2 seconds.. RE: dim up / down to percentage - KoBra - 15.10.2023 Yep run it as resident and as long as I touch no button it is fine. When I change something everything gets slow RE: dim up / down to percentage - admin - 16.10.2023 Use an event script with execution mode set to "Last instance only". Code: out = '32/0/25' What do you mean by everything gets slow? The script sends 5 telegrams per second which is not a high load. You can lower this by increasing the sleep time. You might need to adjust the step size to keep the dimming speed the same as before. RE: dim up / down to percentage - KoBra - 16.10.2023 Slow i mean TP Load goes to 100% RE: dim up / down to percentage - admin - 16.10.2023 Connect ETS group monitor and see what you get there. If there's another KNX/IP interface on the same TP line you might get a loop where each message is repeated several times before the hop counter becomes 0. |