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. |