Add studio quiet mode to basement status badge
This commit is contained in:
@ -3946,15 +3946,29 @@ views:
|
||||
content: |-
|
||||
{% if is_state(entity,'on') %}
|
||||
Do Not Enter
|
||||
{% elif is_state('input_boolean.studio_quiet','on') %}
|
||||
Studio Quiet
|
||||
{% else %}
|
||||
Safe
|
||||
{% endif %}
|
||||
entity: input_boolean.do_not_enter_basement_studio
|
||||
label: Basement Status
|
||||
color: '{{ "red" if is_state(entity,''on'') else "green" }}'
|
||||
icon: >-
|
||||
{{ "mdi:close-circle" if is_state(entity,'on') else "mdi:check-circle"
|
||||
}}
|
||||
color: |-
|
||||
{% if is_state(entity,'on') %}
|
||||
red
|
||||
{% elif is_state('input_boolean.studio_quiet','on') %}
|
||||
yellow
|
||||
{% else %}
|
||||
green
|
||||
{% endif %}
|
||||
icon: |-
|
||||
{% if is_state(entity,'on') %}
|
||||
mdi:close-circle
|
||||
{% elif is_state('input_boolean.studio_quiet','on') %}
|
||||
mdi:alert
|
||||
{% else %}
|
||||
mdi:check-circle
|
||||
{% endif %}
|
||||
tap_action:
|
||||
action: none
|
||||
hold_action:
|
||||
|
Reference in New Issue
Block a user