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.

How to run a program only when icon pressed on faves

Featured Replies

I want a program to only run when I tap it's icon on the favorites menu. How do I set this up? Do I need a variable? Thanks for the help...

I haven't tried this myself but you would start by adding a favorite, selecting "program" as the display node, and then select the program. In admin console, you would set that program to "disabled", so that it only runs when you ask it to. Give that a try.

  • Author

Yes, that works. Thanks. Now I'd like this same favorite icon to show the status of the scenes it controls. e.g. I have scene1 and scene2. program says if scene1 is on or scene2 is on then set scene1 off, set scene2 off else, set scene1 on; set scene2 on. Now I want this program to show the state (scene1 or scene2).

Do I use a variable for this? How do I link the variable to the favorite icon so that it shows the variable state?

Thanks again for your help!!

19 minutes ago, scholarwarrior said:

Yes, that works. Thanks. Now I'd like this same favorite icon to show the status of the scenes it controls. e.g. I have scene1 and scene2. program says if scene1 is on or scene2 is on then set scene1 off, set scene2 off else, set scene1 on; set scene2 on. Now I want this program to show the state (scene1 or scene2).

Do I use a variable for this? How do I link the variable to the favorite icon so that it shows the variable state?

Thanks again for your help!!

You won't be able to do that with a program node as a favorite. If you tap on Display Status, you'll see that the options only pertain to program related choices, like the last time it was run, things like that.

To do what you want, you would be better off having your favorite change something like a variable, or a virtual switch type node. The display options then allow you to display the value or status of that node. You can also have it change the color of the icon based on value. The variable value or virtual switch status or control event could then be the trigger in a program (or programs) to launch a scene or whatever.

I am using the PG3 plugin called Virtual to do this type of control and have been very pleased with it.

If more than one thing can control the program, then you have to remember to set the status of the virtual switch to be in sync with the status of whatever you turn on/off.

I am using this with programs, not scenes, but I would certainly expect it to work well that way too.

Rob Ralston

@scholarwarrior The way I accomplish what you want is pretty simple.

I set up a "trigger program" that runs the actual THEN or ELSE of the program I want to run.

This trigger program is what I put in the Favorites in UDM... It will cycle back and forth between true and false.

example below.. it checks itself to determine which to run. If it ran false last time, it will be false and a press will run the THEN, making it true.. Vice versus, if it ran true last time, a press will test it as false and run the false.

Naples Pool Stop LD - [ID 0335][Parent 01A5][Not Enabled]

If

Program 'Naples Pool Stop LD' is False

Then

Run Program 'Pool Emergency Stop' (Then Path)

Else

Run Program 'Pool Emergency Stop' (Else Path)

Create an account or sign in to comment

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.