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.

writing a toggle program

Featured Replies

Posted

I am wanting to use an IR remote to toggle an insteon light switch with the press of a single button. I have to believe there is a way to do this by writing one program, but have found that I can only get it to work by writing 2.

 

If

Status "kitchen light' is off

and IR "IR_001' is pressed

then

set scene 'kitchen lihgt' on

else no action

 

This turns the light on

 

If

Status 'kithchen light' is not off

and IR 'IR_001' is pressed

set scene 'kitchen light' off

else no action

 

This turns it off

 

So again, the question, is there a way to merge these two programs into one program to toggle the light on/off with the press of the IR button?

Hello apostolakisl,

 

The functionality you desire does require two programs. There are various ways it could be done using two programs, but the way you have outlined is probably the best.

 

Don't be too concerned though, as the ISY can handle many programs 8) .

  • Author

Very well then. I will make some folders to tidy things up a bit.

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.