UI tab based on sensor

Not sure if i understand what you mean, but maybe take a look here.

EDIT: Found a minute ago:

1 Like