Compare commits

...

5 Commits

2 changed files with 481 additions and 110 deletions

View File

@@ -932,8 +932,6 @@ views:
base_config: base_config:
state_styles: state_styles:
idle: idle:
button:
background-color: var(--table-row-alternative-background-color)
name: name:
color: white color: white
icon: icon:
@@ -6089,9 +6087,12 @@ views:
- type: entities - type: entities
entities: entities:
- entity: binary_sensor.internet - entity: binary_sensor.internet
- entity: sensor.min_ping - entity: sensor.internet_round_trip_time_minimum
- entity: sensor.avg_ping name: Min Ping
- entity: sensor.max_ping - entity: sensor.internet_round_trip_time_average
name: Avg Ping
- entity: sensor.internet_round_trip_time_maximum
name: Max Ping
show_header_toggle: false show_header_toggle: false
state_color: true state_color: true
- type: entities - type: entities

View File

@@ -310,6 +310,39 @@ streamline_templates:
- state_color_button - state_color_button
state_color_button: state_color_button:
color: '[[color]]' color: '[[color]]'
contact_sensor_button:
defaults:
- name: ''
- columns: 2
- show_state: true
card:
type: custom:bubble-card
card_type: button
button_type: state
entity: '[[entity]]'
name: '[[name]]'
show_state: '[[show_state]]'
tap_action:
action: more-info
double_tap_action:
action: none
hold_action:
action: none
button_action:
double_tap_action:
action: none
hold_action:
action: none
columns: '[[columns]]'
modules:
- default
- state_color_button
- get_state_attribute
state_color_button:
color: '[[color]]'
get_state_attribute:
- entity: '[[entity]]'
- entity: '[[entity]]_tamper'
phone_info_grid: phone_info_grid:
card: card:
type: custom:stack-in-card type: custom:stack-in-card
@@ -491,6 +524,294 @@ views:
icon: mdi:cellphone-information icon: mdi:cellphone-information
navigation_path: /dashboard-mobile/mobile-devices navigation_path: /dashboard-mobile/mobile-devices
columns: '4' columns: '4'
- type: custom:timeflow-card
title: >-
{% set person_name = "Tony" %} {% set birth_year = 1988 %} {% set
birthday_month = 9 %} {% set birthday_day = 8 %} {% set
current_date = now() %} {% set this_year_birthday =
current_date.replace(month=birthday_month, day=birthday_day,
hour=0, minute=0, second=0, microsecond=0) %} {% if current_date >
this_year_birthday %}
{% set next_birthday = this_year_birthday.replace(year=this_year_birthday.year + 1) %}
{% else %}
{% set next_birthday = this_year_birthday %}
{% endif %} {% set age = next_birthday.year - birth_year %} {{
person_name }}'s {{ age }}{{
'st' if age % 10 == 1 and age % 100 != 11 else
'nd' if age % 10 == 2 and age % 100 != 12 else
'rd' if age % 10 == 3 and age % 100 != 13 else
'th'
}} Birthday
target_date: >-
{% set birthday_month = 9 %} {% set birthday_day = 8 %} {% set
current_date = now() %} {% set this_year_birthday =
current_date.replace(month=birthday_month, day=birthday_day,
hour=0, minute=0, second=0, microsecond=0) %} {% if current_date >
this_year_birthday %}
{% set next_birthday = this_year_birthday.replace(year=this_year_birthday.year + 1) %}
{% else %}
{% set next_birthday = this_year_birthday %}
{% endif %} {{ next_birthday.isoformat() }}
creation_date: >-
{% set current_date = now() %} {% set start_of_year =
current_date.replace(month=1, day=1, hour=0, minute=0, second=0,
microsecond=0) %} {{ start_of_year.isoformat() }}
show_days: true
show_hours: true
show_minutes: true
show_seconds: false
expired_text: Happy Birthday Tony! 🎉
color: >-
{% set birthday_month = 9 %} {% set birthday_day = 8 %} {% set
current_date = now() %} {% set this_year_birthday =
current_date.replace(month=birthday_month, day=birthday_day,
hour=0, minute=0, second=0, microsecond=0) %} {% if current_date >
this_year_birthday %}
{% set next_birthday = this_year_birthday.replace(year=this_year_birthday.year + 1) %}
{% else %}
{% set next_birthday = this_year_birthday %}
{% endif %} {% set days_until = (next_birthday -
current_date).days %} {% if days_until == 0 %}
#FF6B6B
{% elif days_until <= 7 %}
#4ECDC4
{% elif days_until <= 30 %}
#45B7D1
{% else %}
#96CEB4
{% endif %}
background_color: '#2C3150'
progress_color: '#D0CFCF'
aspect_ratio: 4/2
stroke_width: 6
card_mod:
style: |
ha-card .title {
font-size: 2.2rem;
}
ha-card .subtitle {
font-size: 2.0rem;
}
visibility:
- condition: numeric_state
entity: sensor.anniversary_tony_s_birthday
below: 8
- type: custom:timeflow-card
title: >-
{% set person_name = "Tina" %} {% set birth_year = 1988 %} {% set
birthday_month = 8 %} {% set birthday_day = 14 %} {% set
current_date = now() %} {% set this_year_birthday =
current_date.replace(month=birthday_month, day=birthday_day,
hour=0, minute=0, second=0, microsecond=0) %} {% if current_date >
this_year_birthday %}
{% set next_birthday = this_year_birthday.replace(year=this_year_birthday.year + 1) %}
{% else %}
{% set next_birthday = this_year_birthday %}
{% endif %} {% set age = next_birthday.year - birth_year %} {{
person_name }}'s {{ age }}{{
'st' if age % 10 == 1 and age % 100 != 11 else
'nd' if age % 10 == 2 and age % 100 != 12 else
'rd' if age % 10 == 3 and age % 100 != 13 else
'th'
}} Birthday
target_date: >-
{% set birthday_month = 8 %} {% set birthday_day = 14 %} {% set
current_date = now() %} {% set this_year_birthday =
current_date.replace(month=birthday_month, day=birthday_day,
hour=0, minute=0, second=0, microsecond=0) %} {% if current_date >
this_year_birthday %}
{% set next_birthday = this_year_birthday.replace(year=this_year_birthday.year + 1) %}
{% else %}
{% set next_birthday = this_year_birthday %}
{% endif %} {{ next_birthday.isoformat() }}
creation_date: >-
{% set current_date = now() %} {% set start_of_year =
current_date.replace(month=1, day=1, hour=0, minute=0, second=0,
microsecond=0) %} {{ start_of_year.isoformat() }}
show_days: true
show_hours: true
show_minutes: true
show_seconds: false
expired_text: Happy Birthday Tina! 🎉
color: >-
{% set birthday_month = 8 %} {% set birthday_day = 14 %} {% set
current_date = now() %} {% set this_year_birthday =
current_date.replace(month=birthday_month, day=birthday_day,
hour=0, minute=0, second=0, microsecond=0) %} {% if current_date >
this_year_birthday %}
{% set next_birthday = this_year_birthday.replace(year=this_year_birthday.year + 1) %}
{% else %}
{% set next_birthday = this_year_birthday %}
{% endif %} {% set days_until = (next_birthday -
current_date).days %} {% if days_until == 0 %}
#FF6B6B
{% elif days_until <= 7 %}
#4ECDC4
{% elif days_until <= 30 %}
#45B7D1
{% else %}
#96CEB4
{% endif %}
background_color: '#2C3150'
progress_color: '#D0CFCF'
aspect_ratio: 4/2
stroke_width: 6
card_mod:
style: |
ha-card .title {
font-size: 2.2rem;
}
ha-card .subtitle {
font-size: 2.0rem;
}
visibility:
- condition: numeric_state
entity: sensor.anniversary_tina_s_birthday
below: 8
- type: custom:timeflow-card
title: >-
{% set person_name = "Kallen" %} {% set birth_year = 2012 %} {% set
birthday_month = 2 %} {% set birthday_day = 7 %} {% set
current_date = now() %} {% set this_year_birthday =
current_date.replace(month=birthday_month, day=birthday_day,
hour=0, minute=0, second=0, microsecond=0) %} {% if current_date >
this_year_birthday %}
{% set next_birthday = this_year_birthday.replace(year=this_year_birthday.year + 1) %}
{% else %}
{% set next_birthday = this_year_birthday %}
{% endif %} {% set age = next_birthday.year - birth_year %} {{
person_name }}'s {{ age }}{{
'st' if age % 10 == 1 and age % 100 != 11 else
'nd' if age % 10 == 2 and age % 100 != 12 else
'rd' if age % 10 == 3 and age % 100 != 13 else
'th'
}} Birthday
target_date: >-
{% set birthday_month = 2 %} {% set birthday_day = 7 %} {% set
current_date = now() %} {% set this_year_birthday =
current_date.replace(month=birthday_month, day=birthday_day,
hour=0, minute=0, second=0, microsecond=0) %} {% if current_date >
this_year_birthday %}
{% set next_birthday = this_year_birthday.replace(year=this_year_birthday.year + 1) %}
{% else %}
{% set next_birthday = this_year_birthday %}
{% endif %} {{ next_birthday.isoformat() }}
creation_date: >-
{% set current_date = now() %} {% set start_of_year =
current_date.replace(month=1, day=1, hour=0, minute=0, second=0,
microsecond=0) %} {{ start_of_year.isoformat() }}
show_days: true
show_hours: true
show_minutes: true
show_seconds: false
expired_text: Happy Birthday Kallen! 🎉
color: >-
{% set birthday_month = 2 %} {% set birthday_day = 7 %} {% set
current_date = now() %} {% set this_year_birthday =
current_date.replace(month=birthday_month, day=birthday_day,
hour=0, minute=0, second=0, microsecond=0) %} {% if current_date >
this_year_birthday %}
{% set next_birthday = this_year_birthday.replace(year=this_year_birthday.year + 1) %}
{% else %}
{% set next_birthday = this_year_birthday %}
{% endif %} {% set days_until = (next_birthday -
current_date).days %} {% if days_until == 0 %}
#FF6B6B
{% elif days_until <= 7 %}
#4ECDC4
{% elif days_until <= 30 %}
#45B7D1
{% else %}
#96CEB4
{% endif %}
background_color: '#2C3150'
progress_color: '#D0CFCF'
aspect_ratio: 4/2
stroke_width: 6
card_mod:
style: |
ha-card .title {
font-size: 2.2rem;
}
ha-card .subtitle {
font-size: 2.0rem;
}
visibility:
- condition: numeric_state
entity: sensor.anniversary_kallen_s_birthday
below: 8
- type: custom:timeflow-card
title: >-
{% set person_name = "Emmalynn" %} {% set birth_year = 2022 %} {% set
birthday_month = 1 %} {% set birthday_day = 10 %} {% set
current_date = now() %} {% set this_year_birthday =
current_date.replace(month=birthday_month, day=birthday_day,
hour=0, minute=0, second=0, microsecond=0) %} {% if current_date >
this_year_birthday %}
{% set next_birthday = this_year_birthday.replace(year=this_year_birthday.year + 1) %}
{% else %}
{% set next_birthday = this_year_birthday %}
{% endif %} {% set age = next_birthday.year - birth_year %} {{
person_name }}'s {{ age }}{{
'st' if age % 10 == 1 and age % 100 != 11 else
'nd' if age % 10 == 2 and age % 100 != 12 else
'rd' if age % 10 == 3 and age % 100 != 13 else
'th'
}} Birthday
target_date: >-
{% set birthday_month = 1 %} {% set birthday_day = 10 %} {% set
current_date = now() %} {% set this_year_birthday =
current_date.replace(month=birthday_month, day=birthday_day,
hour=0, minute=0, second=0, microsecond=0) %} {% if current_date >
this_year_birthday %}
{% set next_birthday = this_year_birthday.replace(year=this_year_birthday.year + 1) %}
{% else %}
{% set next_birthday = this_year_birthday %}
{% endif %} {{ next_birthday.isoformat() }}
creation_date: >-
{% set current_date = now() %} {% set start_of_year =
current_date.replace(month=1, day=1, hour=0, minute=0, second=0,
microsecond=0) %} {{ start_of_year.isoformat() }}
show_days: true
show_hours: true
show_minutes: true
show_seconds: false
expired_text: Happy Birthday Emmalynn! 🎉
color: >-
{% set birthday_month = 1 %} {% set birthday_day = 10 %} {% set
current_date = now() %} {% set this_year_birthday =
current_date.replace(month=birthday_month, day=birthday_day,
hour=0, minute=0, second=0, microsecond=0) %} {% if current_date >
this_year_birthday %}
{% set next_birthday = this_year_birthday.replace(year=this_year_birthday.year + 1) %}
{% else %}
{% set next_birthday = this_year_birthday %}
{% endif %} {% set days_until = (next_birthday -
current_date).days %} {% if days_until == 0 %}
#FF6B6B
{% elif days_until <= 7 %}
#4ECDC4
{% elif days_until <= 30 %}
#45B7D1
{% else %}
#96CEB4
{% endif %}
background_color: '#2C3150'
progress_color: '#D0CFCF'
aspect_ratio: 4/2
stroke_width: 6
card_mod:
style: |
ha-card .title {
font-size: 2.2rem;
}
ha-card .subtitle {
font-size: 2.0rem;
}
visibility:
- condition: numeric_state
entity: sensor.anniversary_emmalynn_s_birthday
below: 8
- type: heading - type: heading
icon: mdi:cctv icon: mdi:cctv
heading: Cameras heading: Cameras
@@ -1774,9 +2095,9 @@ views:
- type: custom:streamline-card - type: custom:streamline-card
template: popup_temperature_button template: popup_temperature_button
variables: variables:
- name: Front Temp name: Front Temp
- entity: sensor.living_room_front_temperature entity: sensor.living_room_front_temperature
- hot_entity: binary_sensor.living_room_hot hot_entity: binary_sensor.living_room_hot
- type: custom:bubble-card - type: custom:bubble-card
card_type: button card_type: button
button_type: state button_type: state
@@ -1788,9 +2109,9 @@ views:
- type: custom:streamline-card - type: custom:streamline-card
template: popup_temperature_button template: popup_temperature_button
variables: variables:
- name: Back Temp name: Back Temp
- entity: sensor.living_room_back_temperature entity: sensor.living_room_back_temperature
- hot_entity: binary_sensor.living_room_back_hot hot_entity: binary_sensor.living_room_back_hot
- type: custom:bubble-card - type: custom:bubble-card
card_type: button card_type: button
button_type: state button_type: state
@@ -1802,26 +2123,26 @@ views:
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: state_color_button
variables: variables:
- name: Front Motion name: Front Motion
- entity: binary_sensor.living_room_front_motion entity: binary_sensor.living_room_front_motion
- color: accent-color color: accent-color
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: state_color_button
variables: variables:
- name: Back Motion name: Back Motion
- entity: binary_sensor.living_room_back_motion entity: binary_sensor.living_room_back_motion
- color: accent-color color: accent-color
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: state_color_button
variables: variables:
- name: Occupied name: Occupied
- entity: binary_sensor.living_room_occupied entity: binary_sensor.living_room_occupied
- color: accent-color color: accent-color
- type: custom:streamline-card - type: custom:streamline-card
template: popup_timer_card template: popup_timer_card
variables: variables:
- name: Lights Timer name: Lights Timer
- entity: timer.living_room_motion_timer entity: timer.living_room_motion_timer
- type: custom:bubble-card - type: custom:bubble-card
card_type: separator card_type: separator
name: Security name: Security
@@ -1829,11 +2150,11 @@ views:
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Door name: Door
- entity: binary_sensor.front_door entity: binary_sensor.front_door
- color: error-color color: error-color
- type: custom:bubble-card - type: custom:bubble-card
card_type: empty-column card_type: empty-column
- type: custom:bubble-card - type: custom:bubble-card
@@ -1841,63 +2162,63 @@ views:
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Front 1 name: Front 1
- entity: binary_sensor.front_window_1 entity: binary_sensor.front_window_1
- color: error-color color: error-color
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Front 2 name: Front 2
- entity: binary_sensor.front_window_2 entity: binary_sensor.front_window_2
- color: error-color color: error-color
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Front 3 name: Front 3
- entity: binary_sensor.front_window_3 entity: binary_sensor.front_window_3
- color: error-color color: error-color
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Side 1 name: Side 1
- entity: binary_sensor.side_window_1 entity: binary_sensor.side_window_1
- color: error-color color: error-color
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Side 2 name: Side 2
- entity: binary_sensor.side_window_2 entity: binary_sensor.side_window_2
- color: error-color color: error-color
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Side 3 name: Side 3
- entity: binary_sensor.side_window_3 entity: binary_sensor.side_window_3
- color: error-color color: error-color
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Side 4 name: Side 4
- entity: binary_sensor.side_window_4 entity: binary_sensor.side_window_4
- color: error-color color: error-color
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Back 1 name: Back 1
- entity: binary_sensor.back_window_1 entity: binary_sensor.back_window_1
- color: error-color color: error-color
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Back 2 name: Back 2
- entity: binary_sensor.back_window_2 entity: binary_sensor.back_window_2
- color: error-color color: error-color
- type: vertical-stack - type: vertical-stack
cards: cards:
- type: custom:bubble-card - type: custom:bubble-card
@@ -1988,17 +2309,17 @@ views:
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Back name: Back
- entity: binary_sensor.downstairs_bathroom_window_1 entity: binary_sensor.downstairs_bathroom_window_1
- color: error-color color: error-color
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Side name: Side
- entity: binary_sensor.downstairs_bathroom_window_2 entity: binary_sensor.downstairs_bathroom_window_2
- color: error-color color: error-color
- type: custom:streamline-card - type: custom:streamline-card
template: popup_timer_card template: popup_timer_card
variables: variables:
@@ -2084,17 +2405,17 @@ views:
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Big Window name: Big Window
- entity: binary_sensor.kitchen_big_window entity: binary_sensor.kitchen_big_window
- color: error-color color: error-color
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Sink Window name: Sink Window
- entity: binary_sensor.kitchen_sink_window entity: binary_sensor.kitchen_sink_window
- color: error-color color: error-color
- type: vertical-stack - type: vertical-stack
cards: cards:
- type: custom:bubble-card - type: custom:bubble-card
@@ -2175,17 +2496,17 @@ views:
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Back Door name: Back Door
- entity: binary_sensor.back_door entity: binary_sensor.back_door
- color: error-color color: error-color
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Window name: Window
- entity: binary_sensor.mud_room_window entity: binary_sensor.mud_room_window
- color: error-color color: error-color
- type: custom:streamline-card - type: custom:streamline-card
template: popup_timer_card template: popup_timer_card
variables: variables:
@@ -2268,11 +2589,11 @@ views:
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Window name: Window
- entity: binary_sensor.stairway_window_lower entity: binary_sensor.stairway_window_lower
- color: error-color color: error-color
- type: custom:bubble-card - type: custom:bubble-card
card_type: empty-column card_type: empty-column
- type: custom:streamline-card - type: custom:streamline-card
@@ -3199,13 +3520,13 @@ views:
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Front - name: Front
- entity: binary_sensor.front_door - entity: binary_sensor.front_door
- color: error-color - color: error-color
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Back - name: Back
- entity: binary_sensor.back_door - entity: binary_sensor.back_door
@@ -3217,19 +3538,19 @@ views:
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Front 1 - name: Front 1
- entity: binary_sensor.front_window_1 - entity: binary_sensor.front_window_1
- color: error-color - color: error-color
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Front 2 - name: Front 2
- entity: binary_sensor.front_window_2 - entity: binary_sensor.front_window_2
- color: error-color - color: error-color
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Front 3 - name: Front 3
- entity: binary_sensor.front_window_3 - entity: binary_sensor.front_window_3
@@ -3237,19 +3558,19 @@ views:
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Side 1 - name: Side 1
- entity: binary_sensor.side_window_1 - entity: binary_sensor.side_window_1
- color: error-color - color: error-color
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Side 2 - name: Side 2
- entity: binary_sensor.side_window_2 - entity: binary_sensor.side_window_2
- color: error-color - color: error-color
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Side 3 - name: Side 3
- entity: binary_sensor.side_window_3 - entity: binary_sensor.side_window_3
@@ -3257,19 +3578,19 @@ views:
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Side 4 - name: Side 4
- entity: binary_sensor.side_window_4 - entity: binary_sensor.side_window_4
- color: error-color - color: error-color
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Back 1 - name: Back 1
- entity: binary_sensor.back_window_1 - entity: binary_sensor.back_window_1
- color: error-color - color: error-color
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Back 2 - name: Back 2
- entity: binary_sensor.back_window_2 - entity: binary_sensor.back_window_2
@@ -3281,7 +3602,7 @@ views:
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Window - name: Window
- entity: binary_sensor.stairway_window_lower - entity: binary_sensor.stairway_window_lower
@@ -3295,13 +3616,13 @@ views:
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Big - name: Big
- entity: binary_sensor.kitchen_big_window - entity: binary_sensor.kitchen_big_window
- color: error-color - color: error-color
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Sink - name: Sink
- entity: binary_sensor.kitchen_sink_window - entity: binary_sensor.kitchen_sink_window
@@ -3313,7 +3634,7 @@ views:
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Window - name: Window
- entity: binary_sensor.mud_room_window - entity: binary_sensor.mud_room_window
@@ -3327,13 +3648,13 @@ views:
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Back - name: Back
- entity: binary_sensor.downstairs_bathroom_window_1 - entity: binary_sensor.downstairs_bathroom_window_1
- color: error-color - color: error-color
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Side - name: Side
- entity: binary_sensor.downstairs_bathroom_window_2 - entity: binary_sensor.downstairs_bathroom_window_2
@@ -3345,7 +3666,7 @@ views:
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Window - name: Window
- entity: binary_sensor.stairway_window_upper - entity: binary_sensor.stairway_window_upper
@@ -3359,7 +3680,7 @@ views:
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Window - name: Window
- entity: binary_sensor.upstairs_bathroom_window - entity: binary_sensor.upstairs_bathroom_window
@@ -3807,6 +4128,22 @@ views:
- condition: state - condition: state
entity: timer.emma_door_alert entity: timer.emma_door_alert
state: active state: active
- type: custom:mushroom-template-badge
content: Alert Disabled
icon: mdi:alert
entity: switch.emma_door_alert
color: yellow
label: Emma Door Alert
tap_action:
action: toggle
hold_action:
action: more-info
double_tap_action:
action: none
visibility:
- condition: state
entity: switch.emma_door_alert
state: 'off'
- type: custom:mushroom-template-badge - type: custom:mushroom-template-badge
content: Tornado Possible content: Tornado Possible
color: red color: red
@@ -4367,7 +4704,6 @@ views:
header: header:
card: card:
type: markdown type: markdown
text_only: true
content: >- content: >-
{% from 'weather.jinja' import weatherReport %} {% from {% from 'weather.jinja' import weatherReport %} {% from
'formatting.jinja' import cleanup %} {% import 'status.jinja' as 'formatting.jinja' import cleanup %} {% import 'status.jinja' as
@@ -6437,6 +6773,13 @@ views:
navigation_path: '#security' navigation_path: '#security'
color: error-color color: error-color
columns: '2' columns: '2'
- type: custom:streamline-card
template: contact_sensor_button
variables:
entity: binary_sensor.side_window_1
name: Contact Sensor Button
color: error-color
columns: '2'
- type: grid - type: grid
cards: cards:
- type: heading - type: heading
@@ -6638,6 +6981,33 @@ views:
- state_color_button - state_color_button
state_color_button: state_color_button:
color: error-color color: error-color
- type: custom:bubble-card
card_type: button
button_type: state
entity: binary_sensor.side_window_1
name: Contact Sensor Button
show_state: true
tap_action:
action: more-info
double_tap_action:
action: none
hold_action:
action: none
button_action:
double_tap_action:
action: none
hold_action:
action: none
columns: 2
modules:
- default
- state_color_button
- get_state_attribute
state_color_button:
color: error-color
get_state_attribute:
- entity: binary_sensor.side_window_1
- entity: binary_sensor.side_window_1_tamper
- type: grid - type: grid
cards: cards:
- type: heading - type: heading