Add basement status indicator to mobile dashboard

This commit is contained in:
2025-04-12 01:22:24 -04:00
parent ef84f9deed
commit 5d18c1f2ca

View File

@ -3849,6 +3849,25 @@ views:
- condition: state
entity: binary_sensor.windows
state: 'on'
- type: custom:mushroom-template-badge
content: |-
{% if is_state(entity,'on') %}
Do Not Enter
{% 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"
}}
tap_action:
action: none
hold_action:
action: none
double_tap_action:
action: none
- type: custom:mushroom-template-badge
content: |-
{% from 'time.jinja' import input_datetime_read %}