Favorite Examples
Favorite Custom Toggle
The following is an example of adding a custom toggle for a door lock, but the process is similar for all nodes/programs/variables. A door lock is used in this example as it does not support On or Off commands, so the app will not show a toggle indicator and will only open to the Node's Dashboard when clicked on the Favorites Screen.
First we must create a Program in the Admin Console (Programs can also be created in UD Mobile). See Program Notes in program image. The program must be disabled to prevent unintended behavior.

In UD Mobile create a new favorite. Change the Type to Command, and set the Door Lock as the Display Node. Add The program created above as a Command Node and select "Run If" as the Command. Note this Favorite was given the Custom Name "Back Door" which will override the original Node Name.

We now have a Favorite item which can toggle the "Back Door" lock. Also because we have a Display Node there is a menu (three dots) which will open the Node's Dashboard, which can be great if the lock is jammed and we must use the unlock control as the toggle will always try to lock in the program created above.
Notes: Program status at startup in UD Mobile is disabled by default. To enable go to Settings Tab > Systems > Your-System-Name > Program and Variable Settings then enable "Request Status of all Programs"/
