PowerView Blind Control - 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: PowerView Blind Control (/showthread.php?tid=3904) |
PowerView Blind Control - madsroge90 - 26.02.2022 Hi, I have a top-down/bottom-up blind that can be controlled with a hub named PowerView. Firstly, I tried to control it with relays since, in my opinion, it is better than a wireless connection, but unfortunately, I had some problems, so I started to control it with API through the PowerView hub. I am able to control it, but I have the problem that I am using a slide control from a touch panel to set the blind position. I use an event script, and each time I slide the slider a bit, it sends an event, which results in the blind moving in many smaller steps. I would like to only have one event, which then waits 2 seconds before it reads the target position for the blind. Event from slider: Code: require('user.Blind_TopDownBottomUp') Blind function: Code: -- blind (Top-down/Bottom-up) Br, Mads RE: PowerView Blind Control - Daniel - 28.02.2022 Maybe try adding steps in slider settings. You can then use arrows to change by step. RE: PowerView Blind Control - admin - 28.02.2022 You can also check whether the object value changed after sleeping. Code: local value = event.getvalue() |