Add basement status indicator to mobile dashboard
This commit is contained in:
@@ -3849,6 +3849,25 @@ views:
|
|||||||
- condition: state
|
- condition: state
|
||||||
entity: binary_sensor.windows
|
entity: binary_sensor.windows
|
||||||
state: 'on'
|
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
|
- type: custom:mushroom-template-badge
|
||||||
content: |-
|
content: |-
|
||||||
{% from 'time.jinja' import input_datetime_read %}
|
{% from 'time.jinja' import input_datetime_read %}
|
||||||
|
|||||||
Reference in New Issue
Block a user