maykar / compact-custom-header

This project has been replaced by Custom Header
MIT License
238 stars 31 forks source link

[Feature Request] Group exceptions #197

Closed carldebilly closed 4 years ago

carldebilly commented 5 years ago

Is your feature request related to a problem? Please describe. I would like to be able to use the User/Device Exceptions feature, but instead of targetting specific users or specific devices, I would like to target groups. This way I won't have to change the UI when I add or remove a user from the system: I'll just put them in the right group.

Describe the solution you'd like

cch:
  menu: overflow
  options: clock
  voice: hide
  clock_format: 12
  exceptions:
    - conditions:
        group: admin # HA build-in "admin" group
      config:
        voice: show
        options: clock
        clock_format: 24
    - conditions:
        group: roommates # custom user group
      config:
        options: clock
        clock_format: 12
        hide_tabs: 4,5,9

Base on this: https://developers.home-assistant.io/blog/2019/03/11/user-permissions.html

maykar commented 5 years ago

Other than seeing if the user is_admin or is_owner there is currently no way to access a user's group within Lovelace. While I agree that this would be a useful feature, it would be much more useful once that info is made available, especially custom groups. Once that happens I will add this to CCH.