Compare commits

..

14 Commits

2 changed files with 490 additions and 176 deletions
+176 -55
View File
@@ -189,9 +189,28 @@ views:
- type: custom:mushroom-template-card
primary: Lightning Warning
secondary: >-
{% if
states('sensor.home_tempest_cloud_sensors_lightning_strikes_last_hour')
| int > 0 %}
{{
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
entity: binary_sensor.lightning_warning
color: var(--warning-color)
@@ -205,6 +224,7 @@ views:
- condition: state
entity: binary_sensor.lightning_warning
state: 'on'
features_position: bottom
column_span: 1
- type: grid
cards:
@@ -663,7 +683,6 @@ views:
exclude:
- state: 'off'
- state: unavailable
- entity_id: light.tina_desk_lights
sort:
method: friendly_name
visibility:
@@ -772,26 +791,6 @@ views:
'on': hue:lightstrip
'off': hue:lightstrip-off
unavailable: mdi:map-marker-question
- type: custom:paper-buttons-row
buttons:
- entity: light.christmas_tree
name: Tree
layout: icon|name_state
state:
case: first
state_icons:
'on': mdi:pine-tree-variant
'off': mdi:pine-tree-variant-outline
unavailable: mdi:map-marker-question
- entity: light.christmas_lights_front_window
name: Window
layout: icon|name_state
state:
case: first
state_icons:
'on': mdi:string-lights
'off': mdi:string-lights-off
unavailable: mdi:map-marker-question
- type: entities
entities:
- entity: input_select.living_room_scenes
@@ -809,6 +808,32 @@ views:
name: FW1
- entity: binary_sensor.front_window_2
name: FW2
- entity: binary_sensor.front_window_3
name: FW3
- type: glance
show_name: true
show_icon: true
show_state: true
state_color: true
entities:
- entity: binary_sensor.side_window_1
name: SW1
- entity: binary_sensor.side_window_2
name: SW2
- entity: binary_sensor.side_window_3
name: SW3
- entity: binary_sensor.side_window_4
name: SW4
- type: glance
show_name: true
show_icon: true
show_state: true
state_color: true
entities:
- entity: binary_sensor.back_window_1
name: BW1
- entity: binary_sensor.back_window_2
name: BW2
- type: glance
show_name: true
show_icon: true
@@ -1225,6 +1250,16 @@ views:
- type: entities
entities:
- entity: input_select.downstairs_bathroom_scenes
- type: glance
show_name: true
show_icon: true
show_state: true
state_color: true
entities:
- entity: binary_sensor.downstairs_bathroom_window_1
name: Back
- entity: binary_sensor.downstairs_bathroom_window_2
name: Side
- type: glance
show_name: true
show_icon: true
@@ -1390,6 +1425,9 @@ views:
state_color: true
entities:
- entity: binary_sensor.kitchen_big_window
name: Main
- entity: binary_sensor.kitchen_sink_window
name: Sink
- type: grid
cards:
- type: custom:stack-in-card
@@ -1616,7 +1654,7 @@ views:
state_color: true
entities:
- entity: binary_sensor.stairway_window_lower
name: SW1
name: Stairwell Bottom
- type: glance
show_name: true
show_icon: true
@@ -1741,7 +1779,7 @@ views:
state_color: true
entities:
- entity: binary_sensor.stairway_window_upper
name: SW2
name: Stairwell Top
- type: glance
show_name: true
show_icon: true
@@ -2552,9 +2590,9 @@ views:
'on':
type: custom:versatile-thermostat-ui-card
entity: climate.emma_bedroom_vtherm
disable_circle: false
disable_name: true
powerEntity: sensor.emma_bedroom_heater_power
theme: classic
disable_name: true
disable_auto_fan_infos: true
- type: entities
entities:
@@ -2835,9 +2873,10 @@ views:
show_header_toggle: false
- type: custom:versatile-thermostat-ui-card
entity: climate.basement_studio_vtherm
disable_circle: false
disable_name: true
powerEntity: sensor.basement_studio_heater_power
theme: classic
disable_name: true
allow_lock_toggle: true
disable_auto_fan_infos: true
- type: custom:mushroom-select-card
entity: input_select.basement_studio_scenes
@@ -4405,6 +4444,10 @@ views:
name: I am awake
- entity: input_select.kallen_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
cards: []
background:
@@ -6597,6 +6640,7 @@ views:
- sensor.back_door_battery
- sensor.basement_studio_door_battery
- sensor.downstairs_bathroom_door_battery
- sensor.emma_bedroom_door_battery
- name: 'Window Sensors (min: {min}%, count: {count})'
secondary_info: Battery levels {range}%
icon: mdi:window-closed
@@ -6618,6 +6662,11 @@ views:
- sensor.downstairs_bathroom_window_1_battery
- sensor.downstairs_bathroom_window_2_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})'
secondary_info: Battery levels {range}%
icon: mdi:image-broken-variant
@@ -6683,7 +6732,9 @@ views:
include:
- name: Number of*
- name: Lines of Code
exclude: []
exclude:
- options: {}
integration: 906ce55dd1bd3e27336a7049f329149b
sort:
method: state
reverse: true
@@ -7148,25 +7199,33 @@ views:
heading: Weather Alerts
heading_style: title
icon: mdi:cloud-alert
- content: >
<hr> {% set alerts = [
"sensor.weatheralerts_alert_1",
"sensor.weatheralerts_alert_2",
"sensor.weatheralerts_alert_3",
"sensor.weatheralerts_alert_4",
"sensor.weatheralerts_alert_5"] %}
{% for alert in alerts if is_state(alert, 'on') %} {% if 'warning'
or 'severe' in state_attr( alert, 'display_title')|lower() %}
<font color="red"> {% endif %} <b>{{ state_attr( alert,
'display_title') }}</b> {%- if 'warning' or 'severe' in
state_attr( alert, 'display_title')|lower() -%} </font> {%- endif
%} <br>{{ state_attr( alert, 'display_message') }} {% if loop.last
%} {% else %} <hr> {% endif %} {% endfor %}
type: markdown
- type: markdown
title: Weather Alerts (Summary)
content: >
{% set alerts =
state_attr('sensor.weatheralerts_defiance_ohz004_ohc039',
'alerts') or [] %} {% if alerts|length == 0 %} No active alerts.
{% else %} {% for alert in alerts[:5] %} <font
color="orange"><ha-icon icon="{{ alert.icon }}"></ha-icon></font>
{{ alert.get('event','Alert') }}: {{ alert.get('title',
alert.get('headline','')) }} <br><br> {% endfor %} {% endif %}
- type: markdown
title: Weather Alerts Status
content: >
{% set errs =
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:
- condition: state
entity: sensor.weatheralerts_alerts_are_active
state: 'Yes'
- condition: numeric_state
entity: sensor.weatheralerts_defiance_ohz004_ohc039
above: 0
- type: grid
cards:
- type: heading
@@ -7186,10 +7245,6 @@ views:
- compass_radar
- history_chart
always_show_full_card: false
visibility:
- condition: numeric_state
entity: sensor.blitzortung_lightning_counter
above: 0
- type: grid
cards:
- type: heading
@@ -7944,11 +7999,32 @@ views:
icon: mdi:weather-windy
- type: custom:windrose-card
title: Wind Rose
data_period:
hours_to_show: 24
max_width: 1000
refresh_interval: 300
windspeed_bar_location: bottom
buttons_config:
location: top
buttons:
- type: period_selector
button_text: 1 Hour
period_back: '-1h'
- type: period_selector
button_text: 8 Hours
period_back: '-8h'
- type: period_selector
active: true
button_text: 1 Day
period_back: '-1d'
- type: period_selector
button_text: 10 Days
period_back: '-10d'
- type: period_shift_play
period_back: '-1w'
button_text: Play
step_period: +3h
window_period: +10d
delay: 50
use_statistics: true
statistics_period: hour
wind_direction_entity:
entity: sensor.home_wind_direction_degrees
windspeed_entities:
@@ -7996,7 +8072,8 @@ views:
cardinal_direction_labels: NESW
show_intercardinal_directions: true
show_secondary_intercardinal_directions: true
matching_strategy: direction-first
matching_strategy:
- name: direction-first
current_direction:
show_arrow: true
corner_info:
@@ -8012,6 +8089,50 @@ views:
unit: °
label: Bearing
entity: sensor.home_wind_direction_degrees
text_blocks:
top:
text: |-
<table>
<tr>
<td>Direction measures:</td>
<td>${direction-count}</td>
<td>Minimal speed:</td>
<td>${min-speed}</td>
</tr>
<tr>
<td>Speed measures.:</td>
<td>${speed-1-count}</td>
<td>Maximum speed:</td>
<td>${max-speed}</td>
</tr>
<tr>
<td>Match count:</td>
<td>${match-count}</td>
<td>Average speed:</td>
<td>${average-speed}</td>
</tr>
<tr>
<td>Period hours</td>
<td>${period-hours}</td>
<td>Calm percentage:</td>
<td>${calm-percentage}%</td>
</tr>
<tr>
<td>First match time</td><td colspan="2">${date-first-match}, ${time-first-match}</td>
</tr>
<tr>
<td>Last match time</td><td colspan="2">${date-last-match}, ${time-last-match}</td>
</tr>
<tr>
<td>Period start</td><td colspan="2">${start-date} - ${start-time}</td>
</tr>
<tr>
<td>Period end</td><td colspan="2">${end-date} - ${end-time}</td>
</tr>
</table>
text_color: gray
text_size: 14
- type: entities
entities:
- entity: binary_sensor.tornado_warning
+314 -121
View File
@@ -276,7 +276,8 @@ streamline_templates:
- default
- state_color_button
state_color_button:
color: '[[color]]'
on_color: '[[on_color]]'
off_color: '[[off_color]]'
state_color_button_nav:
defaults:
- name: ''
@@ -309,7 +310,8 @@ streamline_templates:
- default
- state_color_button
state_color_button:
color: '[[color]]'
on_color: '[[on_color]]'
off_color: '[[off_color]]'
contact_sensor_button:
defaults:
- name: ''
@@ -339,7 +341,8 @@ streamline_templates:
- state_color_button
- get_state_attribute
state_color_button:
color: '[[color]]'
on_color: '[[on_color]]'
off_color: '[[off_color]]'
get_state_attribute:
- entity: '[[entity]]'
- entity: '[[entity]]_tamper'
@@ -622,7 +625,8 @@ views:
- entity: binary_sensor.security_faults
- navigation_path: '#security'
- columns: 2
- color: error-color
- on_color: error-color
- off_color: bubble-main-background-color
- show_state: false
grid_options:
columns: 6
@@ -1259,7 +1263,7 @@ views:
styles: |-
.bubble-button-background {
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:
- default
@@ -1294,7 +1298,7 @@ views:
styles: |-
.bubble-button-background {
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:
- default
@@ -1644,13 +1648,15 @@ views:
variables:
- name: 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
template: state_color_button
variables:
- name: Occupied
- entity: binary_sensor.basement_occupied
- color: accent-color
- on_color: bubble-accent-color
- off_color: bubble-main-background-color
- type: custom:streamline-card
template: popup_timer_card
variables:
@@ -1850,19 +1856,22 @@ views:
variables:
name: 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
template: state_color_button
variables:
name: 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
template: state_color_button
variables:
name: 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
template: popup_timer_card
variables:
@@ -1879,7 +1888,8 @@ views:
variables:
name: Door
entity: binary_sensor.front_door
color: error-color
on_color: error-color
off_color: bubble-main-background-color
- type: custom:bubble-card
card_type: empty-column
- type: custom:bubble-card
@@ -1891,19 +1901,22 @@ views:
variables:
name: Front 1
entity: binary_sensor.front_window_1
color: error-color
on_color: error-color
off_color: bubble-main-background-color
- type: custom:streamline-card
template: contact_sensor_button
variables:
name: Front 2
entity: binary_sensor.front_window_2
color: error-color
on_color: error-color
off_color: bubble-main-background-color
- type: custom:streamline-card
template: contact_sensor_button
variables:
name: Front 3
entity: binary_sensor.front_window_3
color: error-color
on_color: error-color
off_color: bubble-main-background-color
- type: horizontal-stack
cards:
- type: custom:streamline-card
@@ -1911,19 +1924,22 @@ views:
variables:
name: Side 1
entity: binary_sensor.side_window_1
color: error-color
on_color: error-color
off_color: bubble-main-background-color
- type: custom:streamline-card
template: contact_sensor_button
variables:
name: Side 2
entity: binary_sensor.side_window_2
color: error-color
on_color: error-color
off_color: bubble-main-background-color
- type: custom:streamline-card
template: contact_sensor_button
variables:
name: Side 3
entity: binary_sensor.side_window_3
color: error-color
on_color: error-color
off_color: bubble-main-background-color
- type: horizontal-stack
cards:
- type: custom:streamline-card
@@ -1931,19 +1947,22 @@ views:
variables:
name: Side 4
entity: binary_sensor.side_window_4
color: error-color
on_color: error-color
off_color: bubble-main-background-color
- type: custom:streamline-card
template: contact_sensor_button
variables:
name: Back 1
entity: binary_sensor.back_window_1
color: error-color
on_color: error-color
off_color: bubble-main-background-color
- type: custom:streamline-card
template: contact_sensor_button
variables:
name: Back 2
entity: binary_sensor.back_window_2
color: error-color
on_color: error-color
off_color: bubble-main-background-color
- type: vertical-stack
cards:
- type: custom:bubble-card
@@ -2020,13 +2039,15 @@ views:
variables:
- name: 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
template: state_color_button
variables:
- name: 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
card_type: separator
name: Security
@@ -2038,13 +2059,15 @@ views:
variables:
name: Back
entity: binary_sensor.downstairs_bathroom_window_1
color: error-color
on_color: error-color
off_color: bubble-main-background-color
- type: custom:streamline-card
template: contact_sensor_button
variables:
name: Side
entity: binary_sensor.downstairs_bathroom_window_2
color: error-color
on_color: error-color
off_color: bubble-main-background-color
- type: custom:streamline-card
template: popup_timer_card
variables:
@@ -2134,13 +2157,15 @@ views:
variables:
name: 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
template: contact_sensor_button
variables:
name: Sink Window
entity: binary_sensor.kitchen_sink_window
color: error-color
on_color: error-color
off_color: bubble-main-background-color
- type: vertical-stack
cards:
- type: custom:bubble-card
@@ -2207,13 +2232,15 @@ views:
variables:
- name: 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
template: state_color_button
variables:
- name: 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
card_type: separator
name: Security
@@ -2225,13 +2252,15 @@ views:
variables:
name: Back Door
entity: binary_sensor.back_door
color: error-color
on_color: error-color
off_color: bubble-main-background-color
- type: custom:streamline-card
template: contact_sensor_button
variables:
name: Window
entity: binary_sensor.mud_room_window
color: error-color
on_color: error-color
off_color: bubble-main-background-color
- type: custom:streamline-card
template: popup_timer_card
variables:
@@ -2300,13 +2329,15 @@ views:
variables:
- name: 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
template: state_color_button
variables:
- name: Occupied
- entity: binary_sensor.stairwell_occupied
- color: accent-color
- on_color: bubble-accent-color
- off_color: bubble-main-background-color
- type: custom:bubble-card
card_type: separator
name: Security
@@ -2318,7 +2349,8 @@ views:
variables:
name: Window
entity: binary_sensor.stairway_window_lower
color: error-color
on_color: error-color
off_color: bubble-main-background-color
- type: custom:bubble-card
card_type: empty-column
- type: custom:streamline-card
@@ -2397,13 +2429,30 @@ views:
variables:
- name: 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
template: state_color_button
variables:
- name: 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
card_type: separator
name: Security
icon: mdi:security
- type: horizontal-stack
cards:
- type: custom:streamline-card
template: contact_sensor_button
variables:
name: Window
entity: binary_sensor.stairway_window_upper
on_color: error-color
off_color: bubble-main-background-color
- type: custom:bubble-card
card_type: empty-column
- type: custom:streamline-card
template: popup_timer_card
variables:
@@ -2507,13 +2556,30 @@ views:
variables:
- name: 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
template: state_color_button
variables:
- name: 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
card_type: separator
name: Security
icon: mdi:security
- type: horizontal-stack
cards:
- type: custom:streamline-card
template: contact_sensor_button
variables:
name: Window
entity: binary_sensor.upstairs_bathroom_window
on_color: error-color
off_color: bubble-main-background-color
- type: custom:bubble-card
card_type: empty-column
- type: custom:streamline-card
template: popup_timer_card
variables:
@@ -2685,7 +2751,7 @@ views:
styles: |-
.bubble-button-background {
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
card_type: button
@@ -2773,13 +2839,15 @@ views:
variables:
- name: 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
template: state_color_button
variables:
- name: 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
card_type: separator
name: Security
@@ -2791,13 +2859,15 @@ views:
variables:
name: 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
template: contact_sensor_button
variables:
name: 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
template: popup_timer_card
variables:
@@ -2981,13 +3051,15 @@ views:
variables:
- name: 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
template: state_color_button
variables:
- name: 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
card_type: separator
name: Security
@@ -2999,13 +3071,15 @@ views:
variables:
name: 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
template: contact_sensor_button
variables:
name: 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
template: popup_timer_card
variables:
@@ -3073,7 +3147,42 @@ views:
double_tap_action:
action: none
- 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
card_type: separator
name: Environment
@@ -3121,7 +3230,7 @@ views:
styles: |-
.bubble-button-background {
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
card_type: button
@@ -3238,27 +3347,35 @@ views:
variables:
- name: 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
template: state_color_button
variables:
- name: 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
card_type: separator
name: Security
icon: mdi:security
- type: horizontal-stack
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
template: contact_sensor_button
variables:
name: Window
entity: binary_sensor.emma_bedroom_window
color: error-color
- type: custom:bubble-card
card_type: empty-column
on_color: error-color
off_color: bubble-main-background-color
- type: custom:streamline-card
template: popup_timer_card
variables:
@@ -3308,13 +3425,15 @@ views:
variables:
- name: Front
- entity: binary_sensor.front_door
- color: error-color
- on_color: error-color
- off_color: bubble-main-background-color
- type: custom:streamline-card
template: contact_sensor_button
variables:
- name: Back
- entity: binary_sensor.back_door
- color: error-color
- on_color: error-color
- off_color: bubble-main-background-color
- type: custom:bubble-card
card_type: separator
name: Basement Studio
@@ -3326,7 +3445,8 @@ views:
variables:
- name: Door
- entity: binary_sensor.basement_studio_door
- color: error-color
- on_color: error-color
- off_color: bubble-main-background-color
- type: custom:bubble-card
card_type: empty-column
- type: custom:bubble-card
@@ -3340,19 +3460,22 @@ views:
variables:
- name: Front 1
- entity: binary_sensor.front_window_1
- color: error-color
- on_color: error-color
- off_color: bubble-main-background-color
- type: custom:streamline-card
template: contact_sensor_button
variables:
- name: Front 2
- entity: binary_sensor.front_window_2
- color: error-color
- on_color: error-color
- off_color: bubble-main-background-color
- type: custom:streamline-card
template: contact_sensor_button
variables:
- name: Front 3
- entity: binary_sensor.front_window_3
- color: error-color
- on_color: error-color
- off_color: bubble-main-background-color
- type: horizontal-stack
cards:
- type: custom:streamline-card
@@ -3360,19 +3483,22 @@ views:
variables:
- name: Side 1
- entity: binary_sensor.side_window_1
- color: error-color
- on_color: error-color
- off_color: bubble-main-background-color
- type: custom:streamline-card
template: contact_sensor_button
variables:
- name: Side 2
- entity: binary_sensor.side_window_2
- color: error-color
- on_color: error-color
- off_color: bubble-main-background-color
- type: custom:streamline-card
template: contact_sensor_button
variables:
- name: Side 3
- entity: binary_sensor.side_window_3
- color: error-color
- on_color: error-color
- off_color: bubble-main-background-color
- type: horizontal-stack
cards:
- type: custom:streamline-card
@@ -3380,19 +3506,22 @@ views:
variables:
- name: Side 4
- entity: binary_sensor.side_window_4
- color: error-color
- on_color: error-color
- off_color: bubble-main-background-color
- type: custom:streamline-card
template: contact_sensor_button
variables:
- name: Back 1
- entity: binary_sensor.back_window_1
- color: error-color
- on_color: error-color
- off_color: bubble-main-background-color
- type: custom:streamline-card
template: contact_sensor_button
variables:
- name: Back 2
- entity: binary_sensor.back_window_2
- color: error-color
- on_color: error-color
- off_color: bubble-main-background-color
- type: custom:bubble-card
card_type: separator
name: Stairwell
@@ -3404,7 +3533,8 @@ views:
variables:
- name: Window
- entity: binary_sensor.stairway_window_lower
- color: error-color
- on_color: error-color
- off_color: bubble-main-background-color
- type: custom:bubble-card
card_type: empty-column
- type: custom:bubble-card
@@ -3418,13 +3548,15 @@ views:
variables:
- name: Big
- entity: binary_sensor.kitchen_big_window
- color: error-color
- on_color: error-color
- off_color: bubble-main-background-color
- type: custom:streamline-card
template: contact_sensor_button
variables:
- name: Sink
- entity: binary_sensor.kitchen_sink_window
- color: error-color
- on_color: error-color
- off_color: bubble-main-background-color
- type: custom:bubble-card
card_type: separator
name: Mud Room
@@ -3436,7 +3568,8 @@ views:
variables:
- name: Window
- entity: binary_sensor.mud_room_window
- color: error-color
- on_color: error-color
- off_color: bubble-main-background-color
- type: custom:bubble-card
card_type: empty-column
- type: custom:bubble-card
@@ -3450,13 +3583,15 @@ views:
variables:
- name: Back
- entity: binary_sensor.downstairs_bathroom_window_1
- color: error-color
- on_color: error-color
- off_color: bubble-main-background-color
- type: custom:streamline-card
template: contact_sensor_button
variables:
- name: Side
- entity: binary_sensor.downstairs_bathroom_window_2
- color: error-color
- on_color: error-color
- off_color: bubble-main-background-color
- type: custom:bubble-card
card_type: separator
name: Upstairs Hallway
@@ -3468,7 +3603,8 @@ views:
variables:
- name: Window
- entity: binary_sensor.stairway_window_upper
- color: error-color
- on_color: error-color
- off_color: bubble-main-background-color
- type: custom:bubble-card
card_type: empty_column
- type: custom:bubble-card
@@ -3482,7 +3618,8 @@ views:
variables:
- name: Window
- entity: binary_sensor.upstairs_bathroom_window
- color: error-color
- on_color: error-color
- off_color: bubble-main-background-color
- type: custom:bubble-card
card_type: empty_column
- type: custom:bubble-card
@@ -3496,13 +3633,15 @@ views:
variables:
- name: Window
- entity: binary_sensor.master_bedroom_window_1
- color: error-color
- on_color: error-color
- off_color: bubble-main-background-color
- type: custom:streamline-card
template: contact_sensor_button
variables:
- name: Window 1
- entity: binary_sensor.master_bedroom_window_2
- color: error-color
- on_color: error-color
- off_color: bubble-main-background-color
- type: custom:bubble-card
card_type: separator
name: Kallen Bedroom
@@ -3514,13 +3653,15 @@ views:
variables:
- name: 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
template: contact_sensor_button
variables:
- name: 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
card_type: separator
name: Emma Bedroom
@@ -3532,13 +3673,15 @@ views:
variables:
- name: Door
- entity: binary_sensor.emma_bedroom_door
- color: error-color
- on_color: error-color
- off_color: bubble-main-background-color
- type: custom:streamline-card
template: contact_sensor_button
variables:
- name: Window
- entity: binary_sensor.emma_bedroom_window
- color: error-color
- on_color: error-color
- off_color: bubble-main-background-color
- type: vertical-stack
cards:
- type: custom:bubble-card
@@ -4106,9 +4249,28 @@ views:
icon: '{{ state_attr(''binary_sensor.tornado_possible'',''icon'') }}'
- type: custom:mushroom-template-badge
content: >-
{% if
states('sensor.home_tempest_cloud_sensors_lightning_strikes_last_hour')
| int > 0 %}
{{
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
color: var(--warning-color)
entity: binary_sensor.lightning_warning
@@ -7154,24 +7316,27 @@ views:
- type: custom:streamline-card
template: state_color_button
variables:
entity: binary_sensor.living_room_front_motion
entity: input_boolean.toggle_testing
name: State Color Button
color: accent-color
on_color: bubble-accent-color
off_color: bubble-main-background-color
columns: '2'
- type: custom:streamline-card
template: state_color_button_nav
variables:
entity: binary_sensor.security_faults
entity: input_boolean.toggle_testing
name: State Color Button Nav
navigation_path: '#security'
color: error-color
on_color: error-color
off_color: bubble-main-background-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
on_color: error-color
off_color: bubble-main-background-color
columns: '2'
- type: grid
cards:
@@ -7220,21 +7385,23 @@ views:
action: navigate
navigation_path: '#basement-studio'
sub_button:
- entity: sensor.basement_studio_temperature
name: Temp
show_state: true
show_name: false
tap_action:
action: navigate
navigation_path: '#basement-studio'
show_background: false
- entity: sensor.basement_studio_illuminance
show_state: true
name: Lux
tap_action:
action: navigate
navigation_path: '#basement-studio'
show_background: false
main:
- entity: sensor.basement_studio_temperature
name: Temp
show_state: true
show_name: false
tap_action:
action: navigate
navigation_path: '#basement-studio'
show_background: false
- entity: sensor.basement_studio_illuminance
show_state: true
name: Lux
tap_action:
action: navigate
navigation_path: '#basement-studio'
show_background: false
bottom: []
modules:
- default
- temperature_colouring
@@ -7271,21 +7438,23 @@ views:
action: navigate
navigation_path: '#front-porch'
sub_button:
- entity: sensor.home_tempest_temperature
name: Temp
show_state: true
show_name: false
tap_action:
action: navigate
navigation_path: '#front-porch'
show_background: false
- entity: sensor.home_tempest_illuminance
show_state: true
name: Lux
tap_action:
action: navigate
navigation_path: '#front-porch'
show_background: false
main:
- entity: sensor.home_tempest_temperature
name: Temp
show_state: true
show_name: false
tap_action:
action: navigate
navigation_path: '#front-porch'
show_background: false
- entity: sensor.home_tempest_illuminance
show_state: true
name: Lux
tap_action:
action: navigate
navigation_path: '#front-porch'
show_background: false
bottom: []
modules:
- default
- temperature_colouring
@@ -7327,7 +7496,7 @@ views:
- type: custom:bubble-card
card_type: button
button_type: state
entity: binary_sensor.living_room_back_motion
entity: input_boolean.toggle_testing
name: State Color Button
show_state: true
tap_action:
@@ -7346,11 +7515,12 @@ views:
- default
- state_color_button
state_color_button:
color: accent-color
on_color: bubble-accent-color
off_color: bubble-main-background-color
- type: custom:bubble-card
card_type: button
button_type: state
entity: binary_sensor.security_faults
entity: input_boolean.toggle_testing
name: State Color Button Nav
show_state: true
tap_action:
@@ -7373,7 +7543,8 @@ views:
- default
- state_color_button
state_color_button:
color: error-color
on_color: error-color
off_color: bubble-main-background-color
- type: custom:bubble-card
card_type: button
button_type: state
@@ -7397,7 +7568,8 @@ views:
- state_color_button
- get_state_attribute
state_color_button:
color: error-color
on_color: error-color
off_color: bubble-main-background-color
get_state_attribute:
- entity: binary_sensor.side_window_1
- entity: binary_sensor.side_window_1_tamper
@@ -7612,6 +7784,27 @@ views:
- condition: numeric_state
entity: sensor.anniversary_tony_s_birthday
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:
layout: responsive
badges_position: bottom