Finished second floor room cards

This commit is contained in:
2026-04-04 17:06:21 -04:00
parent 5848f9c220
commit 0a39a28c84
+504 -410
View File
@@ -2421,423 +2421,517 @@ 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? name: Kallen Bedroom
condition: icon: mdi:bunk-bed
value: 'on' light_entity: light.kallen_bedroom_lights
entity: input_boolean.kallen_sleeping power_entity: sensor.kallen_bedroom_total_power_sensor
exemptions: - type: custom:bubble-card
- user: 879b4c04e32841b3ad1d2763a11b4e70 card_type: button
card: button_type: slider
type: custom:stack-in-card modules:
card_mod: - default
style: | - subbutton_below
ha-card { rows: 1.719
overflow: visible !important; icon: mdi:bunk-bed
} tap_action:
cards: action: toggle
- type: custom:mushroom-light-card double_tap_action:
entity: light.kallen_bedroom_lights action: perform-action
name: Kallen Bedroom perform_action: input_select.select_option
double_tap_action: target:
action: call-service entity_id: input_select.kallen_bedroom_scenes
service: input_select.select_option data:
service_data: option: Adaptive
option: Adaptive hold_action:
target: action: more-info
entity_id: input_select.kallen_bedroom_scenes sub_button:
icon: mdi:bunk-bed main:
layout: vertical - name: Lights
show_brightness_control: true buttons_layout: inline
collapsible_controls: true group:
- type: custom:state-switch - entity: light.kallen_bedroom_overhead
entity: light.kallen_bedroom_lights name: Overhead
states:
'on':
type: custom:mushroom-template-card
primary: Current Scene
secondary: '{{ states(''input_text.kallen_bedroom_selected_scene'') }}'
tap_action: tap_action:
action: none action: toggle
hold_action: show_name: true
action: none - name: Wall
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: tap_action:
action: none action: toggle
hold_action: show_name: true
action: more-info entity: light.kallen_bedroom_wall
double_tap_action: bottom:
action: none - name: Scene
layout: hide_name buttons_layout: inline
modifications: group:
- elapsed: 40% - name: Scene
bar_foreground: orange icon: mdi:palette
- elapsed: 80% sub_button_type: select
bar_foreground: red show_name: true
extend_paper_buttons_row: entity: input_select.kallen_bedroom_scenes
position: right name: Lights
buttons: entity: light.kallen_bedroom_lights
- icon: mdi:check-circle - type: custom:streamline-card
tap_action: template: timer_card
action: call-service variables:
service: timer.finish name: Lights Timer
target: icon: mdi:timer
entity_id: timer.kallen_bedroom_motion_timer entity: timer.kallen_bedroom_motion_timer
- type: entities visibility:
entities: - condition: state
- type: custom:paper-buttons-row entity: timer.kallen_bedroom_motion_timer
buttons: state_not: idle
- entity: light.kallen_bedroom_overhead - type: custom:bubble-card
name: Overhead card_type: separator
layout: icon|name_state name: Modes
state: icon: mdi:toggle-switch
case: first card_layout: large
state_icons: - type: custom:bubble-card
'on': hue:bulb-sultan card_type: button
'off': hue:bulb-sultan-off button_type: switch
unavailable: mdi:map-marker-question sub_button:
- entity: light.kallen_bedroom_wall main: []
name: Wall bottom: []
layout: icon|name_state entity: input_boolean.kallen_sleeping
state: grid_options:
case: first columns: 6
state_icons: rows: auto
'on': hue:bulb-sultan tap_action:
'off': hue:bulb-sultan-off action: toggle
unavailable: mdi:map-marker-question button_action:
- type: entities hold_action:
entities: action: none
- type: custom:paper-buttons-row name: Sleeping
buttons: - type: custom:bubble-card
- entity: input_boolean.kallen_sleeping card_type: separator
name: Sleeping name: Environment
layout: icon|name_state icon: mdi:thermometer
state_icons: card_layout: large
'on': mdi:sleep sub_button:
'off': mdi:sleep-off main: []
unavailable: mdi:map-marker-question bottom: []
state: - type: custom:bubble-card
case: first card_type: button
- entity: fan.kallen_bedroom_fan button_type: switch
name: Fan entity: fan.kallen_bedroom_fan
layout: icon|name_state name: Fan
state_icons: show_state: true
'on': mdi:fan tap_action:
'off': mdi:fan-off action: toggle
unavailable: mdi:map-marker-question double_tap_action:
state: action: none
case: first hold_action:
- entity: input_boolean.white_noise_kallen_bedroom action: more-info
name: White Noise button_action:
layout: icon|name_state double_tap_action:
state_icons: action: none
'on': mdi:volume-high styles: |-
'off': mdi:volume-off .bubble-icon {
unavailable: mdi:map-marker-question animation: ${state === 'on' ? 'slow-rotate 2s linear infinite' : ''};
state: }
case: first @keyframes slow-rotate {
- entity: input_select.kallen_bedroom_scenes 0% { transform: rotate(0deg); }
show_header_toggle: false 100% { transform: rotate(360deg); }
- type: glance }
show_name: true card_layout: large
show_icon: true columns: 2
show_state: true - type: custom:bubble-card
state_color: true card_type: button
entities: button_type: switch
- entity: binary_sensor.kallen_bedroom_window_1 entity: input_boolean.white_noise_kallen_bedroom
name: Window 1 name: White Noise
- entity: binary_sensor.kallen_bedroom_window_2 show_state: true
name: Window 2 tap_action:
- type: glance action: toggle
show_name: true double_tap_action:
show_icon: true action: none
show_state: true hold_action:
state_color: true action: more-info
entities: button_action:
- entity: sensor.kallen_bedroom_temperature double_tap_action:
name: Temp action: none
- entity: sensor.kallen_bedroom_illuminance card_layout: large
name: Lux columns: 2
- entity: binary_sensor.kallen_bedroom_motion - type: custom:bubble-card
name: Motion card_type: separator
- entity: binary_sensor.kallen_bedroom_occupied name: Status
name: Occupied icon: mdi:list-box
- type: custom:fold-entity-row card_layout: large
head: - type: custom:streamline-card
type: section template: main_temperature_button
label: More Settings variables:
entities: entity: sensor.kallen_bedroom_temperature
- type: custom:paper-buttons-row name: Temp
buttons: columns: '2'
- entity: switch.adaptive_lighting_kallen_bedroom hot_entity: binary_sensor.kallen_bedroom_hot
name: Adaptive Lighting cold_entity: binary_sensor.kallen_bedroom_cold
layout: icon|name_state - type: custom:bubble-card
state: card_type: button
case: first button_type: state
- entity: switch.adaptive_lighting_sleep_mode_kallen_bedroom name: Lux
name: Sleep Mode show_attribute: false
layout: icon|name_state card_layout: large
state: columns: 2
case: first sub_button:
- entity: input_boolean.kallen_overnight main: []
name: Overnight bottom: []
layout: icon|name_state entity: sensor.kallen_bedroom_illuminance
state: - type: custom:streamline-card
case: first template: state_color_button
- entity: switch.kallen_bedroom_motion_lighting variables:
name: Motion Lighting name: Motion
- entity: input_number.nighttime_brightness_kallen_bedroom columns: 2
name: Night Brightness color: bubble-accent-color
- entity: input_number.kallen_bedroom_lights_off_delay entity: binary_sensor.kallen_bedroom_motion
name: Lights Off Delay grid_options:
- entity: input_number.kallen_bedroom_lux_threshold columns: 6
name: Lux Threshold rows: auto
- type: custom:streamline-card
template: state_color_button
variables:
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
head:
type: section
label: More Settings
entities:
- type: custom:paper-buttons-row
buttons:
- entity: switch.adaptive_lighting_kallen_bedroom
name: Adaptive Lighting
layout: icon|name_state
state:
case: first
- entity: switch.adaptive_lighting_sleep_mode_kallen_bedroom
name: Sleep Mode
layout: icon|name_state
state:
case: first
- entity: input_boolean.kallen_overnight
name: Overnight
layout: icon|name_state
state:
case: first
- entity: switch.kallen_bedroom_motion_lighting
name: Motion Lighting
- entity: input_number.nighttime_brightness_kallen_bedroom
name: Night Brightness
- entity: input_number.kallen_bedroom_lights_off_delay
name: Lights Off Delay
- entity: input_number.kallen_bedroom_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? name: Emma Bedroom
condition: icon: hue:room-nursery
value: 'on' light_entity: light.emma_bedroom_light
entity: input_boolean.emma_sleeping power_entity: sensor.emma_bedroom_total_power_sensor
exemptions: null - type: custom:bubble-card
card: card_type: button
type: custom:stack-in-card button_type: slider
card_mod: modules:
style: | - default
ha-card { - subbutton_below
overflow: visible !important; rows: 1.719
} icon: mdi:bunk-bed
cards: tap_action:
- type: custom:mushroom-light-card action: toggle
entity: light.emma_bedroom_light double_tap_action:
name: Emma Bedroom action: perform-action
double_tap_action: perform_action: input_select.select_option
action: call-service target:
service: input_select.select_option entity_id: input_select.emma_bedroom_scenes
service_data: data:
option: Adaptive option: Adaptive
target: hold_action:
entity_id: input_select.emma_bedroom_scenes action: more-info
icon: hue:room-nursery sub_button:
layout: vertical main: []
show_brightness_control: true bottom:
collapsible_controls: true - name: Scene
- type: custom:state-switch buttons_layout: inline
entity: light.emma_bedroom_light group:
states: - name: Scene
'on': icon: mdi:palette
type: custom:mushroom-template-card sub_button_type: select
primary: Current Scene
secondary: '{{ states(''input_text.emma_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.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
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: 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_name: true
show_icon: true entity: input_select.emma_bedroom_scenes
show_state: true name: Lights
state_color: true entity: light.emma_bedroom_light
entities: - type: custom:streamline-card
- entity: binary_sensor.emma_bedroom_aircon_compressor template: timer_card
name: Compressor variables:
- entity: binary_sensor.emma_bedroom_aircon_filter_alert name: Lights Timer
name: Filter icon: mdi:timer
- type: custom:state-switch entity: timer.emma_bedroom_motion_timer
entity: input_boolean.emma_bedroom_heater_installed visibility:
states: - condition: state
'on': entity: timer.emma_bedroom_motion_timer
type: custom:versatile-thermostat-ui-card state_not: idle
entity: climate.emma_bedroom_vtherm - type: custom:bubble-card
powerEntity: sensor.emma_bedroom_heater_power card_type: separator
theme: classic name: Modes
disable_name: true icon: mdi:toggle-switch
disable_auto_fan_infos: true card_layout: large
- type: entities - type: custom:bubble-card
entities: card_type: button
- entity: input_select.emma_bedroom_scenes button_type: switch
- type: glance sub_button:
show_name: true main: []
show_icon: true bottom: []
entity: input_boolean.emma_sleeping
grid_options:
columns: 6
rows: auto
tap_action:
action: toggle
button_action:
hold_action:
action: none
name: Sleeping
- type: custom:bubble-card
card_type: separator
name: Environment
icon: mdi:thermometer
card_layout: large
sub_button:
main: []
bottom: []
visibility:
- condition: or
conditions:
- condition: state
entity: input_boolean.emma_bedroom_aircon_installed
state: 'on'
- condition: state
entity: input_boolean.emma_bedroom_heater_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 show_state: true
state_color: true - name: Presets
entities: select_attribute: preset_modes
- entity: binary_sensor.emma_bedroom_window state_background: false
name: Window sub_button_type: select
- type: glance show_attribute: true
show_name: true attribute: preset_mode
show_icon: true 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 show_state: true
state_color: true - name: Presets
entities: select_attribute: preset_modes
- entity: sensor.emma_bedroom_temperature state_background: false
name: Temp sub_button_type: select
- entity: sensor.emma_bedroom_illuminance show_attribute: true
name: Light attribute: preset_mode
- entity: binary_sensor.emma_bedroom_motion bottom: []
name: Motion name: Thermostat
- entity: binary_sensor.emma_bedroom_occupied state_color: false
name: Occupied step: 1
- type: custom:fold-entity-row main_buttons_position: bottom
head: visibility:
type: section - condition: state
label: More Settings entity: input_boolean.emma_bedroom_aircon_installed
entities: state: 'on'
- type: custom:paper-buttons-row rows: 1.719
buttons: entity: climate.emma_bedroom_vtherm
- entity: switch.adaptive_lighting_emma_bedroom - type: custom:bubble-card
name: Adaptive Lighting card_type: button
layout: icon|name_state button_type: switch
state: entity: input_boolean.white_noise_emma_bedroom
case: first name: White Noise
- entity: switch.adaptive_lighting_sleep_mode_emma_bedroom show_state: true
name: Sleep Mode tap_action:
layout: icon|name_state action: toggle
state: double_tap_action:
case: first action: none
- entity: switch.emma_door_alert hold_action:
name: Door Alert action: more-info
- entity: button.emma_door_alert_cancel button_action:
name: Cancel Door Alert double_tap_action:
- entity: switch.emma_bedroom_motion_lighting action: none
name: Motion Lighting card_layout: large
- entity: switch.emma_bedroom_climate_watchdog columns: 2
name: Climate Watchdog - type: custom:bubble-card
secondary_info: Protects aircon settings card_type: separator
- entity: input_number.nighttime_brightness_emma_bedroom name: Status
name: Night Brightness icon: mdi:list-box
- entity: input_number.emma_bedroom_lights_off_delay card_layout: large
name: Lights Off Delay - type: custom:streamline-card
- entity: input_number.emma_bedroom_lux_threshold template: main_temperature_button
name: Lux Threshold variables:
entity: sensor.emma_bedroom_temperature
name: Temp
columns: '2'
hot_entity: binary_sensor.emma_bedroom_hot
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
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
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
head:
type: section
label: More Settings
entities:
- type: custom:paper-buttons-row
buttons:
- entity: switch.adaptive_lighting_emma_bedroom
name: Adaptive Lighting
layout: icon|name_state
state:
case: first
- entity: switch.adaptive_lighting_sleep_mode_emma_bedroom
name: Sleep Mode
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: switch.emma_bedroom_climate_watchdog
name: Climate Watchdog
secondary_info: Protects aircon settings
- entity: input_number.nighttime_brightness_emma_bedroom
name: Night Brightness
- entity: input_number.emma_bedroom_lights_off_delay
name: Lights Off Delay
- entity: input_number.emma_bedroom_lux_threshold
name: Lux Threshold
column_span: 1
background:
opacity: 10
max_columns: 4 max_columns: 4
cards: [] cards: []
- title: Basement - title: Basement