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.

questions on toggling events

Featured Replies

Posted

I am executing toggle events via voice and would like a check on the way I am doing it.

I am using three programs to control the toggling. It is working reliably .

Is my use of disables and waits sensible? I can't remember how I got to this point and I am wondering if there is a better way.

 

 

MASTER PROGRAM - the only one that I call directly (typically from SIRI -> ProxyServer -> Ruby -> ISY99)

If

Status 'Fire-Relay' is Off

 

Then

Run Program 'fireOn' (Then Path)

 

Else

Run Program 'fireOff' (Then Path)

 

 

 

 

 

TURNS IT ON

- No Conditions - (To add one, press 'Schedule' or 'Condition')

 

Then

Disable Program 'fire'

Set 'Fire-Relay' On

Wait 5 seconds

Enable Program 'fire'

 

Else

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

 

 

TURNS IT OFF

If

- No Conditions - (To add one, press 'Schedule' or 'Condition')

 

Then

Disable Program 'fire'

Set 'Fire-Relay' Off

Wait 5 seconds

Enable Program 'fire'

 

Else

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

Since your triggering the master program manually, you might as well just leave it disabled. No need to disable/re-enable.

 

How about this instead:

 

MASTER PROGRAM (DISABLED ALWAYS) - the only one that I call directly (typically from SIRI -> ProxyServer -> Ruby -> ISY99)

If
Status 'Fire-Relay' is Off

Then
Run Program 'fireOn' (Then Path)

Else
Run Program 'fireOn' (Else Path)

 

 

 

 

 

TURNS IT ON/OFF (ALWAYS DISABLED)

If
- No Conditions - (To add one, press 'Schedule' or 'Condition')

Then
Set 'Fire-Relay' On

Else
Set 'Fire-Relay' Off

 

 

-Xathros

  • Author

Thank you. Much cleaner!!! Converting everything over. Not sure why I was doing that.

Its way faster to program this way.

 

Rihc S.

Actually, now that I look at it again, you only need the master program:

 

FireToggle (ALWAYS DISABLED)

 

If
Status 'Fire-Relay' is Off

Then
Set 'Fire-Relay' On (Then Path)

Else
Set 'Fire-Relay' On (Else Path)

 

-Xathros

Since your triggering the master program manually, you might as well just leave it disabled. No need to disable/re-enable.

 

How about this instead:

 

MASTER PROGRAM (DISABLED ALWAYS) - the only one that I call directly (typically from SIRI -> ProxyServer -> Ruby -> ISY99)

If
Status 'Fire-Relay' is Off

Then
Run Program 'fireOn' (Then Path)

Else
Run Program 'fireOn' (Else Path)

 

 

 

TURNS IT ON/OFF (ALWAYS DISABLED)

If
- No Conditions - (To add one, press 'Schedule' or 'Condition')

Then
Set 'Fire-Relay' On

Else
Set 'Fire-Relay' Off

 

 

-Xathros

 

While it is fine to disable the second program, it isn't necessary. A disabled program blocks the "if" section from self triggering. When the "if" is empty, it can't self trigger anyway.

 

But I do agree, it is better to merge the programs into 1 anyway.

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.