Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 106752

One button 2 navigation path - depends on user

$
0
0

Hey guys,
I need help and I don’t even know if it is possible to do it.
I’m trying to make a button that if one user press it, it will navigate to a page, but if another user press it,it will navigate to a different page.
something like that:
{% set x = user %}
{% if (x == ‘user1’) %}
{% set navigation_path = ‘home1’ %}
{% else %}
{% set navigation_path = ‘home2’ %}
{% endif %}

but I don’t know how to even make a button like that or how can you change inputs under navugation_path. maybe anyone can help? or maybe have done something like that before?
Thanks
Tom

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 106752

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>