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