Display navigation tile based on setting value

Example: If Work Period is open show ‘Close Work Period’ tile. If Work Period is closed show ‘Open Work Period’ tile.

Is this possible?

Yes, its on forum somewhere, dig up the origional custom nave screen examples.
It would be a single tile with a dynamic display format using a ternary expression.

I know that tutorial.

I was wondering if it is possible to display different physical tiles based on a constraint.

I have two tiles: one to start a work period, one to end. The relevant tiles are as follows:

Start: {"Alignment":"Right","ButtonHeader":"START\u000d\u000aWork Period","IsFlowBreak":false,"Size":"Small","VisibleIndex":0}

End: {"Alignment":"Right","ButtonHeader":"END\u000d\u000aWork Period","IsFlowBreak":false,"Size":"Small","VisibleIndex":1}

Is it possible to have something like this:


Not really because mappings available wouldn’t fit. No ticket etc available for states etc.
It doesn’t need to be seperate tiles though. Tiles are pretty much automation commands, so use a single tile flrmatted to display as if it was two, then in your automation for the command have your two automation flows based on constraints you used in the display ternary.
You one button, regardless of its display can trigger different actions based on constraints within the rule, rather than needing two buttons for two rules, have one or even two rules both on same command but with additional constraints based on work period being open or not.

1 Like

I didn’t think of that. Thanks!

I’ll need a bit of guidance if I may. I can’t seem to get the text centred.


<size 46><sym>[=('{SETTING:ISCURRENTWORKPERIODOPEN}'=='TRUE' ? '' : '')]</sym></size>
<block alignment=center>[=('{SETTING:ISCURRENTWORKPERIODOPEN}'=='TRUE' ? 'END' : 'START')]
Work Period</block>

Could it something as simple as <block center>?

There’s an orange settings bar at the bottom of the nav screen, think you need to right click for it to appear, then select the tile you want the text to centre on, click the centre format button from the orange bar and then click save on the right hand side

Tile should refresh and text centre, if not log out and back in for changes to take effect

It’s this same orange bar where you can change the size of the buttons too

Tried <block center> with no change.

THe justification buttons on the orange strip never seemed to change any display of the tiles when I played with it.

Thanks for the replies, guys. I’ll keep playing and update if I find anything.

Orange strip buttons definitely work I use them, you may need to log out and back in to see changes

There I go expecting instant results, again. Thanks Rick!

I did find a thread and found enclosing in <block 1,0,0,0 #5ffffff center 150> works but aside from the center part of the block quote I have no idea what the other stuff is and why it worked.

1 Like

Try this in the template

[=('{SETTING:ISCURRENTWORKPERIODOPEN}'=='TRUE' ? '<panel red center><sym>^</sym><br/><font Comic Sans MS><block 0,0,0,0 #FF0099 center><size 36><color #FFFF00><b>E</b></color></size></block><block 0,0,0,0 #00FF00 center><size 20><color #FF00FF><extrabold>n</extrabold></color></size></block><block 0,10,0,0 #9D00FF center><size 21><color #E6FB04><i>D</i></color></size></block><br/><block 0,0,0,0 #0033FF center><size 26><color #FF6600><i>W</i></color></size></block><block 0,0,0,0 #FFFF33 center><size 22><color #CC00FF><i>o</i></color></size></block><block 0,0,0,0 #00FFFF center><size 25><color #FF0000><i>R</i></color></size></block><block 0,0,0,0 #00FF00 center><size 20><color #FF00FF><extrabold>k</extrabold></color></size></block><block 0,0,0,0 #FF0099 center><size 36><color #FFFF00><b>p</b></color></size></block><block 0,10,0,0 #9D00FF center><size 26><color #E6FB04><i>E</i></color></size></block><block 0,0,0,0 #0033FF center><size 24><color #FF6600><i>r</i></color></size></block><block 0,0,0,0 #FFFF33 center><size 27><color #CC00FF><i>i</i></color></size></block><block 0,0,0,0 #00FFFF center><size 20><color #FF0000><i>0</i></color></size></block><block 0,0,0,0 #FF0099 center><size 36><color #FFFF00><b>D</b></color></size></block></font></panel>' : '<panel Green center><sym>@</sym><br/><font Comic Sans MS><block 0,10,0,0 #00FFFF center><size 25><color #FF0000><i>s</i></color></size></block><block 10,0,0,0 #00FF00 center><size 20><color #FF00FF><extrabold>T</extrabold></color></size></block><block 0,0,0,10 #FF0099 center><size 16><color #FFFF00><b>A</b></color></size></block><block 0,0,10,0 #9D00FF center><size 26><color #E6FB04><i>r</i></color></size></block><block 0,5,0,0 #FF0099 center><size 16><color #FFFF00><b>T</b></color></size></block><br/><block 0,0,0,0 #00FF00 center><size 20><color #FF00FF><extrabold>w</extrabold></color></size></block><block 10,0,10,0 #9D00FF center><size 21><color #E6FB04><i>o</i></color></size></block><block 0,0,0,10 #00FF00 center><size 20><color #FF00FF><extrabold>R</extrabold></color></size></block><block 0,0,0,0 #0033FF center><size 26><color #FF6600><i>k</i></color></size></block><block 0,10,0,0 #9D00FF center><size 26><color #E6FB04><i>P</i></color></size></block><block 0,0,0,0 #FFFF33 center><size 22><color #CC00FF><u>e</u></color></size></block><block 0,0,5,0 #0033FF center><size 24><color #FF6600><b>r</b></color></size></block><block 0,0,0,10 #FFFF33 center><size 27><color #CC00FF><i><b>i</b></i></color></size></block><block 0,0,0,0 #00FFFF center><size 20><color #FF0000>0</color></size></block><block 10,10,10,10 #FF0099 center><size 16><color #FFFF00><b>D</b></color></size></block></font></panel>')]

I think you will find this is exactly what you are looking for. :wink:

1 Like

Comic Sans? Really? Y’all need jesus.

I kinda like it, though. I would recommend studying your colour wheel a little better when selecting complementary colours.

And go for a walk, or something. Clearly you’ve too much free time.

lol. I wondered if font was going to be a giveaway.

This is true. :rofl:

For those wondering, here is what the button looks like with the above code:

1 Like

For real, this link might be of some help:

The first post in this thread is also useful…actually the whole thread is useful.

1 Like