11 Commits

3 changed files with 318 additions and 146 deletions

View File

@ -368,6 +368,7 @@ views:
- entity: binary_sensor.front_door
- entity: binary_sensor.back_door
- entity: binary_sensor.basement_studio_door
- entity: binary_sensor.emma_bedroom_door
- entity: binary_sensor.front_window_1
- entity: binary_sensor.front_window_2
- entity: binary_sensor.kitchen_big_window
@ -424,7 +425,7 @@ views:
- sensor.front_door_battery
- sensor.back_door_battery
- sensor.basement_studio_door_battery
- sensor.downstairs_bathroom_door_battery
- sensor.emma_bedroom_door_battery
- name: 'Window Sensors (min: {min}%, count: {count})'
secondary_info: Battery levels {range}%
icon: mdi:window-closed
@ -918,20 +919,35 @@ views:
state_color: true
- type: entities
entities:
- entity: input_number.emma_aircon_threshold
- entity: input_number.emma_bedroom_aircon_run_threshold
name: Run Threshold
secondary_info: >
{% set threshold =
states('input_number.emma_aircon_threshold') | int %} {% set
low = states('sensor.tonights_low_temp') | int %} {{
states('input_number.emma_bedroom_aircon_run_threshold') | int
%} {% set low = states('sensor.tonights_low_temp') | int %} {{
'Threshold Met' if low >= threshold else '' }}
name: Bedtime
show_header_toggle: false
state_color: true
- entity: input_number.emma_bedroom_aircon_mode_threshold
name: Mode Threshold
secondary_info: >
{% set threshold =
states('input_number.emma_bedroom_aircon_mode_threshold') |
int %} {% set low = states('sensor.tonights_low_temp') | int
%} {{ 'Threshold Met' if low >= threshold else '' }}
- entity: input_number.emma_bedroom_auto_cooling_threshold
name: EBR Auto Cooling
secondary_info: >
{% set threshold =
states('input_number.emma_bedroom_auto_cooling_threshold') |
int %} {% set roomtemp =
states('sensor.emma_bedroom_temperature') | int %} {{
'Threshold Met' if roomtemp >= threshold else '' }}
title: Emma Bedroom Aircon
visibility:
- condition: state
entity: input_boolean.emma_bedroom_aircon_installed
state: 'on'
show_header_toggle: false
state_color: true
- type: entities
entities:
- entity: input_number.master_bedroom_fan_threshold

View File

@ -544,6 +544,20 @@ views:
attributes:
label: Text Notify
icon: mdi:text
- card:
type: entities
entities:
- entity: input_text.report_system
name: Description
- entity: input_select.report_type
name: Report Type
- entity: button.send_report
title: Report System
show_header_toggle: false
state_color: false
attributes:
label: Reports
icon: mdi:bug
- type: grid
cards:
- type: heading
@ -1478,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
@ -2344,70 +2369,68 @@ views:
service: timer.finish
target:
entity_id: timer.emma_bedroom_motion_timer
- type: entities
state_color: true
entities:
- type: custom:paper-buttons-row
buttons:
- entity: input_boolean.emma_sleeping
name: Sleeping
layout: icon|name_state
state:
case: first
state_icons:
'on': mdi:sleep
'off': mdi:sleep-off
unavailable: mdi:map-marker-question
- entity: input_boolean.white_noise_emma_bedroom
name: White Noise
layout: icon|name_state
state:
case: first
state_icons:
'on': mdi:volume-high
'off': mdi:volume-off
unavailable: mdi:map-marker-question
show_header_toggle: false
- type: custom:state-switch
entity: input_boolean.emma_bedroom_aircon_installed
states:
'on':
type: entities
type: custom:simple-thermostat
entity: climate.emma_bedroom_aircon
header: false
decimals: 0
step_size: 1
layout:
mode:
headings: false
names: true
icons: true
step: row
control:
hvac:
heat: false
preset:
none:
name: Eco Off
eco:
name: Eco On
boost: false
- type: custom:state-switch
entity: input_boolean.emma_bedroom_aircon_installed
states:
'on':
type: glance
show_name: true
show_icon: true
show_state: true
state_color: true
entities:
- type: custom:paper-buttons-row
buttons:
- entity: input_boolean.emma_sleeping
name: Sleeping
layout: icon|name_state
state:
case: first
state_icons:
'on': mdi:sleep
'off': mdi:sleep-off
unavailable: mdi:map-marker-question
- entity: fan.emma_air_conditioner
name: A/C
layout: icon|name_state
state:
case: first
state_icons:
'on': mdi:fan
'off': mdi:fan-off
unavailable: mdi:map-marker-question
- entity: input_boolean.white_noise_emma_bedroom
name: White Noise
layout: icon|name_state
state:
case: first
state_icons:
'on': mdi:volume-high
'off': mdi:volume-off
unavailable: mdi:map-marker-question
- entity: binary_sensor.emma_aircon_compressor
- entity: binary_sensor.emma_bedroom_aircon_compressor
name: Compressor
- entity: script.emma_aircon_shutoff
name: Aircon Shutoff
'off':
type: entities
entities:
- type: custom:paper-buttons-row
buttons:
- entity: input_boolean.emma_sleeping
name: Sleeping
layout: icon|name_state
state:
case: first
state_icons:
'on': mdi:sleep
'off': mdi:sleep-off
unavailable: mdi:map-marker-question
- entity: input_boolean.white_noise_emma_bedroom
name: White Noise
layout: icon|name_state
state:
case: first
state_icons:
'on': mdi:volume-high
'off': mdi:volume-off
unavailable: mdi:map-marker-question
show_header_toggle: false
- entity: binary_sensor.emma_bedroom_aircon_filter_alert
name: Filter
- type: custom:state-switch
entity: input_boolean.emma_bedroom_heater_installed
states:
@ -2452,6 +2475,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
@ -3442,33 +3469,42 @@ views:
cards:
- type: heading
heading: Emma Bedroom
- type: custom:state-switch
entity: input_boolean.emma_bedroom_aircon_installed
transition: flip
states:
'on':
type: entities
entities:
- entity: input_boolean.emma_bedroom_aircon_installed
name: Emma Bedroom Aircon Installed
- entity: script.emma_aircon_shutoff
name: Shut A/C off safely
show_header_toggle: false
state_color: true
'off':
type: entities
entities:
- entity: input_boolean.emma_bedroom_aircon_installed
name: Emma Bedroom Aircon Installed
secondary_info: Turn on in summer
show_header_toggle: false
state_color: true
- type: entities
entities:
- entity: input_boolean.emma_bedroom_aircon_installed
name: Aircon Installed
- entity: input_boolean.emma_bedroom_climate_protocol
name: Climate Automations
state_color: true
show_header_toggle: false
- type: entities
entities:
- entity: input_boolean.emma_bedroom_heater_installed
name: Heater Installed
show_header_toggle: false
state_color: true
- type: entities
entities:
- entity: switch.emma_bedroom_aircon_display
name: A/C Display
- entity: binary_sensor.emma_bedroom_aircon_filter_alert
name: Filter Status
- entity: input_number.emma_bedroom_daytime_temp
name: Daytime Temp
- entity: input_number.emma_bedroom_night_temp
name: Night Temp
- entity: input_number.emma_bedroom_bedtime_temp
name: Bedtime Temp
- entity: button.emma_bedroom_fan_only
name: A/C Fan Only
- entity: button.emma_bedroom_climate_reset
name: Climate Reset
show_header_toggle: false
state_color: true
visibility:
- condition: state
entity: input_boolean.emma_bedroom_aircon_installed
state: 'on'
visibility:
- condition: user
users:
@ -3490,12 +3526,23 @@ views:
exclude_states:
- unavailable
- unknown
- entity: climate.emma_bedroom_aircon
icon: mdi:air-conditioner
exclude_states:
- unavailable
- unknown
- entity: sensor.master_bedroom_target_temp
icon: mdi:thermostat
name: Master Bedroom Set Temp
exclude_states:
- unavailable
- unknown
- entity: sensor.emma_bedroom_target_temp
icon: mdi:thermostat
name: Emma Bedroom Set Temp
exclude_states:
- unavailable
- unknown
- entity: fan.master_bedroom_fan
name: Master Bedroom Fan
exclude_states:
@ -3511,10 +3558,6 @@ views:
exclude_states:
- unavailable
- unknown
- entity: fan.emma_air_conditioner
exclude_states:
- unavailable
- unknown
- entity: sensor.master_bedroom_aircon_eco_mode
name: Master Bedroom Eco Mode
exclude_states:
@ -3525,13 +3568,23 @@ views:
exclude_states:
- unavailable
- unknown
- entity: binary_sensor.emma_aircon_fan
name: Emma A/C Fan
- entity: binary_sensor.emma_bedroom_aircon_fan
name: Emma Bedroom A/C Fan
exclude_states:
- unavailable
- unknown
- entity: binary_sensor.emma_aircon_compressor
name: Emma A/C Compressor
- entity: binary_sensor.emma_bedroom_aircon_compressor
name: Emma Bedroom A/C Compressor
exclude_states:
- unavailable
- unknown
- entity: sensor.emma_bedroom_eco_mode
name: Emma Bedroom Eco Mode
exclude_states:
- unavailable
- unknown
- entity: sensor.emma_bedroom_aircon_fan_mode
name: Emma Bedroom A/C Fan
exclude_states:
- unavailable
- unknown
@ -6132,6 +6185,13 @@ views:
entity: sensor.home_wind_direction_degrees
- type: entities
entities:
- entity: binary_sensor.tornado_warning
type: custom:multiple-entity-row
name: Warnings
state_header: Tornado
entities:
- entity: binary_sensor.severe_thunderstorm_warning
name: Severe T-storm
- entity: sensor.home_wind_speed
type: custom:multiple-entity-row
name: Wind

View File

@ -2189,6 +2189,8 @@ views:
name: Motion Lighting
tap_action:
action: toggle
modules:
- default
- type: custom:bubble-card
card_type: separator
name: Status
@ -2245,6 +2247,11 @@ views:
variables:
- name: Lights Timer
- entity: timer.stairwell_motion_timer
- type: custom:decluttering-card
template: popup_timer_card
variables:
- name: Lights Timer
- entity: timer.upstairs_hallway_motion_timer
- type: grid
cards:
- type: vertical-stack
@ -2276,6 +2283,8 @@ views:
action: toggle
show_name: false
icon: mdi:palette
modules:
- default
- type: custom:bubble-card
card_type: separator
name: Status
@ -2319,6 +2328,11 @@ views:
variables:
- name: Lights Timer
- entity: timer.upstairs_hallway_motion_timer
- type: custom:decluttering-card
template: popup_timer_card
variables:
- name: Lights Timer
- entity: timer.stairwell_motion_timer
- type: vertical-stack
cards:
- type: custom:bubble-card
@ -2463,6 +2477,8 @@ views:
icon: mdi:motion-sensor
tap_action:
action: toggle
modules:
- default
- type: custom:bubble-card
card_type: separator
name: Lights
@ -2548,7 +2564,7 @@ views:
entity: input_boolean.master_bedroom_aircon_installed
state: 'on'
card:
type: custom:stack-in-card
type: vertical-stack
cards:
- type: custom:bubble-card
card_type: climate
@ -2915,6 +2931,8 @@ views:
action: toggle
hold_action:
action: more-info
modules:
- default
- type: custom:bubble-card
card_type: separator
name: Modes
@ -2941,6 +2959,92 @@ views:
card_type: separator
name: Environment
icon: mdi:thermometer
modules:
- default
- type: conditional
conditions:
- condition: state
entity: input_boolean.emma_bedroom_aircon_installed
state: 'on'
card:
type: vertical-stack
cards:
- type: custom:bubble-card
card_type: climate
sub_button:
- select_attribute: hvac_modes
name: HVAC modes menu
state_background: true
- name: Presets menu
select_attribute: preset_modes
state_background: false
show_arrow: true
name: Thermostat
entity: climate.emma_bedroom_aircon
state_color: false
- type: horizontal-stack
cards:
- type: custom:bubble-card
card_type: button
button_type: state
entity: binary_sensor.emma_bedroom_aircon_compressor
name: Compressor
show_attribute: false
double_tap_action:
action: none
hold_action:
action: none
button_action:
double_tap_action:
action: none
hold_action:
action: none
styles: |-
.bubble-button-background {
opacity: 1 !important;
background-color: ${state === 'on' ? 'var(--accent-color)' : 'var(--background-color-2)'} !important;
}
.bubble-icon {
color: ${state === 'on' ? 'var(--accent-color)' : 'var(--text-color)'} !important;
}
- type: custom:bubble-card
card_type: button
button_type: state
entity: binary_sensor.emma_bedroom_aircon_filter_alert
name: Filter
show_attribute: false
double_tap_action:
action: none
hold_action:
action: none
button_action:
double_tap_action:
action: none
hold_action:
action: none
styles: |-
.is-unavailable {
opacity: 0.5 !important;
}
.bubble-button-background {
opacity: 1 !important;
background-color: ${state === 'on' ? 'var(--error-color)' : 'var(--background-color-2)'} !important;
transition: background-color 1s !important;
}
.bubble-icon-container {
background: ${state === 'on' ? 'var(--error-color)' : 'var(--card-background-color)'} !important;
}
.bubble-icon-container::after {
opacity: ${state === 'on' ? 0.3 : 0} !important;
transition: all 1s !important;
}
.bubble-icon {
display: flex !important;
opacity: 0.5 !important;
}
.is-on .bubble-icon {
opacity: 1 !important;
}
- type: conditional
conditions:
- condition: state
@ -2960,58 +3064,8 @@ views:
name: Thermostat
entity: climate.emma_bedroom_vtherm
state_color: false
- type: conditional
conditions:
- condition: state
entity: input_boolean.emma_bedroom_aircon_installed
state: 'on'
card:
type: horizontal-stack
cards:
- type: custom:bubble-card
card_type: button
entity: fan.emma_air_conditioner
name: Air Conditioner
show_state: true
tap_action:
action: toggle
double_tap_action:
action: none
hold_action:
action: more-info
button_action:
double_tap_action:
action: none
styles: |
.bubble-icon {
animation: ${state === 'on' ? 'slow-rotate 2s linear infinite' : ''};
}
@keyframes slow-rotate {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
- type: custom:bubble-card
card_type: button
button_type: state
entity: binary_sensor.emma_aircon_compressor
name: Compressor
double_tap_action:
action: none
hold_action:
action: none
button_action:
double_tap_action:
action: none
hold_action:
action: none
styles: |
.bubble-button-background {
opacity: 1 !important;
background-color: ${state === 'on' ? 'var(--accent-color)' : 'var(--background-color-2)'} !important;
}
.bubble-icon {
color: ${state === 'on' ? 'var(--accent-color)' : 'var(--text-color)'} !important;
}
modules:
- default
- type: horizontal-stack
cards:
- type: custom:bubble-card
@ -3028,6 +3082,8 @@ views:
button_action:
double_tap_action:
action: none
modules:
- default
- type: custom:bubble-card
card_type: empty-column
- type: custom:bubble-card
@ -3701,6 +3757,18 @@ views:
cards: []
max_columns: 4
badges:
- type: custom:mushroom-template-badge
content: Emma has left her room! (Tap to silence)
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
@ -3781,6 +3849,34 @@ views:
- condition: state
entity: binary_sensor.windows
state: 'on'
- type: custom:mushroom-template-badge
content: Check light switches
icon: mdi:light-switch
color: red
label: Light Issue
visibility:
- condition: state
entity: binary_sensor.light_switch_issue
state: 'on'
- type: custom:mushroom-template-badge
content: |-
{% if is_state(entity,'on') %}
Do Not Enter
{% else %}
Safe
{% endif %}
entity: input_boolean.do_not_enter_basement_studio
label: Basement Status
color: '{{ "red" if is_state(entity,''on'') else "green" }}'
icon: >-
{{ "mdi:close-circle" if is_state(entity,'on') else "mdi:check-circle"
}}
tap_action:
action: none
hold_action:
action: none
double_tap_action:
action: none
- type: custom:mushroom-template-badge
content: |-
{% from 'time.jinja' import input_datetime_read %}