Guest-1
Dashboard: Persons
Path: Guest-1
Personal dashboard for Guest-1, managing notifications and guest settings.
Summary
This view is dedicated to Guest-1. It provides a personal interface consisting of a family member identity card and a dynamic list of notification configuration switches. This allows the guest user to manage their own notification preferences within the home system.
Dependencies (Custom Cards)
Required HACS frontend resources:
custom:auto-entitiescustom:decluttering-card
Configuration
theme: Backend-selected
title: Guest-1
path: Guest-1
badges: []
cards: []
type: sections
sections:
- type: grid
cards:
- type: heading
heading: New section
- type: custom:decluttering-card
template: family_member_card
variables:
- person: Guest-1
- device: SM_S721B_Guest-1
- background: background_3
- color: '#ddd'
- type: custom:auto-entities
card:
type: entities
title: My Notification Settings
show_header_toggle: false
icon: mdi:bell-cog
filter:
template: "{% set user_slug = 'Guest-1' %} {# <--- CHANGE THIS to the person's\
\ slug #}\n{% set ns = namespace(switches=[]) %}\n\n{% for state in states.switch\
\ %}\n {# Find switches ending with _notification_[user_slug] #}\n {% if\
\ state.entity_id.endswith('_notification_' ~ user_slug) %}\n {# Extract\
\ category (e.g. switch.info_notification_Evis -> info) #}\n {% set category\
\ = state.object_id.split('_notification_')[0] | capitalize %}\n \n \
\ {% set ns.switches = ns.switches + [{\n 'entity': state.entity_id,\n\
\ 'name': category ~ \" Notification\", \n 'secondary_info':\
\ 'last-updated'\n }] %}\n {% endif %}\n{% endfor %}\n\n{{ ns.switches\
\ | to_json }}\n"
sort:
method: name
max_columns: 4
