![]() |
Blinds CCF - 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: Blinds CCF (/showthread.php?tid=5384) |
Blinds CCF - Haug1 - 25.04.2024 Hello, We're working on a project where the CCF provider demands that the blinds can only be moved up or down once per day. As a result, I'm in need of a script that can process inputs from two separate sources: a push button, which provides a 1-bit signal for up or down movement, and a weather station, which gives a signal ranging from 0 to 100%. Here's how it should function: If a 1-bit signal for "down" (1) is received, the blinds should move downward. If a 1-bit signal for "up" (0) is received, no action should be taken. When a 100% signal is received, the blinds should move down, and if a 0% signal is received, no action should occur. The slat can move during the day. Additionally, by the end of the day, say at 23:00, the blinds should automatically move up again. We also require a counter to keep track of the number of times the blinds move up and down, which should be stored as a 2-byte value. RE: Blinds CCF - tomnord - 25.04.2024 (25.04.2024, 12:30)Haug1 Wrote: Hello,From this description the blinds can only move down and only up by schduler? Use simple eventscript on buttonpress and weatherstation. RE: Blinds CCF - manos@dynamitec - 27.11.2024 Hello admin, Is there an easy way to monitor how many times a screen moved? I guess a script which checks if the status of the screen position changes and add 1 each time it happens? Now that I am thinking of it, can I create an event script on the status object and write an ON to a virtual abject on each event (of course with a delay) and use an increment trend to log this virtual object? Kind regards, RE: Blinds CCF - Daniel - 27.11.2024 something like this would do https://forum.logicmachine.net/showthread.php?tid=5758&pid=37136#pid37136 RE: Blinds CCF - manos@dynamitec - 27.11.2024 (27.11.2024, 16:24)Daniel Wrote: something like this would do Perfect. Thank you Daniel. |