Added controls for Emma's door alert to main and mobile dashboards

This commit is contained in:
2025-03-24 05:19:14 -04:00
parent 4c9676291a
commit 5d8ae0f81f
2 changed files with 27 additions and 0 deletions

View File

@ -1492,6 +1492,17 @@ views:
show_header_toggle: false
state_color: true
title: Lights On
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: button.emma_door_alert_cancel
show_state: false
visibility:
- condition: state
entity: timer.emma_door_alert
state: active
visibility:
- condition: state
entity: light.second_floor_lights
@ -2466,6 +2477,10 @@ views:
layout: icon|name_state
state:
case: first
- entity: switch.emma_door_alert
name: Door Alert
- entity: button.emma_door_alert_cancel
name: Cancel Door Alert
- entity: switch.emma_bedroom_motion_lighting
name: Motion Lighting
- entity: input_number.nighttime_brightness_emma_bedroom

View File

@ -3701,6 +3701,18 @@ views:
cards: []
max_columns: 4
badges:
- type: custom:mushroom-template-badge
content: Emma has left her room!
icon: mdi:alert
color: red
label: Toddler Alert
entity: button.emma_door_alert_cancel
tap_action:
action: toggle
visibility:
- condition: state
entity: timer.emma_door_alert
state: active
- type: custom:mushroom-template-badge
content: Tornado Possible
icon: mdi:weather-tornado