From 5d8ae0f81f674d43c66f365ad50c8c0bfc09bd3a Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Mon, 24 Mar 2025 05:19:14 -0400 Subject: [PATCH] Added controls for Emma's door alert to main and mobile dashboards --- main_dashboard.yaml | 15 +++++++++++++++ mobile_dashboard.yaml | 12 ++++++++++++ 2 files changed, 27 insertions(+) diff --git a/main_dashboard.yaml b/main_dashboard.yaml index cd28392..91dea8c 100644 --- a/main_dashboard.yaml +++ b/main_dashboard.yaml @@ -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 diff --git a/mobile_dashboard.yaml b/mobile_dashboard.yaml index 6edee79..1ffc252 100644 --- a/mobile_dashboard.yaml +++ b/mobile_dashboard.yaml @@ -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