Toggles for front porch storm mode

home_automation/Home-Assistant-Configs#240
This commit is contained in:
2025-04-19 13:54:10 -04:00
parent bba958ee63
commit de7f14f77b
2 changed files with 73 additions and 0 deletions

View File

@ -3002,6 +3002,11 @@ views:
layout: icon|name_state
state:
case: first
- entity: switch.front_porch_storm_mode
name: Storm Mode
layout: icon|name_state
state:
case: first
- entity: input_number.daytime_colortemp_front_porch
name: Day Colortemp
- entity: input_number.nighttime_colortemp_front_porch

View File

@ -1254,10 +1254,51 @@ views:
icon: mdi:motion-sensor
tap_action:
action: toggle
modules:
- default
- type: custom:bubble-card
card_type: separator
name: Modes
icon: mdi:toggle-switch
modules:
- default
- type: horizontal-stack
cards:
- type: custom:bubble-card
card_type: button
button_type: switch
name: Storm Mode
double_tap_action:
action: none
hold_action:
action: more-info
button_action:
double_tap_action:
action: none
hold_action:
action: more-info
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
entity: switch.front_porch_storm_mode
show_state: true
tap_action:
action: toggle
- type: custom:bubble-card
card_type: empty-column
- type: custom:bubble-card
card_type: separator
name: Status
icon: mdi:list-box
modules:
- default
- type: horizontal-stack
cards:
- type: custom:bubble-card
@ -1282,6 +1323,8 @@ views:
.bubble-icon {
color: ${state === 'on' ? 'var(--accent-color)' : 'var(--text-color)'} !important;
}
modules:
- default
- type: custom:bubble-card
card_type: button
button_type: state
@ -3874,6 +3917,31 @@ views:
- condition: state
entity: binary_sensor.light_switch_issue
state: 'on'
- type: custom:mushroom-template-badge
entity: binary_sensor.emma_bedroom_door
icon: |-
{% if is_state(entity,'on') %}
mdi:door-open
{% else %}
mdi:door-closed
{% endif %}
color: |-
{% if is_state(entity,'on') %}
red
{% else %}
green
{% endif %}
label: Emma Door Status
content: |-
{% if is_state(entity,'on') %}
Emma's door has been left open!
{% else %}
Emma's door is closed
{% endif %}
visibility:
- condition: state
entity: binary_sensor.emma_bedroom_door
state: 'on'
- type: custom:mushroom-template-badge
content: |-
{% if is_state(entity,'on') %}