This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Blinds CCF
#1
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.
Reply
#2
(25.04.2024, 12:30)Haug1 Wrote: 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.
 From this description the blinds can only move down and only up by schduler?

Use simple eventscript on buttonpress and weatherstation.
Reply
#3
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,
Reply
#4
something like this would do
https://forum.logicmachine.net/showthrea...6#pid37136
------------------------------
Ctrl+F5
Reply
#5
(27.11.2024, 16:24)Daniel Wrote: something like this would do
https://forum.logicmachine.net/showthrea...6#pid37136

Perfect. Thank you Daniel.
Reply


Forum Jump: