Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
f4b2ad0292
|
|||
|
aad7981983
|
|||
|
9f19a75ec3
|
|||
|
1acdd2c884
|
|||
|
ebb53377f0
|
@@ -932,8 +932,6 @@ views:
|
||||
base_config:
|
||||
state_styles:
|
||||
idle:
|
||||
button:
|
||||
background-color: var(--table-row-alternative-background-color)
|
||||
name:
|
||||
color: white
|
||||
icon:
|
||||
@@ -6089,9 +6087,12 @@ views:
|
||||
- type: entities
|
||||
entities:
|
||||
- entity: binary_sensor.internet
|
||||
- entity: sensor.min_ping
|
||||
- entity: sensor.avg_ping
|
||||
- entity: sensor.max_ping
|
||||
- entity: sensor.internet_round_trip_time_minimum
|
||||
name: Min 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
|
||||
state_color: true
|
||||
- type: entities
|
||||
|
||||
@@ -310,6 +310,39 @@ streamline_templates:
|
||||
- state_color_button
|
||||
state_color_button:
|
||||
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:
|
||||
card:
|
||||
type: custom:stack-in-card
|
||||
@@ -491,6 +524,294 @@ views:
|
||||
icon: mdi:cellphone-information
|
||||
navigation_path: /dashboard-mobile/mobile-devices
|
||||
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
|
||||
icon: mdi:cctv
|
||||
heading: Cameras
|
||||
@@ -1774,9 +2095,9 @@ views:
|
||||
- type: custom:streamline-card
|
||||
template: popup_temperature_button
|
||||
variables:
|
||||
- name: Front Temp
|
||||
- entity: sensor.living_room_front_temperature
|
||||
- hot_entity: binary_sensor.living_room_hot
|
||||
name: Front Temp
|
||||
entity: sensor.living_room_front_temperature
|
||||
hot_entity: binary_sensor.living_room_hot
|
||||
- type: custom:bubble-card
|
||||
card_type: button
|
||||
button_type: state
|
||||
@@ -1788,9 +2109,9 @@ views:
|
||||
- type: custom:streamline-card
|
||||
template: popup_temperature_button
|
||||
variables:
|
||||
- name: Back Temp
|
||||
- entity: sensor.living_room_back_temperature
|
||||
- hot_entity: binary_sensor.living_room_back_hot
|
||||
name: Back Temp
|
||||
entity: sensor.living_room_back_temperature
|
||||
hot_entity: binary_sensor.living_room_back_hot
|
||||
- type: custom:bubble-card
|
||||
card_type: button
|
||||
button_type: state
|
||||
@@ -1802,26 +2123,26 @@ views:
|
||||
- type: custom:streamline-card
|
||||
template: state_color_button
|
||||
variables:
|
||||
- name: Front Motion
|
||||
- entity: binary_sensor.living_room_front_motion
|
||||
- color: accent-color
|
||||
name: Front Motion
|
||||
entity: binary_sensor.living_room_front_motion
|
||||
color: accent-color
|
||||
- type: custom:streamline-card
|
||||
template: state_color_button
|
||||
variables:
|
||||
- name: Back Motion
|
||||
- entity: binary_sensor.living_room_back_motion
|
||||
- color: accent-color
|
||||
name: Back Motion
|
||||
entity: binary_sensor.living_room_back_motion
|
||||
color: accent-color
|
||||
- type: custom:streamline-card
|
||||
template: state_color_button
|
||||
variables:
|
||||
- name: Occupied
|
||||
- entity: binary_sensor.living_room_occupied
|
||||
- color: accent-color
|
||||
name: Occupied
|
||||
entity: binary_sensor.living_room_occupied
|
||||
color: accent-color
|
||||
- type: custom:streamline-card
|
||||
template: popup_timer_card
|
||||
variables:
|
||||
- name: Lights Timer
|
||||
- entity: timer.living_room_motion_timer
|
||||
name: Lights Timer
|
||||
entity: timer.living_room_motion_timer
|
||||
- type: custom:bubble-card
|
||||
card_type: separator
|
||||
name: Security
|
||||
@@ -1829,11 +2150,11 @@ views:
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:streamline-card
|
||||
template: state_color_button
|
||||
template: contact_sensor_button
|
||||
variables:
|
||||
- name: Door
|
||||
- entity: binary_sensor.front_door
|
||||
- color: error-color
|
||||
name: Door
|
||||
entity: binary_sensor.front_door
|
||||
color: error-color
|
||||
- type: custom:bubble-card
|
||||
card_type: empty-column
|
||||
- type: custom:bubble-card
|
||||
@@ -1841,63 +2162,63 @@ views:
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:streamline-card
|
||||
template: state_color_button
|
||||
template: contact_sensor_button
|
||||
variables:
|
||||
- name: Front 1
|
||||
- entity: binary_sensor.front_window_1
|
||||
- color: error-color
|
||||
name: Front 1
|
||||
entity: binary_sensor.front_window_1
|
||||
color: error-color
|
||||
- type: custom:streamline-card
|
||||
template: state_color_button
|
||||
template: contact_sensor_button
|
||||
variables:
|
||||
- name: Front 2
|
||||
- entity: binary_sensor.front_window_2
|
||||
- color: error-color
|
||||
name: Front 2
|
||||
entity: binary_sensor.front_window_2
|
||||
color: error-color
|
||||
- type: custom:streamline-card
|
||||
template: state_color_button
|
||||
template: contact_sensor_button
|
||||
variables:
|
||||
- name: Front 3
|
||||
- entity: binary_sensor.front_window_3
|
||||
- color: error-color
|
||||
name: Front 3
|
||||
entity: binary_sensor.front_window_3
|
||||
color: error-color
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:streamline-card
|
||||
template: state_color_button
|
||||
template: contact_sensor_button
|
||||
variables:
|
||||
- name: Side 1
|
||||
- entity: binary_sensor.side_window_1
|
||||
- color: error-color
|
||||
name: Side 1
|
||||
entity: binary_sensor.side_window_1
|
||||
color: error-color
|
||||
- type: custom:streamline-card
|
||||
template: state_color_button
|
||||
template: contact_sensor_button
|
||||
variables:
|
||||
- name: Side 2
|
||||
- entity: binary_sensor.side_window_2
|
||||
- color: error-color
|
||||
name: Side 2
|
||||
entity: binary_sensor.side_window_2
|
||||
color: error-color
|
||||
- type: custom:streamline-card
|
||||
template: state_color_button
|
||||
template: contact_sensor_button
|
||||
variables:
|
||||
- name: Side 3
|
||||
- entity: binary_sensor.side_window_3
|
||||
- color: error-color
|
||||
name: Side 3
|
||||
entity: binary_sensor.side_window_3
|
||||
color: error-color
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:streamline-card
|
||||
template: state_color_button
|
||||
template: contact_sensor_button
|
||||
variables:
|
||||
- name: Side 4
|
||||
- entity: binary_sensor.side_window_4
|
||||
- color: error-color
|
||||
name: Side 4
|
||||
entity: binary_sensor.side_window_4
|
||||
color: error-color
|
||||
- type: custom:streamline-card
|
||||
template: state_color_button
|
||||
template: contact_sensor_button
|
||||
variables:
|
||||
- name: Back 1
|
||||
- entity: binary_sensor.back_window_1
|
||||
- color: error-color
|
||||
name: Back 1
|
||||
entity: binary_sensor.back_window_1
|
||||
color: error-color
|
||||
- type: custom:streamline-card
|
||||
template: state_color_button
|
||||
template: contact_sensor_button
|
||||
variables:
|
||||
- name: Back 2
|
||||
- entity: binary_sensor.back_window_2
|
||||
- color: error-color
|
||||
name: Back 2
|
||||
entity: binary_sensor.back_window_2
|
||||
color: error-color
|
||||
- type: vertical-stack
|
||||
cards:
|
||||
- type: custom:bubble-card
|
||||
@@ -1988,17 +2309,17 @@ views:
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:streamline-card
|
||||
template: state_color_button
|
||||
template: contact_sensor_button
|
||||
variables:
|
||||
- name: Back
|
||||
- entity: binary_sensor.downstairs_bathroom_window_1
|
||||
- color: error-color
|
||||
name: Back
|
||||
entity: binary_sensor.downstairs_bathroom_window_1
|
||||
color: error-color
|
||||
- type: custom:streamline-card
|
||||
template: state_color_button
|
||||
template: contact_sensor_button
|
||||
variables:
|
||||
- name: Side
|
||||
- entity: binary_sensor.downstairs_bathroom_window_2
|
||||
- color: error-color
|
||||
name: Side
|
||||
entity: binary_sensor.downstairs_bathroom_window_2
|
||||
color: error-color
|
||||
- type: custom:streamline-card
|
||||
template: popup_timer_card
|
||||
variables:
|
||||
@@ -2084,17 +2405,17 @@ views:
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:streamline-card
|
||||
template: state_color_button
|
||||
template: contact_sensor_button
|
||||
variables:
|
||||
- name: Big Window
|
||||
- entity: binary_sensor.kitchen_big_window
|
||||
- color: error-color
|
||||
name: Big Window
|
||||
entity: binary_sensor.kitchen_big_window
|
||||
color: error-color
|
||||
- type: custom:streamline-card
|
||||
template: state_color_button
|
||||
template: contact_sensor_button
|
||||
variables:
|
||||
- name: Sink Window
|
||||
- entity: binary_sensor.kitchen_sink_window
|
||||
- color: error-color
|
||||
name: Sink Window
|
||||
entity: binary_sensor.kitchen_sink_window
|
||||
color: error-color
|
||||
- type: vertical-stack
|
||||
cards:
|
||||
- type: custom:bubble-card
|
||||
@@ -2175,17 +2496,17 @@ views:
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:streamline-card
|
||||
template: state_color_button
|
||||
template: contact_sensor_button
|
||||
variables:
|
||||
- name: Back Door
|
||||
- entity: binary_sensor.back_door
|
||||
- color: error-color
|
||||
name: Back Door
|
||||
entity: binary_sensor.back_door
|
||||
color: error-color
|
||||
- type: custom:streamline-card
|
||||
template: state_color_button
|
||||
template: contact_sensor_button
|
||||
variables:
|
||||
- name: Window
|
||||
- entity: binary_sensor.mud_room_window
|
||||
- color: error-color
|
||||
name: Window
|
||||
entity: binary_sensor.mud_room_window
|
||||
color: error-color
|
||||
- type: custom:streamline-card
|
||||
template: popup_timer_card
|
||||
variables:
|
||||
@@ -2268,11 +2589,11 @@ views:
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:streamline-card
|
||||
template: state_color_button
|
||||
template: contact_sensor_button
|
||||
variables:
|
||||
- name: Window
|
||||
- entity: binary_sensor.stairway_window_lower
|
||||
- color: error-color
|
||||
name: Window
|
||||
entity: binary_sensor.stairway_window_lower
|
||||
color: error-color
|
||||
- type: custom:bubble-card
|
||||
card_type: empty-column
|
||||
- type: custom:streamline-card
|
||||
@@ -3199,13 +3520,13 @@ views:
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:streamline-card
|
||||
template: state_color_button
|
||||
template: contact_sensor_button
|
||||
variables:
|
||||
- name: Front
|
||||
- entity: binary_sensor.front_door
|
||||
- color: error-color
|
||||
- type: custom:streamline-card
|
||||
template: state_color_button
|
||||
template: contact_sensor_button
|
||||
variables:
|
||||
- name: Back
|
||||
- entity: binary_sensor.back_door
|
||||
@@ -3217,19 +3538,19 @@ views:
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:streamline-card
|
||||
template: state_color_button
|
||||
template: contact_sensor_button
|
||||
variables:
|
||||
- name: Front 1
|
||||
- entity: binary_sensor.front_window_1
|
||||
- color: error-color
|
||||
- type: custom:streamline-card
|
||||
template: state_color_button
|
||||
template: contact_sensor_button
|
||||
variables:
|
||||
- name: Front 2
|
||||
- entity: binary_sensor.front_window_2
|
||||
- color: error-color
|
||||
- type: custom:streamline-card
|
||||
template: state_color_button
|
||||
template: contact_sensor_button
|
||||
variables:
|
||||
- name: Front 3
|
||||
- entity: binary_sensor.front_window_3
|
||||
@@ -3237,19 +3558,19 @@ views:
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:streamline-card
|
||||
template: state_color_button
|
||||
template: contact_sensor_button
|
||||
variables:
|
||||
- name: Side 1
|
||||
- entity: binary_sensor.side_window_1
|
||||
- color: error-color
|
||||
- type: custom:streamline-card
|
||||
template: state_color_button
|
||||
template: contact_sensor_button
|
||||
variables:
|
||||
- name: Side 2
|
||||
- entity: binary_sensor.side_window_2
|
||||
- color: error-color
|
||||
- type: custom:streamline-card
|
||||
template: state_color_button
|
||||
template: contact_sensor_button
|
||||
variables:
|
||||
- name: Side 3
|
||||
- entity: binary_sensor.side_window_3
|
||||
@@ -3257,19 +3578,19 @@ views:
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:streamline-card
|
||||
template: state_color_button
|
||||
template: contact_sensor_button
|
||||
variables:
|
||||
- name: Side 4
|
||||
- entity: binary_sensor.side_window_4
|
||||
- color: error-color
|
||||
- type: custom:streamline-card
|
||||
template: state_color_button
|
||||
template: contact_sensor_button
|
||||
variables:
|
||||
- name: Back 1
|
||||
- entity: binary_sensor.back_window_1
|
||||
- color: error-color
|
||||
- type: custom:streamline-card
|
||||
template: state_color_button
|
||||
template: contact_sensor_button
|
||||
variables:
|
||||
- name: Back 2
|
||||
- entity: binary_sensor.back_window_2
|
||||
@@ -3281,7 +3602,7 @@ views:
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:streamline-card
|
||||
template: state_color_button
|
||||
template: contact_sensor_button
|
||||
variables:
|
||||
- name: Window
|
||||
- entity: binary_sensor.stairway_window_lower
|
||||
@@ -3295,13 +3616,13 @@ views:
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:streamline-card
|
||||
template: state_color_button
|
||||
template: contact_sensor_button
|
||||
variables:
|
||||
- name: Big
|
||||
- entity: binary_sensor.kitchen_big_window
|
||||
- color: error-color
|
||||
- type: custom:streamline-card
|
||||
template: state_color_button
|
||||
template: contact_sensor_button
|
||||
variables:
|
||||
- name: Sink
|
||||
- entity: binary_sensor.kitchen_sink_window
|
||||
@@ -3313,7 +3634,7 @@ views:
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:streamline-card
|
||||
template: state_color_button
|
||||
template: contact_sensor_button
|
||||
variables:
|
||||
- name: Window
|
||||
- entity: binary_sensor.mud_room_window
|
||||
@@ -3327,13 +3648,13 @@ views:
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:streamline-card
|
||||
template: state_color_button
|
||||
template: contact_sensor_button
|
||||
variables:
|
||||
- name: Back
|
||||
- entity: binary_sensor.downstairs_bathroom_window_1
|
||||
- color: error-color
|
||||
- type: custom:streamline-card
|
||||
template: state_color_button
|
||||
template: contact_sensor_button
|
||||
variables:
|
||||
- name: Side
|
||||
- entity: binary_sensor.downstairs_bathroom_window_2
|
||||
@@ -3345,7 +3666,7 @@ views:
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:streamline-card
|
||||
template: state_color_button
|
||||
template: contact_sensor_button
|
||||
variables:
|
||||
- name: Window
|
||||
- entity: binary_sensor.stairway_window_upper
|
||||
@@ -3359,7 +3680,7 @@ views:
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:streamline-card
|
||||
template: state_color_button
|
||||
template: contact_sensor_button
|
||||
variables:
|
||||
- name: Window
|
||||
- entity: binary_sensor.upstairs_bathroom_window
|
||||
@@ -3807,6 +4128,22 @@ views:
|
||||
- condition: state
|
||||
entity: timer.emma_door_alert
|
||||
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
|
||||
content: Tornado Possible
|
||||
color: red
|
||||
@@ -4367,7 +4704,6 @@ views:
|
||||
header:
|
||||
card:
|
||||
type: markdown
|
||||
text_only: true
|
||||
content: >-
|
||||
{% from 'weather.jinja' import weatherReport %} {% from
|
||||
'formatting.jinja' import cleanup %} {% import 'status.jinja' as
|
||||
@@ -6437,6 +6773,13 @@ views:
|
||||
navigation_path: '#security'
|
||||
color: error-color
|
||||
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
|
||||
cards:
|
||||
- type: heading
|
||||
@@ -6638,6 +6981,33 @@ views:
|
||||
- state_color_button
|
||||
state_color_button:
|
||||
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
|
||||
cards:
|
||||
- type: heading
|
||||
|
||||
Reference in New Issue
Block a user