Compare commits

...

12 Commits

2 changed files with 326 additions and 102 deletions

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
@@ -7186,10 +7237,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 +7991,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 +8064,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 +8081,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

View File

@@ -1259,7 +1259,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 +1294,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 +1644,13 @@ views:
variables:
- name: Motion
- entity: binary_sensor.basement_studio_motion
- color: accent-color
- color: bubble-accent-color
- type: custom:streamline-card
template: state_color_button
variables:
- name: Occupied
- entity: binary_sensor.basement_occupied
- color: accent-color
- color: bubble-accent-color
- type: custom:streamline-card
template: popup_timer_card
variables:
@@ -1850,19 +1850,19 @@ views:
variables:
name: Front Motion
entity: binary_sensor.living_room_front_motion
color: accent-color
color: bubble-accent-color
- type: custom:streamline-card
template: state_color_button
variables:
name: Back Motion
entity: binary_sensor.living_room_back_motion
color: accent-color
color: bubble-accent-color
- type: custom:streamline-card
template: state_color_button
variables:
name: Occupied
entity: binary_sensor.living_room_occupied
color: accent-color
color: bubble-accent-color
- type: custom:streamline-card
template: popup_timer_card
variables:
@@ -2020,13 +2020,13 @@ views:
variables:
- name: Motion
- entity: binary_sensor.downstairs_bathroom_motion
- color: accent-color
- color: bubble-accent-color
- type: custom:streamline-card
template: state_color_button
variables:
- name: Occupied
- entity: binary_sensor.downstairs_bathroom_occupied
- color: accent-color
- color: bubble-accent-color
- type: custom:bubble-card
card_type: separator
name: Security
@@ -2207,13 +2207,13 @@ views:
variables:
- name: Motion
- entity: binary_sensor.mud_room_motion
- color: accent-color
- color: bubble-accent-color
- type: custom:streamline-card
template: state_color_button
variables:
- name: Occupied
- entity: binary_sensor.mud_room_occupied
- color: accent-color
- color: bubble-accent-color
- type: custom:bubble-card
card_type: separator
name: Security
@@ -2300,13 +2300,13 @@ views:
variables:
- name: Motion
- entity: binary_sensor.stairwell_bottom_motion
- color: accent-color
- color: bubble-accent-color
- type: custom:streamline-card
template: state_color_button
variables:
- name: Occupied
- entity: binary_sensor.stairwell_occupied
- color: accent-color
- color: bubble-accent-color
- type: custom:bubble-card
card_type: separator
name: Security
@@ -2397,13 +2397,27 @@ views:
variables:
- name: Motion
- entity: binary_sensor.stairwell_top_motion
- color: accent-color
- color: bubble-accent-color
- type: custom:streamline-card
template: state_color_button
variables:
- name: Occupied
- entity: binary_sensor.upstairs_hallway_occupied
- color: accent-color
- color: bubble-accent-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
color: error-color
- type: custom:bubble-card
card_type: empty-column
- type: custom:streamline-card
template: popup_timer_card
variables:
@@ -2507,13 +2521,27 @@ views:
variables:
- name: Motion
- entity: binary_sensor.upstairs_bathroom_motion
- color: accent-color
- color: bubble-accent-color
- type: custom:streamline-card
template: state_color_button
variables:
- name: Occupied
- entity: binary_sensor.upstairs_bathroom_occupied
- color: accent-color
- color: bubble-accent-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
color: error-color
- type: custom:bubble-card
card_type: empty-column
- type: custom:streamline-card
template: popup_timer_card
variables:
@@ -2685,7 +2713,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 +2801,13 @@ views:
variables:
- name: Motion
- entity: binary_sensor.master_bedroom_motion
- color: accent-color
- color: bubble-accent-color
- type: custom:streamline-card
template: state_color_button
variables:
- name: Occupied
- entity: binary_sensor.master_bedroom_occupied
- color: accent-color
- color: bubble-accent-color
- type: custom:bubble-card
card_type: separator
name: Security
@@ -2981,13 +3009,13 @@ views:
variables:
- name: Motion
- entity: binary_sensor.kallen_bedroom_motion
- color: accent-color
- color: bubble-accent-color
- type: custom:streamline-card
template: state_color_button
variables:
- name: Occupied
- entity: binary_sensor.kallen_bedroom_occupied
- color: accent-color
- color: bubble-accent-color
- type: custom:bubble-card
card_type: separator
name: Security
@@ -3073,7 +3101,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 +3184,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 +3301,31 @@ views:
variables:
- name: Motion
- entity: binary_sensor.emma_bedroom_motion
- color: accent-color
- color: bubble-accent-color
- type: custom:streamline-card
template: state_color_button
variables:
- name: Occupied
- entity: binary_sensor.emma_bedroom_occupied
- color: accent-color
- color: bubble-accent-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
color: error-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
- type: custom:streamline-card
template: popup_timer_card
variables:
@@ -4106,9 +4173,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,14 +7240,14 @@ 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
color: bubble-accent-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
@@ -7220,21 +7306,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 +7359,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 +7417,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 +7436,11 @@ views:
- default
- state_color_button
state_color_button:
color: accent-color
color: bubble-accent-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:
@@ -7612,6 +7702,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