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)

  • 2 weeks later...

You do this by using the "command" feature in the favorites.

Start by hitting the plus to create a favorite

Under type, select "command"

Select the display node as you wish

Select the "add command" at the bottom (it will tell you have to save first, go ahead and click to save)

It opens up the command config page. Select the programs option and whatever program and whatever you want the program to do.

You can also further customize the display node by using configure advanced options and have it be different colors and stuff depending on the state.

13 hours ago, apostolakisl said:

You do this by using the "command" feature in the favorites.

Start by hitting the plus to create a favorite

Under type, select "command"

Select the display node as you wish

Select the "add command" at the bottom (it will tell you have to save first, go ahead and click to save)

It opens up the command config page. Select the programs option and whatever program and whatever you want the program to do.

You can also further customize the display node by using configure advanced options and have it be different colors and stuff depending on the state.

I have not had that work reliably.

  • Author

FWIW, I've decided to use Apple HomeKit / Siri for UI. I installed Home Assistant and bridged to HomeKit, but this works pretty well (though still new) and the UI in Apple Home is very simple and customizable so family can use.

18 hours ago, dbwarner5 said:

I have not had that work reliably.

Strange. This is how I do it and it works every time.

  • Author

Yeah, to the extent I have any issues they’re related to some old x10 devices that are flakey which I plan to replace with Insteon. Home Assistant seems very solid. I’m running it in a VBox VM in Windows and it allows me to integrate eisy with Nest and various tvs and stereo and ONVIF cameras and to control it all with Siri. Still working to bring the onvif cams into apple home…

18 hours ago, apostolakisl said:

What do you mean by that? I have a bunch of these and they work 100% of the time.

I think it was in the very early stages of UDM. so I just went with the program approach and havent changed.

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.