Compare commits

...

3 Commits

Author SHA1 Message Date
9f19a75ec3 Add alert chip if E's door alert is disabled 2025-08-11 19:13:10 -04:00
1acdd2c884 Fix ping sensors 2025-08-11 19:12:43 -04:00
ebb53377f0 Add contact sensor button template 2025-07-30 03:19:05 -04:00
2 changed files with 193 additions and 108 deletions

View File

@@ -6089,9 +6089,12 @@ views:
- type: entities - type: entities
entities: entities:
- entity: binary_sensor.internet - entity: binary_sensor.internet
- entity: sensor.min_ping - entity: sensor.internet_round_trip_time_minimum
- entity: sensor.avg_ping name: Min Ping
- entity: sensor.max_ping - entity: sensor.internet_round_trip_time_average
name: Avg Ping
- entity: sensor.internet_round_trip_time_maximum
name: Max Ping
show_header_toggle: false show_header_toggle: false
state_color: true state_color: true
- type: entities - type: entities

View File

@@ -310,6 +310,39 @@ streamline_templates:
- state_color_button - state_color_button
state_color_button: state_color_button:
color: '[[color]]' color: '[[color]]'
contact_sensor_button:
defaults:
- name: ''
- columns: 2
- show_state: true
card:
type: custom:bubble-card
card_type: button
button_type: state
entity: '[[entity]]'
name: '[[name]]'
show_state: '[[show_state]]'
tap_action:
action: more-info
double_tap_action:
action: none
hold_action:
action: none
button_action:
double_tap_action:
action: none
hold_action:
action: none
columns: '[[columns]]'
modules:
- default
- state_color_button
- get_state_attribute
state_color_button:
color: '[[color]]'
get_state_attribute:
- entity: '[[entity]]'
- entity: '[[entity]]_tamper'
phone_info_grid: phone_info_grid:
card: card:
type: custom:stack-in-card type: custom:stack-in-card
@@ -1774,9 +1807,9 @@ views:
- type: custom:streamline-card - type: custom:streamline-card
template: popup_temperature_button template: popup_temperature_button
variables: variables:
- name: Front Temp name: Front Temp
- entity: sensor.living_room_front_temperature entity: sensor.living_room_front_temperature
- hot_entity: binary_sensor.living_room_hot hot_entity: binary_sensor.living_room_hot
- type: custom:bubble-card - type: custom:bubble-card
card_type: button card_type: button
button_type: state button_type: state
@@ -1788,9 +1821,9 @@ views:
- type: custom:streamline-card - type: custom:streamline-card
template: popup_temperature_button template: popup_temperature_button
variables: variables:
- name: Back Temp name: Back Temp
- entity: sensor.living_room_back_temperature entity: sensor.living_room_back_temperature
- hot_entity: binary_sensor.living_room_back_hot hot_entity: binary_sensor.living_room_back_hot
- type: custom:bubble-card - type: custom:bubble-card
card_type: button card_type: button
button_type: state button_type: state
@@ -1802,26 +1835,26 @@ views:
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: state_color_button
variables: variables:
- name: Front Motion name: Front Motion
- entity: binary_sensor.living_room_front_motion entity: binary_sensor.living_room_front_motion
- color: accent-color color: accent-color
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: state_color_button
variables: variables:
- name: Back Motion name: Back Motion
- entity: binary_sensor.living_room_back_motion entity: binary_sensor.living_room_back_motion
- color: accent-color color: accent-color
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: state_color_button
variables: variables:
- name: Occupied name: Occupied
- entity: binary_sensor.living_room_occupied entity: binary_sensor.living_room_occupied
- color: accent-color color: accent-color
- type: custom:streamline-card - type: custom:streamline-card
template: popup_timer_card template: popup_timer_card
variables: variables:
- name: Lights Timer name: Lights Timer
- entity: timer.living_room_motion_timer entity: timer.living_room_motion_timer
- type: custom:bubble-card - type: custom:bubble-card
card_type: separator card_type: separator
name: Security name: Security
@@ -1829,11 +1862,11 @@ views:
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Door name: Door
- entity: binary_sensor.front_door entity: binary_sensor.front_door
- color: error-color color: error-color
- type: custom:bubble-card - type: custom:bubble-card
card_type: empty-column card_type: empty-column
- type: custom:bubble-card - type: custom:bubble-card
@@ -1841,63 +1874,63 @@ views:
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Front 1 name: Front 1
- entity: binary_sensor.front_window_1 entity: binary_sensor.front_window_1
- color: error-color color: error-color
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Front 2 name: Front 2
- entity: binary_sensor.front_window_2 entity: binary_sensor.front_window_2
- color: error-color color: error-color
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Front 3 name: Front 3
- entity: binary_sensor.front_window_3 entity: binary_sensor.front_window_3
- color: error-color color: error-color
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Side 1 name: Side 1
- entity: binary_sensor.side_window_1 entity: binary_sensor.side_window_1
- color: error-color color: error-color
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Side 2 name: Side 2
- entity: binary_sensor.side_window_2 entity: binary_sensor.side_window_2
- color: error-color color: error-color
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Side 3 name: Side 3
- entity: binary_sensor.side_window_3 entity: binary_sensor.side_window_3
- color: error-color color: error-color
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Side 4 name: Side 4
- entity: binary_sensor.side_window_4 entity: binary_sensor.side_window_4
- color: error-color color: error-color
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Back 1 name: Back 1
- entity: binary_sensor.back_window_1 entity: binary_sensor.back_window_1
- color: error-color color: error-color
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Back 2 name: Back 2
- entity: binary_sensor.back_window_2 entity: binary_sensor.back_window_2
- color: error-color color: error-color
- type: vertical-stack - type: vertical-stack
cards: cards:
- type: custom:bubble-card - type: custom:bubble-card
@@ -1988,17 +2021,17 @@ views:
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Back name: Back
- entity: binary_sensor.downstairs_bathroom_window_1 entity: binary_sensor.downstairs_bathroom_window_1
- color: error-color color: error-color
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Side name: Side
- entity: binary_sensor.downstairs_bathroom_window_2 entity: binary_sensor.downstairs_bathroom_window_2
- color: error-color color: error-color
- type: custom:streamline-card - type: custom:streamline-card
template: popup_timer_card template: popup_timer_card
variables: variables:
@@ -2084,17 +2117,17 @@ views:
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Big Window name: Big Window
- entity: binary_sensor.kitchen_big_window entity: binary_sensor.kitchen_big_window
- color: error-color color: error-color
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Sink Window name: Sink Window
- entity: binary_sensor.kitchen_sink_window entity: binary_sensor.kitchen_sink_window
- color: error-color color: error-color
- type: vertical-stack - type: vertical-stack
cards: cards:
- type: custom:bubble-card - type: custom:bubble-card
@@ -2175,17 +2208,17 @@ views:
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Back Door name: Back Door
- entity: binary_sensor.back_door entity: binary_sensor.back_door
- color: error-color color: error-color
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Window name: Window
- entity: binary_sensor.mud_room_window entity: binary_sensor.mud_room_window
- color: error-color color: error-color
- type: custom:streamline-card - type: custom:streamline-card
template: popup_timer_card template: popup_timer_card
variables: variables:
@@ -2268,11 +2301,11 @@ views:
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Window name: Window
- entity: binary_sensor.stairway_window_lower entity: binary_sensor.stairway_window_lower
- color: error-color color: error-color
- type: custom:bubble-card - type: custom:bubble-card
card_type: empty-column card_type: empty-column
- type: custom:streamline-card - type: custom:streamline-card
@@ -3199,13 +3232,13 @@ views:
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Front - name: Front
- entity: binary_sensor.front_door - entity: binary_sensor.front_door
- color: error-color - color: error-color
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Back - name: Back
- entity: binary_sensor.back_door - entity: binary_sensor.back_door
@@ -3217,19 +3250,19 @@ views:
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Front 1 - name: Front 1
- entity: binary_sensor.front_window_1 - entity: binary_sensor.front_window_1
- color: error-color - color: error-color
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Front 2 - name: Front 2
- entity: binary_sensor.front_window_2 - entity: binary_sensor.front_window_2
- color: error-color - color: error-color
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Front 3 - name: Front 3
- entity: binary_sensor.front_window_3 - entity: binary_sensor.front_window_3
@@ -3237,19 +3270,19 @@ views:
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Side 1 - name: Side 1
- entity: binary_sensor.side_window_1 - entity: binary_sensor.side_window_1
- color: error-color - color: error-color
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Side 2 - name: Side 2
- entity: binary_sensor.side_window_2 - entity: binary_sensor.side_window_2
- color: error-color - color: error-color
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Side 3 - name: Side 3
- entity: binary_sensor.side_window_3 - entity: binary_sensor.side_window_3
@@ -3257,19 +3290,19 @@ views:
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Side 4 - name: Side 4
- entity: binary_sensor.side_window_4 - entity: binary_sensor.side_window_4
- color: error-color - color: error-color
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Back 1 - name: Back 1
- entity: binary_sensor.back_window_1 - entity: binary_sensor.back_window_1
- color: error-color - color: error-color
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Back 2 - name: Back 2
- entity: binary_sensor.back_window_2 - entity: binary_sensor.back_window_2
@@ -3281,7 +3314,7 @@ views:
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Window - name: Window
- entity: binary_sensor.stairway_window_lower - entity: binary_sensor.stairway_window_lower
@@ -3295,13 +3328,13 @@ views:
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Big - name: Big
- entity: binary_sensor.kitchen_big_window - entity: binary_sensor.kitchen_big_window
- color: error-color - color: error-color
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Sink - name: Sink
- entity: binary_sensor.kitchen_sink_window - entity: binary_sensor.kitchen_sink_window
@@ -3313,7 +3346,7 @@ views:
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Window - name: Window
- entity: binary_sensor.mud_room_window - entity: binary_sensor.mud_room_window
@@ -3327,13 +3360,13 @@ views:
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Back - name: Back
- entity: binary_sensor.downstairs_bathroom_window_1 - entity: binary_sensor.downstairs_bathroom_window_1
- color: error-color - color: error-color
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Side - name: Side
- entity: binary_sensor.downstairs_bathroom_window_2 - entity: binary_sensor.downstairs_bathroom_window_2
@@ -3345,7 +3378,7 @@ views:
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Window - name: Window
- entity: binary_sensor.stairway_window_upper - entity: binary_sensor.stairway_window_upper
@@ -3359,7 +3392,7 @@ views:
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: custom:streamline-card - type: custom:streamline-card
template: state_color_button template: contact_sensor_button
variables: variables:
- name: Window - name: Window
- entity: binary_sensor.upstairs_bathroom_window - entity: binary_sensor.upstairs_bathroom_window
@@ -3807,6 +3840,22 @@ views:
- condition: state - condition: state
entity: timer.emma_door_alert entity: timer.emma_door_alert
state: active state: active
- type: custom:mushroom-template-badge
content: Alert Disabled
icon: mdi:alert
entity: switch.emma_door_alert
color: yellow
label: Emma Door Alert
tap_action:
action: toggle
hold_action:
action: more-info
double_tap_action:
action: none
visibility:
- condition: state
entity: switch.emma_door_alert
state: 'off'
- type: custom:mushroom-template-badge - type: custom:mushroom-template-badge
content: Tornado Possible content: Tornado Possible
color: red color: red
@@ -4367,7 +4416,6 @@ views:
header: header:
card: card:
type: markdown type: markdown
text_only: true
content: >- content: >-
{% from 'weather.jinja' import weatherReport %} {% from {% from 'weather.jinja' import weatherReport %} {% from
'formatting.jinja' import cleanup %} {% import 'status.jinja' as 'formatting.jinja' import cleanup %} {% import 'status.jinja' as
@@ -6437,6 +6485,13 @@ views:
navigation_path: '#security' navigation_path: '#security'
color: error-color color: error-color
columns: '2' columns: '2'
- type: custom:streamline-card
template: contact_sensor_button
variables:
entity: binary_sensor.side_window_1
name: Contact Sensor Button
color: error-color
columns: '2'
- type: grid - type: grid
cards: cards:
- type: heading - type: heading
@@ -6638,6 +6693,33 @@ views:
- state_color_button - state_color_button
state_color_button: state_color_button:
color: error-color color: error-color
- type: custom:bubble-card
card_type: button
button_type: state
entity: binary_sensor.side_window_1
name: Contact Sensor Button
show_state: true
tap_action:
action: more-info
double_tap_action:
action: none
hold_action:
action: none
button_action:
double_tap_action:
action: none
hold_action:
action: none
columns: 2
modules:
- default
- state_color_button
- get_state_attribute
state_color_button:
color: error-color
get_state_attribute:
- entity: binary_sensor.side_window_1
- entity: binary_sensor.side_window_1_tamper
- type: grid - type: grid
cards: cards:
- type: heading - type: heading