Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

My Very Complicated IR Light Control

Featured Replies

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')



Thank goodness for the folder tree for the programs because all these programs add up to 105 of them.

  • Author

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 :!::!::!:

  • Author

OK, I am done with IR stuff for now!

 

Now I am working on Voice Commands!!

 

:twisted:

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.