Compare commits

...

9 Commits

2 changed files with 345 additions and 143 deletions
+57 -20
View File
@@ -189,9 +189,28 @@ views:
- type: custom:mushroom-template-card - type: custom:mushroom-template-card
primary: Lightning Warning primary: Lightning Warning
secondary: >- secondary: >-
{% if
states('sensor.home_tempest_cloud_sensors_lightning_strikes_last_hour')
| int > 0 %}
{{ {{
states('sensor.home_tempest_cloud_sensors_lightning_strikes_last_hour') states('sensor.home_tempest_cloud_sensors_lightning_strikes_last_hour')
}} strikes in last hour! | int }} strikes last hour!
{% elif
states('sensor.home_tempest_cloud_sensors_lightning_strikes_last_3_hours')
| int > 0 %}
{{
states('sensor.home_tempest_cloud_sensors_lightning_strikes_last_3_hours')
| int }} strikes last 3 hours!
{% else %}
{{ states('sensor.blitzortung_lightning_counter') }} strikes
during this storm!
{% endif %}
icon: mdi:lightning-bolt icon: mdi:lightning-bolt
entity: binary_sensor.lightning_warning entity: binary_sensor.lightning_warning
color: var(--warning-color) color: var(--warning-color)
@@ -205,6 +224,7 @@ views:
- condition: state - condition: state
entity: binary_sensor.lightning_warning entity: binary_sensor.lightning_warning
state: 'on' state: 'on'
features_position: bottom
column_span: 1 column_span: 1
- type: grid - type: grid
cards: cards:
@@ -663,7 +683,6 @@ views:
exclude: exclude:
- state: 'off' - state: 'off'
- state: unavailable - state: unavailable
- entity_id: light.tina_desk_lights
sort: sort:
method: friendly_name method: friendly_name
visibility: visibility:
@@ -4425,6 +4444,10 @@ views:
name: I am awake name: I am awake
- entity: input_select.kallen_morning_briefing_location - entity: input_select.kallen_morning_briefing_location
name: Morning Briefing Location name: Morning Briefing Location
- entity: input_datetime.kallen_awake_at
name: Awake Time
- entity: input_datetime.kallen_asleep_at
name: Asleep Time
max_columns: 4 max_columns: 4
cards: [] cards: []
background: background:
@@ -6617,6 +6640,7 @@ views:
- sensor.back_door_battery - sensor.back_door_battery
- sensor.basement_studio_door_battery - sensor.basement_studio_door_battery
- sensor.downstairs_bathroom_door_battery - sensor.downstairs_bathroom_door_battery
- sensor.emma_bedroom_door_battery
- name: 'Window Sensors (min: {min}%, count: {count})' - name: 'Window Sensors (min: {min}%, count: {count})'
secondary_info: Battery levels {range}% secondary_info: Battery levels {range}%
icon: mdi:window-closed icon: mdi:window-closed
@@ -6638,6 +6662,11 @@ views:
- sensor.downstairs_bathroom_window_1_battery - sensor.downstairs_bathroom_window_1_battery
- sensor.downstairs_bathroom_window_2_battery - sensor.downstairs_bathroom_window_2_battery
- sensor.upstairs_bathroom_window_battery - sensor.upstairs_bathroom_window_battery
- sensor.master_bedroom_window_1_battery
- sensor.master_bedroom_window_2_battery
- sensor.kallen_bedroom_window_1_battery
- sensor.kallen_bedroom_window_2_battery
- sensor.emma_bedroom_window_battery
- name: 'Glass Break Sensors (min: {min}%, count: {count})' - name: 'Glass Break Sensors (min: {min}%, count: {count})'
secondary_info: Battery levels {range}% secondary_info: Battery levels {range}%
icon: mdi:image-broken-variant icon: mdi:image-broken-variant
@@ -7170,25 +7199,33 @@ views:
heading: Weather Alerts heading: Weather Alerts
heading_style: title heading_style: title
icon: mdi:cloud-alert icon: mdi:cloud-alert
- content: > - type: markdown
<hr> {% set alerts = [ title: Weather Alerts (Summary)
"sensor.weatheralerts_alert_1", content: >
"sensor.weatheralerts_alert_2", {% set alerts =
"sensor.weatheralerts_alert_3", state_attr('sensor.weatheralerts_defiance_ohz004_ohc039',
"sensor.weatheralerts_alert_4", 'alerts') or [] %} {% if alerts|length == 0 %} No active alerts.
"sensor.weatheralerts_alert_5"] %} {% else %} {% for alert in alerts[:5] %} <font
{% for alert in alerts if is_state(alert, 'on') %} {% if 'warning' color="orange"><ha-icon icon="{{ alert.icon }}"></ha-icon></font>
or 'severe' in state_attr( alert, 'display_title')|lower() %} {{ alert.get('event','Alert') }}: {{ alert.get('title',
<font color="red"> {% endif %} <b>{{ state_attr( alert, alert.get('headline','')) }} <br><br> {% endfor %} {% endif %}
'display_title') }}</b> {%- if 'warning' or 'severe' in - type: markdown
state_attr( alert, 'display_title')|lower() -%} </font> {%- endif title: Weather Alerts Status
%} <br>{{ state_attr( alert, 'display_message') }} {% if loop.last content: >
%} {% else %} <hr> {% endif %} {% endfor %} {% set errs =
type: markdown state_attr('sensor.weatheralerts_defiance_ohz004_ohc039', 'error')
or [] %} {% if errs|length == 0 %} **Status:** <font
color="orange">Unknown</font> {% else %} {% set err = errs[0] %}
{% if err.get('type') == 'success' %} **Status:** <font
color="green">**OK**</font> {% else %} **Status:** <font
color="red">**Error**</font> **Type:** {{ err.get('type','') }}
**Status:** {{ err.get('status','') }} **Message:** {{
err.get('message','') }} **Time:** {{ err.get('timestamp','') }}
{% endif %} {% endif %}
visibility: visibility:
- condition: state - condition: numeric_state
entity: sensor.weatheralerts_alerts_are_active entity: sensor.weatheralerts_defiance_ohz004_ohc039
state: 'Yes' above: 0
- type: grid - type: grid
cards: cards:
- type: heading - type: heading
+288 -123
View File
@@ -276,7 +276,8 @@ streamline_templates:
- default - default
- state_color_button - state_color_button
state_color_button: state_color_button:
color: '[[color]]' on_color: '[[on_color]]'
off_color: '[[off_color]]'
state_color_button_nav: state_color_button_nav:
defaults: defaults:
- name: '' - name: ''
@@ -309,7 +310,8 @@ streamline_templates:
- default - default
- state_color_button - state_color_button
state_color_button: state_color_button:
color: '[[color]]' on_color: '[[on_color]]'
off_color: '[[off_color]]'
contact_sensor_button: contact_sensor_button:
defaults: defaults:
- name: '' - name: ''
@@ -339,7 +341,8 @@ streamline_templates:
- state_color_button - state_color_button
- get_state_attribute - get_state_attribute
state_color_button: state_color_button:
color: '[[color]]' on_color: '[[on_color]]'
off_color: '[[off_color]]'
get_state_attribute: get_state_attribute:
- entity: '[[entity]]' - entity: '[[entity]]'
- entity: '[[entity]]_tamper' - entity: '[[entity]]_tamper'
@@ -622,7 +625,8 @@ views:
- entity: binary_sensor.security_faults - entity: binary_sensor.security_faults
- navigation_path: '#security' - navigation_path: '#security'
- columns: 2 - columns: 2
- color: error-color - on_color: error-color
- off_color: bubble-main-background-color
- show_state: false - show_state: false
grid_options: grid_options:
columns: 6 columns: 6
@@ -1259,7 +1263,7 @@ views:
styles: |- styles: |-
.bubble-button-background { .bubble-button-background {
opacity: 1 !important; opacity: 1 !important;
background-color: ${state === 'on' ? 'var(--accent-color)' : 'var(--background-color-2)'} !important; background-color: ${state === 'on' ? 'var(--bubble-accent-color)' : 'var(--background-color-2)'} !important;
} }
modules: modules:
- default - default
@@ -1294,7 +1298,7 @@ views:
styles: |- styles: |-
.bubble-button-background { .bubble-button-background {
opacity: 1 !important; opacity: 1 !important;
background-color: ${state === 'on' ? 'var(--accent-color)' : 'var(--background-color-2)'} !important; background-color: ${state === 'on' ? 'var(--bubble-accent-color)' : 'var(--background-color-2)'} !important;
} }
modules: modules:
- default - default
@@ -1644,13 +1648,15 @@ views:
variables: variables:
- name: Motion - name: Motion
- entity: binary_sensor.basement_studio_motion - entity: binary_sensor.basement_studio_motion
- color: accent-color - on_color: bubble-accent-color
- off_color: bubble-main-background-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.basement_occupied - entity: binary_sensor.basement_occupied
- color: accent-color - on_color: bubble-accent-color
- off_color: bubble-main-background-color
- type: custom:streamline-card - type: custom:streamline-card
template: popup_timer_card template: popup_timer_card
variables: variables:
@@ -1850,19 +1856,22 @@ views:
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 on_color: bubble-accent-color
off_color: bubble-main-background-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 on_color: bubble-accent-color
off_color: bubble-main-background-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 on_color: bubble-accent-color
off_color: bubble-main-background-color
- type: custom:streamline-card - type: custom:streamline-card
template: popup_timer_card template: popup_timer_card
variables: variables:
@@ -1879,7 +1888,8 @@ views:
variables: variables:
name: Door name: Door
entity: binary_sensor.front_door entity: binary_sensor.front_door
color: error-color on_color: error-color
off_color: bubble-main-background-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
@@ -1891,19 +1901,22 @@ views:
variables: variables:
name: Front 1 name: Front 1
entity: binary_sensor.front_window_1 entity: binary_sensor.front_window_1
color: error-color on_color: error-color
off_color: bubble-main-background-color
- type: custom:streamline-card - type: custom:streamline-card
template: contact_sensor_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 on_color: error-color
off_color: bubble-main-background-color
- type: custom:streamline-card - type: custom:streamline-card
template: contact_sensor_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 on_color: error-color
off_color: bubble-main-background-color
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:streamline-card - type: custom:streamline-card
@@ -1911,19 +1924,22 @@ views:
variables: variables:
name: Side 1 name: Side 1
entity: binary_sensor.side_window_1 entity: binary_sensor.side_window_1
color: error-color on_color: error-color
off_color: bubble-main-background-color
- type: custom:streamline-card - type: custom:streamline-card
template: contact_sensor_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 on_color: error-color
off_color: bubble-main-background-color
- type: custom:streamline-card - type: custom:streamline-card
template: contact_sensor_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 on_color: error-color
off_color: bubble-main-background-color
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:streamline-card - type: custom:streamline-card
@@ -1931,19 +1947,22 @@ views:
variables: variables:
name: Side 4 name: Side 4
entity: binary_sensor.side_window_4 entity: binary_sensor.side_window_4
color: error-color on_color: error-color
off_color: bubble-main-background-color
- type: custom:streamline-card - type: custom:streamline-card
template: contact_sensor_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 on_color: error-color
off_color: bubble-main-background-color
- type: custom:streamline-card - type: custom:streamline-card
template: contact_sensor_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 on_color: error-color
off_color: bubble-main-background-color
- type: vertical-stack - type: vertical-stack
cards: cards:
- type: custom:bubble-card - type: custom:bubble-card
@@ -2020,13 +2039,15 @@ views:
variables: variables:
- name: Motion - name: Motion
- entity: binary_sensor.downstairs_bathroom_motion - entity: binary_sensor.downstairs_bathroom_motion
- color: accent-color - on_color: bubble-accent-color
- off_color: bubble-main-background-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.downstairs_bathroom_occupied - entity: binary_sensor.downstairs_bathroom_occupied
- color: accent-color - on_color: bubble-accent-color
- off_color: bubble-main-background-color
- type: custom:bubble-card - type: custom:bubble-card
card_type: separator card_type: separator
name: Security name: Security
@@ -2038,13 +2059,15 @@ views:
variables: variables:
name: Back name: Back
entity: binary_sensor.downstairs_bathroom_window_1 entity: binary_sensor.downstairs_bathroom_window_1
color: error-color on_color: error-color
off_color: bubble-main-background-color
- type: custom:streamline-card - type: custom:streamline-card
template: contact_sensor_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 on_color: error-color
off_color: bubble-main-background-color
- type: custom:streamline-card - type: custom:streamline-card
template: popup_timer_card template: popup_timer_card
variables: variables:
@@ -2134,13 +2157,15 @@ views:
variables: variables:
name: Big Window name: Big Window
entity: binary_sensor.kitchen_big_window entity: binary_sensor.kitchen_big_window
color: error-color on_color: error-color
off_color: bubble-main-background-color
- type: custom:streamline-card - type: custom:streamline-card
template: contact_sensor_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 on_color: error-color
off_color: bubble-main-background-color
- type: vertical-stack - type: vertical-stack
cards: cards:
- type: custom:bubble-card - type: custom:bubble-card
@@ -2207,13 +2232,15 @@ views:
variables: variables:
- name: Motion - name: Motion
- entity: binary_sensor.mud_room_motion - entity: binary_sensor.mud_room_motion
- color: accent-color - on_color: bubble-accent-color
- off_color: bubble-main-background-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.mud_room_occupied - entity: binary_sensor.mud_room_occupied
- color: accent-color - on_color: bubble-accent-color
- off_color: bubble-main-background-color
- type: custom:bubble-card - type: custom:bubble-card
card_type: separator card_type: separator
name: Security name: Security
@@ -2225,13 +2252,15 @@ views:
variables: variables:
name: Back Door name: Back Door
entity: binary_sensor.back_door entity: binary_sensor.back_door
color: error-color on_color: error-color
off_color: bubble-main-background-color
- type: custom:streamline-card - type: custom:streamline-card
template: contact_sensor_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 on_color: error-color
off_color: bubble-main-background-color
- type: custom:streamline-card - type: custom:streamline-card
template: popup_timer_card template: popup_timer_card
variables: variables:
@@ -2300,13 +2329,15 @@ views:
variables: variables:
- name: Motion - name: Motion
- entity: binary_sensor.stairwell_bottom_motion - entity: binary_sensor.stairwell_bottom_motion
- color: accent-color - on_color: bubble-accent-color
- off_color: bubble-main-background-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.stairwell_occupied - entity: binary_sensor.stairwell_occupied
- color: accent-color - on_color: bubble-accent-color
- off_color: bubble-main-background-color
- type: custom:bubble-card - type: custom:bubble-card
card_type: separator card_type: separator
name: Security name: Security
@@ -2318,7 +2349,8 @@ views:
variables: variables:
name: Window name: Window
entity: binary_sensor.stairway_window_lower entity: binary_sensor.stairway_window_lower
color: error-color on_color: error-color
off_color: bubble-main-background-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
@@ -2397,13 +2429,15 @@ views:
variables: variables:
- name: Motion - name: Motion
- entity: binary_sensor.stairwell_top_motion - entity: binary_sensor.stairwell_top_motion
- color: accent-color - on_color: bubble-accent-color
- off_color: bubble-main-background-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.upstairs_hallway_occupied - entity: binary_sensor.upstairs_hallway_occupied
- color: accent-color - on_color: bubble-accent-color
- off_color: bubble-main-background-color
- type: custom:bubble-card - type: custom:bubble-card
card_type: separator card_type: separator
name: Security name: Security
@@ -2415,7 +2449,8 @@ views:
variables: variables:
name: Window name: Window
entity: binary_sensor.stairway_window_upper entity: binary_sensor.stairway_window_upper
color: error-color on_color: error-color
off_color: bubble-main-background-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
@@ -2521,13 +2556,15 @@ views:
variables: variables:
- name: Motion - name: Motion
- entity: binary_sensor.upstairs_bathroom_motion - entity: binary_sensor.upstairs_bathroom_motion
- color: accent-color - on_color: bubble-accent-color
- off_color: bubble-main-background-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.upstairs_bathroom_occupied - entity: binary_sensor.upstairs_bathroom_occupied
- color: accent-color - on_color: bubble-accent-color
- off_color: bubble-main-background-color
- type: custom:bubble-card - type: custom:bubble-card
card_type: separator card_type: separator
name: Security name: Security
@@ -2539,7 +2576,8 @@ views:
variables: variables:
name: Window name: Window
entity: binary_sensor.upstairs_bathroom_window entity: binary_sensor.upstairs_bathroom_window
color: error-color on_color: error-color
off_color: bubble-main-background-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
@@ -2713,7 +2751,7 @@ views:
styles: |- styles: |-
.bubble-button-background { .bubble-button-background {
opacity: 1 !important; opacity: 1 !important;
background-color: ${state === 'on' ? 'var(--accent-color)' : 'var(--background-color-2)'} !important; background-color: ${state === 'on' ? 'var(--bubble-accent-color)' : 'var(--background-color-2)'} !important;
} }
- type: custom:bubble-card - type: custom:bubble-card
card_type: button card_type: button
@@ -2801,13 +2839,15 @@ views:
variables: variables:
- name: Motion - name: Motion
- entity: binary_sensor.master_bedroom_motion - entity: binary_sensor.master_bedroom_motion
- color: accent-color - on_color: bubble-accent-color
- off_color: bubble-main-background-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.master_bedroom_occupied - entity: binary_sensor.master_bedroom_occupied
- color: accent-color - on_color: bubble-accent-color
- off_color: bubble-main-background-color
- type: custom:bubble-card - type: custom:bubble-card
card_type: separator card_type: separator
name: Security name: Security
@@ -2819,13 +2859,15 @@ views:
variables: variables:
name: Window 1 name: Window 1
entity: binary_sensor.master_bedroom_window_1 entity: binary_sensor.master_bedroom_window_1
color: error-color on_color: error-color
off_color: bubble-main-background-color
- type: custom:streamline-card - type: custom:streamline-card
template: contact_sensor_button template: contact_sensor_button
variables: variables:
name: Window 2 name: Window 2
entity: binary_sensor.master_bedroom_window_2 entity: binary_sensor.master_bedroom_window_2
color: error-color on_color: error-color
off_color: bubble-main-background-color
- type: custom:streamline-card - type: custom:streamline-card
template: popup_timer_card template: popup_timer_card
variables: variables:
@@ -3009,13 +3051,15 @@ views:
variables: variables:
- name: Motion - name: Motion
- entity: binary_sensor.kallen_bedroom_motion - entity: binary_sensor.kallen_bedroom_motion
- color: accent-color - on_color: bubble-accent-color
- off_color: bubble-main-background-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.kallen_bedroom_occupied - entity: binary_sensor.kallen_bedroom_occupied
- color: accent-color - on_color: bubble-accent-color
- off_color: bubble-main-background-color
- type: custom:bubble-card - type: custom:bubble-card
card_type: separator card_type: separator
name: Security name: Security
@@ -3027,13 +3071,15 @@ views:
variables: variables:
name: Window 1 name: Window 1
entity: binary_sensor.kallen_bedroom_window_1 entity: binary_sensor.kallen_bedroom_window_1
color: error-color on_color: error-color
off_color: bubble-main-background-color
- type: custom:streamline-card - type: custom:streamline-card
template: contact_sensor_button template: contact_sensor_button
variables: variables:
name: Window 2 name: Window 2
entity: binary_sensor.kallen_bedroom_window_2 entity: binary_sensor.kallen_bedroom_window_2
color: error-color on_color: error-color
off_color: bubble-main-background-color
- type: custom:streamline-card - type: custom:streamline-card
template: popup_timer_card template: popup_timer_card
variables: variables:
@@ -3101,7 +3147,42 @@ views:
double_tap_action: double_tap_action:
action: none action: none
- type: custom:bubble-card - type: custom:bubble-card
card_type: empty-column card_type: button
entity: switch.emma_door_alert
name: Door Alert
show_state: true
tap_action:
action: toggle
double_tap_action:
action: none
hold_action:
action: more-info
button_action:
double_tap_action:
action: none
button_type: switch
sub_button:
main: []
bottom: []
styles: >-
.is-unavailable {
opacity: 0.5 !important;
}
.bubble-button-background {
opacity: 1 !important;
background-color: ${state === 'on' ? 'var(--success-color)' : 'var(--error-color)'} !important;
transition: background-color 1s !important;
}
.bubble-icon {
opacity: 1 !important;
color: ${state === 'on' ? 'var(--success-color)' : 'var(--error-color)'} !important;
transition: color 1s !important;
}
${icon.setAttribute("icon", hass.states[entity].state ===
'off' ? 'mdi:alert' : 'mdi:check')}
- type: custom:bubble-card - type: custom:bubble-card
card_type: separator card_type: separator
name: Environment name: Environment
@@ -3149,7 +3230,7 @@ views:
styles: |- styles: |-
.bubble-button-background { .bubble-button-background {
opacity: 1 !important; opacity: 1 !important;
background-color: ${state === 'on' ? 'var(--accent-color)' : 'var(--background-color-2)'} !important; background-color: ${state === 'on' ? 'var(--bubble-accent-color)' : 'var(--background-color-2)'} !important;
} }
- type: custom:bubble-card - type: custom:bubble-card
card_type: button card_type: button
@@ -3266,27 +3347,35 @@ views:
variables: variables:
- name: Motion - name: Motion
- entity: binary_sensor.emma_bedroom_motion - entity: binary_sensor.emma_bedroom_motion
- color: accent-color - on_color: bubble-accent-color
- off_color: bubble-main-background-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.emma_bedroom_occupied - entity: binary_sensor.emma_bedroom_occupied
- color: accent-color - on_color: bubble-accent-color
- off_color: bubble-main-background-color
- type: custom:bubble-card - type: custom:bubble-card
card_type: separator card_type: separator
name: Security name: Security
icon: mdi:security icon: mdi:security
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:streamline-card
template: contact_sensor_button
variables:
name: Door
entity: binary_sensor.emma_bedroom_door
on_color: error-color
off_color: bubble-main-background-color
- type: custom:streamline-card - type: custom:streamline-card
template: contact_sensor_button template: contact_sensor_button
variables: variables:
name: Window name: Window
entity: binary_sensor.emma_bedroom_window entity: binary_sensor.emma_bedroom_window
color: error-color on_color: error-color
- type: custom:bubble-card off_color: bubble-main-background-color
card_type: empty-column
- type: custom:streamline-card - type: custom:streamline-card
template: popup_timer_card template: popup_timer_card
variables: variables:
@@ -3336,13 +3425,15 @@ views:
variables: variables:
- name: Front - name: Front
- entity: binary_sensor.front_door - entity: binary_sensor.front_door
- color: error-color - on_color: error-color
- off_color: bubble-main-background-color
- type: custom:streamline-card - type: custom:streamline-card
template: contact_sensor_button template: contact_sensor_button
variables: variables:
- name: Back - name: Back
- entity: binary_sensor.back_door - entity: binary_sensor.back_door
- color: error-color - on_color: error-color
- off_color: bubble-main-background-color
- type: custom:bubble-card - type: custom:bubble-card
card_type: separator card_type: separator
name: Basement Studio name: Basement Studio
@@ -3354,7 +3445,8 @@ views:
variables: variables:
- name: Door - name: Door
- entity: binary_sensor.basement_studio_door - entity: binary_sensor.basement_studio_door
- color: error-color - on_color: error-color
- off_color: bubble-main-background-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
@@ -3368,19 +3460,22 @@ views:
variables: variables:
- name: Front 1 - name: Front 1
- entity: binary_sensor.front_window_1 - entity: binary_sensor.front_window_1
- color: error-color - on_color: error-color
- off_color: bubble-main-background-color
- type: custom:streamline-card - type: custom:streamline-card
template: contact_sensor_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 - on_color: error-color
- off_color: bubble-main-background-color
- type: custom:streamline-card - type: custom:streamline-card
template: contact_sensor_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 - on_color: error-color
- off_color: bubble-main-background-color
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:streamline-card - type: custom:streamline-card
@@ -3388,19 +3483,22 @@ views:
variables: variables:
- name: Side 1 - name: Side 1
- entity: binary_sensor.side_window_1 - entity: binary_sensor.side_window_1
- color: error-color - on_color: error-color
- off_color: bubble-main-background-color
- type: custom:streamline-card - type: custom:streamline-card
template: contact_sensor_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 - on_color: error-color
- off_color: bubble-main-background-color
- type: custom:streamline-card - type: custom:streamline-card
template: contact_sensor_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 - on_color: error-color
- off_color: bubble-main-background-color
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:streamline-card - type: custom:streamline-card
@@ -3408,19 +3506,22 @@ views:
variables: variables:
- name: Side 4 - name: Side 4
- entity: binary_sensor.side_window_4 - entity: binary_sensor.side_window_4
- color: error-color - on_color: error-color
- off_color: bubble-main-background-color
- type: custom:streamline-card - type: custom:streamline-card
template: contact_sensor_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 - on_color: error-color
- off_color: bubble-main-background-color
- type: custom:streamline-card - type: custom:streamline-card
template: contact_sensor_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 - on_color: error-color
- off_color: bubble-main-background-color
- type: custom:bubble-card - type: custom:bubble-card
card_type: separator card_type: separator
name: Stairwell name: Stairwell
@@ -3432,7 +3533,8 @@ views:
variables: variables:
- name: Window - name: Window
- entity: binary_sensor.stairway_window_lower - entity: binary_sensor.stairway_window_lower
- color: error-color - on_color: error-color
- off_color: bubble-main-background-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
@@ -3446,13 +3548,15 @@ views:
variables: variables:
- name: Big - name: Big
- entity: binary_sensor.kitchen_big_window - entity: binary_sensor.kitchen_big_window
- color: error-color - on_color: error-color
- off_color: bubble-main-background-color
- type: custom:streamline-card - type: custom:streamline-card
template: contact_sensor_button template: contact_sensor_button
variables: variables:
- name: Sink - name: Sink
- entity: binary_sensor.kitchen_sink_window - entity: binary_sensor.kitchen_sink_window
- color: error-color - on_color: error-color
- off_color: bubble-main-background-color
- type: custom:bubble-card - type: custom:bubble-card
card_type: separator card_type: separator
name: Mud Room name: Mud Room
@@ -3464,7 +3568,8 @@ views:
variables: variables:
- name: Window - name: Window
- entity: binary_sensor.mud_room_window - entity: binary_sensor.mud_room_window
- color: error-color - on_color: error-color
- off_color: bubble-main-background-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
@@ -3478,13 +3583,15 @@ views:
variables: variables:
- name: Back - name: Back
- entity: binary_sensor.downstairs_bathroom_window_1 - entity: binary_sensor.downstairs_bathroom_window_1
- color: error-color - on_color: error-color
- off_color: bubble-main-background-color
- type: custom:streamline-card - type: custom:streamline-card
template: contact_sensor_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 - on_color: error-color
- off_color: bubble-main-background-color
- type: custom:bubble-card - type: custom:bubble-card
card_type: separator card_type: separator
name: Upstairs Hallway name: Upstairs Hallway
@@ -3496,7 +3603,8 @@ views:
variables: variables:
- name: Window - name: Window
- entity: binary_sensor.stairway_window_upper - entity: binary_sensor.stairway_window_upper
- color: error-color - on_color: error-color
- off_color: bubble-main-background-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
@@ -3510,7 +3618,8 @@ views:
variables: variables:
- name: Window - name: Window
- entity: binary_sensor.upstairs_bathroom_window - entity: binary_sensor.upstairs_bathroom_window
- color: error-color - on_color: error-color
- off_color: bubble-main-background-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
@@ -3524,13 +3633,15 @@ views:
variables: variables:
- name: Window - name: Window
- entity: binary_sensor.master_bedroom_window_1 - entity: binary_sensor.master_bedroom_window_1
- color: error-color - on_color: error-color
- off_color: bubble-main-background-color
- type: custom:streamline-card - type: custom:streamline-card
template: contact_sensor_button template: contact_sensor_button
variables: variables:
- name: Window 1 - name: Window 1
- entity: binary_sensor.master_bedroom_window_2 - entity: binary_sensor.master_bedroom_window_2
- color: error-color - on_color: error-color
- off_color: bubble-main-background-color
- type: custom:bubble-card - type: custom:bubble-card
card_type: separator card_type: separator
name: Kallen Bedroom name: Kallen Bedroom
@@ -3542,13 +3653,15 @@ views:
variables: variables:
- name: Window 1 - name: Window 1
- entity: binary_sensor.kallen_bedroom_window_1 - entity: binary_sensor.kallen_bedroom_window_1
- color: error-color - on_color: error-color
- off_color: bubble-main-background-color
- type: custom:streamline-card - type: custom:streamline-card
template: contact_sensor_button template: contact_sensor_button
variables: variables:
- name: Window 2 - name: Window 2
- entity: binary_sensor.kallen_bedroom_window_2 - entity: binary_sensor.kallen_bedroom_window_2
- color: error-color - on_color: error-color
- off_color: bubble-main-background-color
- type: custom:bubble-card - type: custom:bubble-card
card_type: separator card_type: separator
name: Emma Bedroom name: Emma Bedroom
@@ -3560,13 +3673,15 @@ views:
variables: variables:
- name: Door - name: Door
- entity: binary_sensor.emma_bedroom_door - entity: binary_sensor.emma_bedroom_door
- color: error-color - on_color: error-color
- off_color: bubble-main-background-color
- type: custom:streamline-card - type: custom:streamline-card
template: contact_sensor_button template: contact_sensor_button
variables: variables:
- name: Window - name: Window
- entity: binary_sensor.emma_bedroom_window - entity: binary_sensor.emma_bedroom_window
- color: error-color - on_color: error-color
- off_color: bubble-main-background-color
- type: vertical-stack - type: vertical-stack
cards: cards:
- type: custom:bubble-card - type: custom:bubble-card
@@ -4134,9 +4249,28 @@ views:
icon: '{{ state_attr(''binary_sensor.tornado_possible'',''icon'') }}' icon: '{{ state_attr(''binary_sensor.tornado_possible'',''icon'') }}'
- type: custom:mushroom-template-badge - type: custom:mushroom-template-badge
content: >- content: >-
{% if
states('sensor.home_tempest_cloud_sensors_lightning_strikes_last_hour')
| int > 0 %}
{{ {{
states('sensor.home_tempest_cloud_sensors_lightning_strikes_last_hour') states('sensor.home_tempest_cloud_sensors_lightning_strikes_last_hour')
}} strikes in last hour! | int }} strikes last hour!
{% elif
states('sensor.home_tempest_cloud_sensors_lightning_strikes_last_3_hours')
| int > 0 %}
{{
states('sensor.home_tempest_cloud_sensors_lightning_strikes_last_3_hours')
| int }} strikes last 3 hours!
{% else %}
{{ states('sensor.blitzortung_lightning_counter') }} strikes during
this storm!
{% endif %}
icon: mdi:lightning-bolt icon: mdi:lightning-bolt
color: var(--warning-color) color: var(--warning-color)
entity: binary_sensor.lightning_warning entity: binary_sensor.lightning_warning
@@ -7182,24 +7316,27 @@ views:
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: state_color_button
variables: variables:
entity: binary_sensor.living_room_front_motion entity: input_boolean.toggle_testing
name: State Color Button name: State Color Button
color: accent-color on_color: bubble-accent-color
off_color: bubble-main-background-color
columns: '2' columns: '2'
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button_nav template: state_color_button_nav
variables: variables:
entity: binary_sensor.security_faults entity: input_boolean.toggle_testing
name: State Color Button Nav name: State Color Button Nav
navigation_path: '#security' navigation_path: '#security'
color: error-color on_color: error-color
off_color: bubble-main-background-color
columns: '2' columns: '2'
- type: custom:streamline-card - type: custom:streamline-card
template: contact_sensor_button template: contact_sensor_button
variables: variables:
entity: binary_sensor.side_window_1 entity: binary_sensor.side_window_1
name: Contact Sensor Button name: Contact Sensor Button
color: error-color on_color: error-color
off_color: bubble-main-background-color
columns: '2' columns: '2'
- type: grid - type: grid
cards: cards:
@@ -7248,21 +7385,23 @@ views:
action: navigate action: navigate
navigation_path: '#basement-studio' navigation_path: '#basement-studio'
sub_button: sub_button:
- entity: sensor.basement_studio_temperature main:
name: Temp - entity: sensor.basement_studio_temperature
show_state: true name: Temp
show_name: false show_state: true
tap_action: show_name: false
action: navigate tap_action:
navigation_path: '#basement-studio' action: navigate
show_background: false navigation_path: '#basement-studio'
- entity: sensor.basement_studio_illuminance show_background: false
show_state: true - entity: sensor.basement_studio_illuminance
name: Lux show_state: true
tap_action: name: Lux
action: navigate tap_action:
navigation_path: '#basement-studio' action: navigate
show_background: false navigation_path: '#basement-studio'
show_background: false
bottom: []
modules: modules:
- default - default
- temperature_colouring - temperature_colouring
@@ -7299,21 +7438,23 @@ views:
action: navigate action: navigate
navigation_path: '#front-porch' navigation_path: '#front-porch'
sub_button: sub_button:
- entity: sensor.home_tempest_temperature main:
name: Temp - entity: sensor.home_tempest_temperature
show_state: true name: Temp
show_name: false show_state: true
tap_action: show_name: false
action: navigate tap_action:
navigation_path: '#front-porch' action: navigate
show_background: false navigation_path: '#front-porch'
- entity: sensor.home_tempest_illuminance show_background: false
show_state: true - entity: sensor.home_tempest_illuminance
name: Lux show_state: true
tap_action: name: Lux
action: navigate tap_action:
navigation_path: '#front-porch' action: navigate
show_background: false navigation_path: '#front-porch'
show_background: false
bottom: []
modules: modules:
- default - default
- temperature_colouring - temperature_colouring
@@ -7355,7 +7496,7 @@ views:
- type: custom:bubble-card - type: custom:bubble-card
card_type: button card_type: button
button_type: state button_type: state
entity: binary_sensor.living_room_back_motion entity: input_boolean.toggle_testing
name: State Color Button name: State Color Button
show_state: true show_state: true
tap_action: tap_action:
@@ -7374,11 +7515,12 @@ views:
- default - default
- state_color_button - state_color_button
state_color_button: state_color_button:
color: accent-color on_color: bubble-accent-color
off_color: bubble-main-background-color
- type: custom:bubble-card - type: custom:bubble-card
card_type: button card_type: button
button_type: state button_type: state
entity: binary_sensor.security_faults entity: input_boolean.toggle_testing
name: State Color Button Nav name: State Color Button Nav
show_state: true show_state: true
tap_action: tap_action:
@@ -7401,7 +7543,8 @@ views:
- default - default
- state_color_button - state_color_button
state_color_button: state_color_button:
color: error-color on_color: error-color
off_color: bubble-main-background-color
- type: custom:bubble-card - type: custom:bubble-card
card_type: button card_type: button
button_type: state button_type: state
@@ -7425,7 +7568,8 @@ views:
- state_color_button - state_color_button
- get_state_attribute - get_state_attribute
state_color_button: state_color_button:
color: error-color on_color: error-color
off_color: bubble-main-background-color
get_state_attribute: get_state_attribute:
- entity: binary_sensor.side_window_1 - entity: binary_sensor.side_window_1
- entity: binary_sensor.side_window_1_tamper - entity: binary_sensor.side_window_1_tamper
@@ -7640,6 +7784,27 @@ views:
- condition: numeric_state - condition: numeric_state
entity: sensor.anniversary_tony_s_birthday entity: sensor.anniversary_tony_s_birthday
below: 8 below: 8
- type: grid
cards:
- type: heading
heading: Bubble Weather Card
heading_style: title
icon: mdi:weather-partly-cloudy
- type: custom:bubble-card
card_type: button
button_type: state
sub_button:
main: []
bottom: []
modules:
- weather_forecast
entity: weather.iron_nerd_weather_station
weather_forecast:
type: daily
disable_dynamic_background: false
disable_animations: false
hide_icon_background: false
card_layout: default
header: header:
layout: responsive layout: responsive
badges_position: bottom badges_position: bottom