Michaelco Posted December 21, 2023 Posted December 21, 2023 I have added devices to Favorites and trying to figure out how to: I want, when tapping on the icon, for it to do the action directly. When I tap the lower portion of the icon, it brings up another screen (pic 2 below). I would like to disable this action, and have it just turn on the device associated with the icon. Allow custom colors depending on switch or sensor status Change the icon to show the device state Question 1: Is there a way to do this when setting up favorites on an iPhone? As an example, tapping the lower half region of the Gate relay (encircled in Pic 1) brings up the screen shown in Pic 2. Is there a mode where all the items in Favorites can be set to treat this lower region the same as the top portion? In other words, just open or close the gate Pic 1 Pic 2 Question 2 How can one, conditionally, set the color of the gate icon to some color (like Red) when it's open, and a different color (like Green) when it's closed? I have seen where I can change the icon color, but not conditionally based on the gate state. Question 3 Using the Gate Open-Close as an example, how best to switch between two images for the icon? i.e., have the closed gate icon (Pic 3) displayed when the gate is in closed position, and open gate icon (Pic 4) when gate is opened Pic 3 Pic 4
Solution Javi Posted December 21, 2023 Solution Posted December 21, 2023 8 hours ago, Michaelco said: Question 1: Is there a way to do this when setting up favorites on an iPhone? As an example, tapping the lower half region of the Gate relay (encircled in Pic 1) brings up the screen shown in Pic 2. Is there a mode where all the items in Favorites can be set to treat this lower region the same as the top portion? In other words, just open or close the gate Yes, place Favorites Screen in edit mode (pencil icon at top of page), click the Favorite Tile, Select Edit then change the Favorite Type to Toggle Widget. Save Favorite then disable edit mode (pencil icon at top). For more advanced configuration the Command Type will work. See: https://wiki.universal-devices.com/index.php?title=UD_Mobile#Favorite_Custom_Toggle 8 hours ago, Michaelco said: Question 2 How can one, conditionally, set the color of the gate icon to some color (like Red) when it's open, and a different color (like Green) when it's closed? I have seen where I can change the icon color, but not conditionally based on the gate state. Place Favorites Screen in Edit mode, Click the Favorite Tile, Select "Configure Advanced Status Color/Value/Icon Configuration". Press the Add button at the top to add a new condition. See: https://wiki.universal-devices.com/index.php?title=UD_Mobile#Individual_Status_Mappings 8 hours ago, Michaelco said: Question 3 Using the Gate Open-Close as an example, how best to switch between two images for the icon? i.e., have the closed gate icon (Pic 3) displayed when the gate is in closed position, and open gate icon (Pic 4) when gate is opened Same as Question 2. However, currently Individual Status Mappings do not have the option for URL Icon, so only included icons are available. This is on our list, but not sure of time frame.
Michaelco Posted December 22, 2023 Author Posted December 22, 2023 Thanks for the detailed instructions. Works, ... will look forward to using custom icons when they are supported 1
gdntx Posted January 20 Posted January 20 What "Span" size did you use to get 3 wide? I can't seem to get 3 icons to one row.
Michaelco Posted January 20 Author Posted January 20 I didn't make any changes to the Favorite's Span - went with whatever the default setting. I am using IOS devices, ... if that makes a difference. 1
Michaelco Posted January 20 Author Posted January 20 1 hour ago, gdntx said: What "Span" size did you use to get 3 wide? I can't seem to get 3 icons to one row. Have you closed and restarted UD Mobile app after making the changes to Span? I just tried changing the Span to 4, and had to restart the app to have the change reflected in the Favorites view
Recommended Posts