Add door sensor and door alert to E's bedroom card
This commit is contained in:
@@ -3101,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
|
||||
@@ -3279,14 +3314,18 @@ views:
|
||||
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:
|
||||
|
||||
Reference in New Issue
Block a user