Finished second floor room cards

This commit is contained in:
2026-04-04 17:06:21 -04:00
parent 5848f9c220
commit 0a39a28c84
+415 -321
View File
@@ -2421,167 +2421,208 @@ views:
opacity: 10 opacity: 10
- type: grid - type: grid
cards: cards:
- type: custom:restriction-card - type: custom:streamline-card
restrictions: template: main_room_header
confirm: variables:
text: Kallen is sleeping, are you sure?
condition:
value: 'on'
entity: input_boolean.kallen_sleeping
exemptions:
- user: 879b4c04e32841b3ad1d2763a11b4e70
card:
type: custom:stack-in-card
card_mod:
style: |
ha-card {
overflow: visible !important;
}
cards:
- type: custom:mushroom-light-card
entity: light.kallen_bedroom_lights
name: Kallen Bedroom name: Kallen Bedroom
icon: mdi:bunk-bed
light_entity: light.kallen_bedroom_lights
power_entity: sensor.kallen_bedroom_total_power_sensor
- type: custom:bubble-card
card_type: button
button_type: slider
modules:
- default
- subbutton_below
rows: 1.719
icon: mdi:bunk-bed
tap_action:
action: toggle
double_tap_action: double_tap_action:
action: call-service action: perform-action
service: input_select.select_option perform_action: input_select.select_option
service_data:
option: Adaptive
target: target:
entity_id: input_select.kallen_bedroom_scenes entity_id: input_select.kallen_bedroom_scenes
icon: mdi:bunk-bed data:
layout: vertical option: Adaptive
show_brightness_control: true
collapsible_controls: true
- type: custom:state-switch
entity: light.kallen_bedroom_lights
states:
'on':
type: custom:mushroom-template-card
primary: Current Scene
secondary: '{{ states(''input_text.kallen_bedroom_selected_scene'') }}'
tap_action:
action: none
hold_action:
action: none
double_tap_action:
action: none
layout: vertical
- type: custom:mushroom-template-card
entity: sensor.kallen_bedroom_lights_power_sensor
primary: Power Usage
secondary: '{{ states(''sensor.kallen_bedroom_lights_power_sensor'') }} W'
tap_action:
action: more-info
hold_action:
action: none
double_tap_action:
action: none
layout: vertical
- type: custom:timer-bar-card
filter: true
entities:
- entity: timer.kallen_bedroom_motion_timer
sync_issues: ignore
tap_action:
action: none
hold_action: hold_action:
action: more-info action: more-info
double_tap_action: sub_button:
action: none main:
layout: hide_name - name: Lights
modifications: buttons_layout: inline
- elapsed: 40% group:
bar_foreground: orange
- elapsed: 80%
bar_foreground: red
extend_paper_buttons_row:
position: right
buttons:
- icon: mdi:check-circle
tap_action:
action: call-service
service: timer.finish
target:
entity_id: timer.kallen_bedroom_motion_timer
- type: entities
entities:
- type: custom:paper-buttons-row
buttons:
- entity: light.kallen_bedroom_overhead - entity: light.kallen_bedroom_overhead
name: Overhead name: Overhead
layout: icon|name_state tap_action:
state: action: toggle
case: first show_name: true
state_icons: - name: Wall
'on': hue:bulb-sultan tap_action:
'off': hue:bulb-sultan-off action: toggle
unavailable: mdi:map-marker-question show_name: true
- entity: light.kallen_bedroom_wall entity: light.kallen_bedroom_wall
name: Wall bottom:
layout: icon|name_state - name: Scene
state: buttons_layout: inline
case: first group:
state_icons: - name: Scene
'on': hue:bulb-sultan icon: mdi:palette
'off': hue:bulb-sultan-off sub_button_type: select
unavailable: mdi:map-marker-question show_name: true
- type: entities entity: input_select.kallen_bedroom_scenes
entities: name: Lights
- type: custom:paper-buttons-row entity: light.kallen_bedroom_lights
buttons: - type: custom:streamline-card
- entity: input_boolean.kallen_sleeping template: timer_card
variables:
name: Lights Timer
icon: mdi:timer
entity: timer.kallen_bedroom_motion_timer
visibility:
- condition: state
entity: timer.kallen_bedroom_motion_timer
state_not: idle
- type: custom:bubble-card
card_type: separator
name: Modes
icon: mdi:toggle-switch
card_layout: large
- type: custom:bubble-card
card_type: button
button_type: switch
sub_button:
main: []
bottom: []
entity: input_boolean.kallen_sleeping
grid_options:
columns: 6
rows: auto
tap_action:
action: toggle
button_action:
hold_action:
action: none
name: Sleeping name: Sleeping
layout: icon|name_state - type: custom:bubble-card
state_icons: card_type: separator
'on': mdi:sleep name: Environment
'off': mdi:sleep-off icon: mdi:thermometer
unavailable: mdi:map-marker-question card_layout: large
state: sub_button:
case: first main: []
- entity: fan.kallen_bedroom_fan bottom: []
- type: custom:bubble-card
card_type: button
button_type: switch
entity: fan.kallen_bedroom_fan
name: Fan name: Fan
layout: icon|name_state show_state: true
state_icons: tap_action:
'on': mdi:fan action: toggle
'off': mdi:fan-off double_tap_action:
unavailable: mdi:map-marker-question action: none
state: hold_action:
case: first action: more-info
- entity: input_boolean.white_noise_kallen_bedroom 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); }
}
card_layout: large
columns: 2
- type: custom:bubble-card
card_type: button
button_type: switch
entity: input_boolean.white_noise_kallen_bedroom
name: White Noise name: White Noise
layout: icon|name_state
state_icons:
'on': mdi:volume-high
'off': mdi:volume-off
unavailable: mdi:map-marker-question
state:
case: first
- entity: input_select.kallen_bedroom_scenes
show_header_toggle: false
- type: glance
show_name: true
show_icon: true
show_state: true show_state: true
state_color: true tap_action:
entities: action: toggle
- entity: binary_sensor.kallen_bedroom_window_1 double_tap_action:
name: Window 1 action: none
- entity: binary_sensor.kallen_bedroom_window_2 hold_action:
name: Window 2 action: more-info
- type: glance button_action:
show_name: true double_tap_action:
show_icon: true action: none
show_state: true card_layout: large
state_color: true columns: 2
entities: - type: custom:bubble-card
- entity: sensor.kallen_bedroom_temperature card_type: separator
name: Status
icon: mdi:list-box
card_layout: large
- type: custom:streamline-card
template: main_temperature_button
variables:
entity: sensor.kallen_bedroom_temperature
name: Temp name: Temp
- entity: sensor.kallen_bedroom_illuminance columns: '2'
hot_entity: binary_sensor.kallen_bedroom_hot
cold_entity: binary_sensor.kallen_bedroom_cold
- type: custom:bubble-card
card_type: button
button_type: state
name: Lux name: Lux
- entity: binary_sensor.kallen_bedroom_motion show_attribute: false
card_layout: large
columns: 2
sub_button:
main: []
bottom: []
entity: sensor.kallen_bedroom_illuminance
- type: custom:streamline-card
template: state_color_button
variables:
name: Motion name: Motion
- entity: binary_sensor.kallen_bedroom_occupied columns: 2
color: bubble-accent-color
entity: binary_sensor.kallen_bedroom_motion
grid_options:
columns: 6
rows: auto
- type: custom:streamline-card
template: state_color_button
variables:
name: Occupied name: Occupied
columns: 2
entity: binary_sensor.kallen_bedroom_occupied
color: bubble-accent-color
grid_options:
columns: 6
rows: auto
- type: custom:bubble-card
card_type: separator
name: Security
icon: mdi:security
card_layout: large
- type: custom:streamline-card
template: contact_sensor_button
variables:
name: Window 1
columns: 2
color: error-color
entity: binary_sensor.kallen_bedroom_window_1
grid_options:
columns: 6
rows: auto
- type: custom:streamline-card
template: contact_sensor_button
variables:
name: Window 2
columns: 2
color: error-color
entity: binary_sensor.kallen_bedroom_window_2
grid_options:
columns: 6
rows: auto
- type: custom:fold-entity-row - type: custom:fold-entity-row
head: head:
type: section type: section
@@ -2612,200 +2653,250 @@ views:
name: Lights Off Delay name: Lights Off Delay
- entity: input_number.kallen_bedroom_lux_threshold - entity: input_number.kallen_bedroom_lux_threshold
name: Lux Threshold name: Lux Threshold
column_span: 1
background:
opacity: 10
- type: grid - type: grid
cards: cards:
- type: custom:restriction-card - type: custom:streamline-card
restrictions: template: main_room_header
confirm: variables:
text: Emma is sleeping, are you sure?
condition:
value: 'on'
entity: input_boolean.emma_sleeping
exemptions: null
card:
type: custom:stack-in-card
card_mod:
style: |
ha-card {
overflow: visible !important;
}
cards:
- type: custom:mushroom-light-card
entity: light.emma_bedroom_light
name: Emma Bedroom name: Emma Bedroom
icon: hue:room-nursery
light_entity: light.emma_bedroom_light
power_entity: sensor.emma_bedroom_total_power_sensor
- type: custom:bubble-card
card_type: button
button_type: slider
modules:
- default
- subbutton_below
rows: 1.719
icon: mdi:bunk-bed
tap_action:
action: toggle
double_tap_action: double_tap_action:
action: call-service action: perform-action
service: input_select.select_option perform_action: input_select.select_option
service_data:
option: Adaptive
target: target:
entity_id: input_select.emma_bedroom_scenes entity_id: input_select.emma_bedroom_scenes
icon: hue:room-nursery data:
layout: vertical option: Adaptive
show_brightness_control: true hold_action:
collapsible_controls: true action: more-info
- type: custom:state-switch sub_button:
main: []
bottom:
- name: Scene
buttons_layout: inline
group:
- name: Scene
icon: mdi:palette
sub_button_type: select
show_name: true
entity: input_select.emma_bedroom_scenes
name: Lights
entity: light.emma_bedroom_light entity: light.emma_bedroom_light
states: - type: custom:streamline-card
'on': template: timer_card
type: custom:mushroom-template-card variables:
primary: Current Scene name: Lights Timer
secondary: '{{ states(''input_text.emma_bedroom_selected_scene'') }}' icon: mdi:timer
entity: timer.emma_bedroom_motion_timer
visibility:
- condition: state
entity: timer.emma_bedroom_motion_timer
state_not: idle
- type: custom:bubble-card
card_type: separator
name: Modes
icon: mdi:toggle-switch
card_layout: large
- type: custom:bubble-card
card_type: button
button_type: switch
sub_button:
main: []
bottom: []
entity: input_boolean.emma_sleeping
grid_options:
columns: 6
rows: auto
tap_action: tap_action:
action: none action: toggle
button_action:
hold_action: hold_action:
action: none action: none
double_tap_action:
action: none
layout: vertical
- type: custom:mushroom-template-card
entity: sensor.emma_bedroom_light_power_sensor
primary: Power Usage
secondary: '{{ states(''sensor.emma_bedroom_total_power_sensor'') }} W'
tap_action:
action: more-info
hold_action:
action: none
double_tap_action:
action: none
layout: vertical
- type: custom:timer-bar-card
filter: true
entities:
- entity: timer.emma_bedroom_motion_timer
sync_issues: ignore
tap_action:
action: none
hold_action:
action: more-info
double_tap_action:
action: none
layout: hide_name
modifications:
- elapsed: 40%
bar_foreground: orange
- elapsed: 80%
bar_foreground: red
extend_paper_buttons_row:
position: right
buttons:
- icon: mdi:check-circle
tap_action:
action: call-service
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 name: Sleeping
layout: icon|name_state - type: custom:bubble-card
state: card_type: separator
case: first name: Environment
state_icons: icon: mdi:thermometer
'on': mdi:sleep card_layout: large
'off': mdi:sleep-off sub_button:
unavailable: mdi:map-marker-question main: []
- entity: input_boolean.white_noise_emma_bedroom bottom: []
name: White Noise visibility:
layout: icon|name_state - condition: or
state: conditions:
case: first - condition: state
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 entity: input_boolean.emma_bedroom_aircon_installed
states: state: 'on'
'on': - condition: state
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:
'off':
name: 'Off'
heat: false
cool:
name: Cool
auto:
name: Auto
dry:
name: Dry
fan_only:
name: Fan Only
preset:
none:
name: Eco Off
eco:
name: Eco On
boost: false
comfort:
name: Comfort
sleep: false
away: 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:
- entity: binary_sensor.emma_bedroom_aircon_compressor
name: Compressor
- entity: binary_sensor.emma_bedroom_aircon_filter_alert
name: Filter
- type: custom:state-switch
entity: input_boolean.emma_bedroom_heater_installed entity: input_boolean.emma_bedroom_heater_installed
states: state: 'on'
'on': - type: custom:bubble-card
type: custom:versatile-thermostat-ui-card card_type: climate
sub_button:
main:
- select_attribute: hvac_modes
name: HVAC modes
state_background: true
sub_button_type: select
show_state: true
- name: Presets
select_attribute: preset_modes
state_background: false
sub_button_type: select
show_attribute: true
attribute: preset_mode
bottom: []
name: Thermostat
entity: climate.emma_bedroom_aircon
state_color: false
step: 1
main_buttons_position: bottom
rows: 1.719
visibility:
- condition: state
entity: input_boolean.emma_bedroom_aircon_installed
state: 'on'
- type: custom:streamline-card
template: state_color_button
variables:
entity: binary_sensor.emma_bedroom_aircon_compressor
name: Compressor
show_state: 'true'
columns: '2'
color: bubble-accent-color
visibility:
- condition: state
entity: input_boolean.emma_bedroom_aircon_installed
state: 'on'
- type: custom:streamline-card
template: state_color_button
variables:
entity: binary_sensor.emma_bedroom_aircon_filter_alert
name: Filter
show_state: 'true'
columns: '2'
color: error-color
visibility:
- condition: state
entity: input_boolean.emma_bedroom_aircon_installed
state: 'on'
- type: custom:bubble-card
card_type: climate
sub_button:
main:
- select_attribute: hvac_modes
name: HVAC modes
state_background: true
sub_button_type: select
show_state: true
- name: Presets
select_attribute: preset_modes
state_background: false
sub_button_type: select
show_attribute: true
attribute: preset_mode
bottom: []
name: Thermostat
state_color: false
step: 1
main_buttons_position: bottom
visibility:
- condition: state
entity: input_boolean.emma_bedroom_aircon_installed
state: 'on'
rows: 1.719
entity: climate.emma_bedroom_vtherm entity: climate.emma_bedroom_vtherm
powerEntity: sensor.emma_bedroom_heater_power - type: custom:bubble-card
theme: classic card_type: button
disable_name: true button_type: switch
disable_auto_fan_infos: true entity: input_boolean.white_noise_emma_bedroom
- type: entities name: White Noise
entities:
- entity: input_select.emma_bedroom_scenes
- type: glance
show_name: true
show_icon: true
show_state: true show_state: true
state_color: true tap_action:
entities: action: toggle
- entity: binary_sensor.emma_bedroom_window double_tap_action:
name: Window action: none
- type: glance hold_action:
show_name: true action: more-info
show_icon: true button_action:
show_state: true double_tap_action:
state_color: true action: none
entities: card_layout: large
- entity: sensor.emma_bedroom_temperature columns: 2
- type: custom:bubble-card
card_type: separator
name: Status
icon: mdi:list-box
card_layout: large
- type: custom:streamline-card
template: main_temperature_button
variables:
entity: sensor.emma_bedroom_temperature
name: Temp name: Temp
- entity: sensor.emma_bedroom_illuminance columns: '2'
name: Light hot_entity: binary_sensor.emma_bedroom_hot
- entity: binary_sensor.emma_bedroom_motion cold_entity: binary_sensor.emma_bedroom_cold
- type: custom:bubble-card
card_type: button
button_type: state
name: Lux
show_attribute: false
card_layout: large
columns: 2
sub_button:
main: []
bottom: []
entity: sensor.emma_bedroom_illuminance
- type: custom:streamline-card
template: state_color_button
variables:
name: Motion name: Motion
- entity: binary_sensor.emma_bedroom_occupied columns: 2
color: bubble-accent-color
entity: binary_sensor.emma_bedroom_motion
grid_options:
columns: 6
rows: auto
- type: custom:streamline-card
template: state_color_button
variables:
name: Occupied name: Occupied
columns: 2
entity: binary_sensor.emma_bedroom_occupied
color: bubble-accent-color
grid_options:
columns: 6
rows: auto
- type: custom:bubble-card
card_type: separator
name: Security
icon: mdi:security
card_layout: large
- type: custom:streamline-card
template: contact_sensor_button
variables:
name: Window 1
columns: 2
color: error-color
entity: binary_sensor.emma_bedroom_window
grid_options:
columns: 6
rows: auto
- type: custom:fold-entity-row - type: custom:fold-entity-row
head: head:
type: section type: section
@@ -2838,6 +2929,9 @@ views:
name: Lights Off Delay name: Lights Off Delay
- entity: input_number.emma_bedroom_lux_threshold - entity: input_number.emma_bedroom_lux_threshold
name: Lux Threshold name: Lux Threshold
column_span: 1
background:
opacity: 10
max_columns: 4 max_columns: 4
cards: [] cards: []
- title: Basement - title: Basement