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.

Elk, ISY, Keyfob. Program to toggle current state of lights?

Featured Replies

Posted

I have an ISY with the Elk module. We use Honeywell key fobs for arm, disarm, panic and lighting. I currently have the key fobs programmed to toggle our "arrive" scene and associated programs on and off. Problem is, the key fob can't know the current state of the lighting, so it can take a double press to turn the scene and programs on or off.

 

How could I program the system so that if the scene and programs are on, a single key fob press would toggle the current state off and vice-versa?

Really we need more details on what you are doing.

 

I assume the honeywell keyfob is connected to the Elk as an Elk supported keyfob. I don't believe that ISY can see keyfobs connected to Elk directly (like a zone or output), but I am not sure since I don't have this type of keyfob on my elk.

 

I also assume you are using more things than just the keyfob to turn that scene on/off, which is how it gets out of sync.

 

The simplest way to solve this problem is to have a device that tracts the last use of that scene. For example, pick a switch that is in that scene that best represents the current status of that scene. In Elk, set an output to indicate that the keyfob has been pushed.

 

Elk program

Whenever

keyfob is pushed

Then

Set output x on for 1 second

 

ISY programs

 

If

status of (switch you are using as the indicator of scene status) is not off

Then

set integer variable scene tracker to 1

Else

set integer variable scene tracker to 0

 

If

Elk output x turns on

and variable scene tracker is 1

Then

set scene off

Else

set scene on

 

 

The key to modifying this setup is to the program that sets the variable to 1 or 0. You would alter your if section so as to best represent whether the scene is "on" or "off".

  • Author

Thank you! I'll give that a try.

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.