Sunday at 05:40 PM1 day 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...
Sunday at 05:47 PM1 day 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.
Sunday at 06:00 PM1 day 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!!
Sunday at 06:24 PM1 day 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.
Sunday at 06:44 PM1 day 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
Sunday at 10:00 PM1 day @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]IfProgram 'Naples Pool Stop LD' is FalseThenRun Program 'Pool Emergency Stop' (Then Path)ElseRun Program 'Pool Emergency Stop' (Else Path)
Create an account or sign in to comment