Jump to content

My Very Complicated IR Light Control


DEGoodrich

Recommended Posts

Posted

Here is a sample program tree to control 1 light.

Each light consists of 15 programs.

 

START SEQUENCE

(Allows selection of multiple lights before sending command.)

 

If
       IR '[12]' is Pressed

Then
       Wait  30 seconds
       Run Program 'IR Bed Left Start' (Else Path)

Else
  - No Actions - (To add one, press 'Action')



 

STOP SEQUENCE

 

If
       (
            IR '[0]' is Released
         Or IR '[10]' is Released
         Or IR '[50]' is Pressed
       )
   And Program 'IR Bed Left Start' is True

Then
       Set 'Bedroom Left' Fade Stop
       Run Program 'IR Bed Left Start' (Else Path)

Else
  - No Actions - (To add one, press 'Action')



 

LIGHT ON

 

If
       (
            Program 'IR Bed Left Start' is True
        And IR '[10]' is Pressed
       )
    Or (
            IR '[12]' is Held
        And Program 'IR Bed Left Start' is False
        And Status  'Bedroom Left' is Off
       )

Then
       Set 'Bedroom Left' On
       Run Program 'IR Bed Left Start' (Else Path)

Else
  - No Actions - (To add one, press 'Action')



 

LIGHT OFF

 

If
       (
            Program 'IR Bed Left Start' is True
        And IR '[0]' is Pressed
       )
    Or (
            IR '[12]' is Held
        And Program 'IR Bed Left Start' is False
        And Status  'Bedroom Left' is not Off
       )

Then
       Set 'Bedroom Left' Off
       Run Program 'IR Bed Left Start' (Else Path)

Else
  - No Actions - (To add one, press 'Action')



 

LIGHT BRIGHT

 

If
       Program 'IR Bed Left Start' is True
   And IR '[10]' is Held

Then
       Set 'Bedroom Left' Fade Up

Else
  - No Actions - (To add one, press 'Action')



 

LIGHT DIM

 

If
       Program 'IR Bed Left Start' is True
   And IR '[0]' is Held

Then
       Set 'Bedroom Left' Fade Down

Else
  - No Actions - (To add one, press 'Action')



 

LIGHT SET LEVEL (Repeat 8x (1-9))

 

If
       Program 'IR Bed Left Start' is True
   And IR '[1]' is Pressed

Then
       Set 'Bedroom Left' 10%
       Run Program 'IR Bed Left Start' (Else Path)

Else
  - No Actions - (To add one, press 'Action')



Posted

I have discovered a fast way to "Batch" generate theese programs!

 

Export the tree, use an XML editor, use "Find & Replace", save as the new tree, then import.

 

Over 500 and counting!

 

:shock:

 

I hope this thing does not BLOW UP :!::!::!:

Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

    • There are no registered users currently online
  • Forum Statistics

    • Total Topics
      37k
    • Total Posts
      371.4k
×
×
  • Create New...