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 layout: icon|name_state
state: state:
case: first 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 - entity: input_number.daytime_colortemp_front_porch
name: Day Colortemp name: Day Colortemp
- entity: input_number.nighttime_colortemp_front_porch - entity: input_number.nighttime_colortemp_front_porch

View File

@ -1254,10 +1254,51 @@ views:
icon: mdi:motion-sensor icon: mdi:motion-sensor
tap_action: tap_action:
action: toggle 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 - type: custom:bubble-card
card_type: separator card_type: separator
name: Status name: Status
icon: mdi:list-box icon: mdi:list-box
modules:
- default
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:bubble-card - type: custom:bubble-card
@ -1282,6 +1323,8 @@ views:
.bubble-icon { .bubble-icon {
color: ${state === 'on' ? 'var(--accent-color)' : 'var(--text-color)'} !important; color: ${state === 'on' ? 'var(--accent-color)' : 'var(--text-color)'} !important;
} }
modules:
- default
- type: custom:bubble-card - type: custom:bubble-card
card_type: button card_type: button
button_type: state button_type: state
@ -3874,6 +3917,31 @@ views:
- condition: state - condition: state
entity: binary_sensor.light_switch_issue entity: binary_sensor.light_switch_issue
state: 'on' 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 - type: custom:mushroom-template-badge
content: |- content: |-
{% if is_state(entity,'on') %} {% if is_state(entity,'on') %}