Replace front porch card

This commit is contained in:
2026-04-08 20:49:01 -04:00
parent b7f6dba4a5
commit 7e3834194a

View File

@@ -3353,167 +3353,167 @@ views:
sections: sections:
- type: grid - type: grid
cards: cards:
- type: custom:auto-entities - type: custom:streamline-card
show_empty: false template: main_room_header
card: variables:
type: entities - name: Front Porch
title: Lights on - icon: hue:room-outdoors
show_header_toggle: false - power_entity: sensor.front_porch_light_power_sensor
state_color: true - light_entity: light.front_porch_light
filter: - type: custom:bubble-card
include: card_type: button
- group: light.outside_lights button_type: slider
exclude: modules:
- state: 'off' - default
- state: unavailable - subbutton_below
sort: rows: 1.719
method: friendly_name icon: hue:room-outdoors
tap_action:
action: toggle
double_tap_action:
action: perform-action
perform_action: input_select.select_option
target:
entity_id: input_select.front_porch_scenes
data:
option: Adaptive
hold_action:
action: more-info
sub_button:
main:
- name: Modes
buttons_layout: inline
group:
- entity: switch.front_porch_storm_mode
name: Storm Mode
show_name: true
tap_action:
action: toggle
hold_action:
action: more-info
bottom:
- name: Scene
buttons_layout: inline
group:
- name: Scene
icon: mdi:palette
sub_button_type: select
entity: input_select.front_porch_scenes
show_name: true
name: Lights
entity: light.front_porch_light
- type: custom:streamline-card
template: timer_card
variables:
name: Motion Timer
icon: mdi:timer
entity: timer.front_porch_motion_timer
visibility: visibility:
- condition: state - condition: state
entity: light.outside_lights entity: timer.downstairs_bathroom_lights_timer
state: 'on' state_not: idle
- type: custom:stack-in-card - type: custom:bubble-card
card_mod: card_type: separator
style: | name: Status
ha-card { icon: mdi:list-box
overflow: visible !important; card_layout: large
} - type: custom:streamline-card
template: main_temperature_button
variables:
name: Temp
entity: sensor.home_tempest_temperature
columns: 2
grid_options:
columns: 6
rows: auto
- type: custom:bubble-card
card_type: button
button_type: state
entity: sensor.home_tempest_illuminance
name: Lux
card_layout: large
columns: 2
- type: custom:streamline-card
template: state_color_button
variables:
name: Ding
entity: binary_sensor.front_doorbell_ding_mqtt
columns: 2
color: success-color
grid_options:
columns: 6
rows: auto
- type: custom:streamline-card
template: state_color_button
variables:
name: Motion
entity: binary_sensor.front_doorbell_motion_mqtt
columns: 2
color: bubble-accent-color
grid_options:
columns: 6
rows: auto
- type: custom:expander-card
title: More Settings
cards: cards:
- type: custom:mushroom-light-card - type: horizontal-stack
icon: hue:room-porch cards:
name: Front Porch - type: custom:bubble-card
double_tap_action: card_type: button
action: call-service button_type: switch
service: input_select.select_option sub_button:
service_data: main: []
option: Adaptive bottom: []
target: entity: switch.adaptive_lighting_front_porch
entity_id: input_select.front_porch_scenes name: Adaptive Lighting
hold_action: show_state: true
action: more-info
entity: light.front_porch_light
use_light_color: true
show_brightness_control: true
show_color_temp_control: true
show_color_control: true
collapsible_controls: true
fill_container: false
layout: vertical
- type: custom:state-switch
entity: light.front_porch_light
states:
'on':
type: custom:mushroom-template-card
primary: Current Scene
secondary: '{{ states(''input_text.front_porch_selected_scene'') }}'
tap_action: tap_action:
action: none action: toggle
hold_action: hold_action:
action: none action: more-info
double_tap_action: - type: custom:bubble-card
action: none card_type: button
layout: vertical button_type: switch
- type: custom:state-switch sub_button:
entity: light.front_porch_light main: []
states: bottom: []
'on': entity: switch.adaptive_lighting_sleep_mode_front_porch
type: custom:mushroom-template-card name: Night Mode
entity: sensor.outside_lights_power_sensor show_state: true
primary: Power Usage tap_action:
secondary: '{{ states(''sensor.outside_lights_power_sensor'') }} W' action: toggle
tap_action: hold_action:
action: more-info action: more-info
hold_action: - type: horizontal-stack
action: none cards:
double_tap_action: - type: custom:bubble-card
action: none card_type: button
layout: vertical button_type: switch
- type: custom:timer-bar-card sub_button:
filter: true main: []
entities: bottom: []
- entity: timer.front_porch_motion_timer entity: input_boolean.delivery_mode
sync_issues: ignore name: Delivery Mode
tap_action: show_state: true
action: none tap_action:
action: toggle
hold_action:
action: more-info
- type: custom:bubble-card
card_type: button
button_type: switch
sub_button:
main: []
bottom: []
entity: input_boolean.holiday_mode
name: Holiday Mode
show_state: true
tap_action:
action: toggle
hold_action: hold_action:
action: more-info 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.front_porch_motion_timer
- type: entities - type: entities
entities: entities:
- entity: input_select.front_porch_scenes
show_header_toggle: false
- type: glance
show_name: true
show_icon: true
show_state: true
state_color: true
entities:
- entity: sensor.home_tempest_temperature
name: Temp
- entity: sensor.home_tempest_illuminance
name: Lux
- type: glance
show_name: true
show_icon: true
show_state: true
state_color: true
entities:
- entity: binary_sensor.front_doorbell_ding_mqtt
name: Ding
- entity: binary_sensor.front_doorbell_motion_mqtt
name: Motion
- entity: sensor.front_doorbell_battery_mqtt
name: Battery
- type: custom:fold-entity-row
head:
type: section
label: More Settings
entities:
- type: custom:paper-buttons-row
buttons:
- entity: switch.adaptive_lighting_front_porch
name: Adaptive Lighting
layout: icon|name_state
state:
case: first
- entity: input_boolean.front_porch_light_on
name: Automation
layout: icon|name_state
state:
case: first
- type: custom:paper-buttons-row
buttons:
- entity: input_boolean.delivery_mode
name: Delivery Mode
layout: icon|name_state
state:
case: first
- entity: input_boolean.holiday_mode
name: Holiday Mode
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 - 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
@@ -3522,6 +3522,10 @@ views:
name: Lux Threshold name: Lux Threshold
- entity: input_number.front_porch_motion_off_delay - entity: input_number.front_porch_motion_off_delay
name: Lights Off Delay name: Lights Off Delay
icon: mdi:cog
column_span: 1
background:
opacity: 10
max_columns: 4 max_columns: 4
cards: [] cards: []
- title: Housewide - title: Housewide