Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mixing username profile and input_select does not work #255

Open
aqwserf opened this issue Jul 15, 2024 · 2 comments
Open

Mixing username profile and input_select does not work #255

aqwserf opened this issue Jul 15, 2024 · 2 comments

Comments

@aqwserf
Copy link

aqwserf commented Jul 15, 2024

Hi,
Following the example here, I'm trying to mix a username based profile (for test purposes) and automatic day/night profile for my tablet. However, mixing both doesn't allow me to have the profile with the user's name, only the one based on the input_select.
Here's the snippet:

wallpanel:
  show_images: false
  style:
    wallpanel-screensaver-info-box:
      '--wp-card-width': 450px
      background-color: '#00000099'
      box-shadow: >-
        0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0,
        0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12)
    wallpanel-screensaver-info-box-content:
      '--ha-card-background': none
      '--ha-card-box-shadow': none
      '--ha-card-border-width': 0px
      '--primary-background-color': '#111111'
      '--secondary-background-color': '#202020'
      '--primary-text-color': '#e1e1e1'
      '--secondary-text-color': '#9b9b9b'
  cards:
    - type: custom:clock-weather-card
 ...
  profiles:
    user.aqwserf:
      enabled: false
      hide_toolbar: false
      hide_toolbar_action_icons: false
      hide_sidebar: false
      fullscreen: false
    kiosk_day:
      enabled: true
      hide_toolbar: true
      hide_toolbar_action_icons: true
      hide_sidebar: true
      fullscreen: true
      idle_time: 60
      keep_screen_on_time: 0
      black_screen_after_time: 0
    kiosk_night:
      enabled: true
      hide_toolbar: true
      hide_toolbar_action_icons: true
      hide_sidebar: true
      fullscreen: true
      idle_time: 5
      keep_screen_on_time: 5
      black_screen_after_time: 6
  profile_entity: input_select.kiosk_mode

Using my tablet with the user kiosk, it's working as expected (kiosk_day/kiosk_night). However, using a computer with the user Aqwserf, it also uses the profile from the input_select.kiosk_mode and does not take into account the username based profile.
I've tried in a private window, refresh the page, no way to make it work.
Did I understand the example correctly? Who has priority when several profile types are available?

Thanks!

[EDIT] I've also tried with an input_text.kiosk_mode without success

@SebastiaanVBH
Copy link

Are you using the Username or Display name?
I wanted to be able to edit the dashboard from my "admin" user which didn't work for a while as well. Then I used the display name and that does work!

Display name username
Me Myself And I admin

Instead of using:
user.admin

Use this:
user.me_myself_and_i

@aqwserf
Copy link
Author

aqwserf commented Jan 17, 2025

I'm using the display name lower case. You made me doubt it, but it could have been :)
I tried to use this trick to avoid draining the battery (that doesn't really last) but I ended up using ssh command to kill/start HA based on motion. I works well so I got rid of this profile based configuration.
So I guess I can close this issue unless someone as the exact issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants