Add badges for open doors and windows to mobile dashboard
This commit is contained in:
@ -3733,6 +3733,38 @@ views:
|
|||||||
- condition: state
|
- condition: state
|
||||||
entity: binary_sensor.raining
|
entity: binary_sensor.raining
|
||||||
state: 'on'
|
state: 'on'
|
||||||
|
- type: custom:mushroom-template-badge
|
||||||
|
content: 'Currently: {{ states(''sensor.doors_open'') }}'
|
||||||
|
icon: mdi:door-open
|
||||||
|
color: red
|
||||||
|
entity: binary_sensor.windows
|
||||||
|
label: Doors Open
|
||||||
|
tap_action:
|
||||||
|
action: none
|
||||||
|
hold_action:
|
||||||
|
action: none
|
||||||
|
double_tap_action:
|
||||||
|
action: none
|
||||||
|
visibility:
|
||||||
|
- condition: state
|
||||||
|
entity: binary_sensor.exterior_doors
|
||||||
|
state: 'on'
|
||||||
|
- type: custom:mushroom-template-badge
|
||||||
|
content: 'Currently: {{ states(''sensor.windows_open'') }}'
|
||||||
|
icon: mdi:window-open
|
||||||
|
color: red
|
||||||
|
entity: binary_sensor.windows
|
||||||
|
label: Windows Open
|
||||||
|
tap_action:
|
||||||
|
action: none
|
||||||
|
hold_action:
|
||||||
|
action: none
|
||||||
|
double_tap_action:
|
||||||
|
action: none
|
||||||
|
visibility:
|
||||||
|
- condition: state
|
||||||
|
entity: binary_sensor.windows
|
||||||
|
state: 'on'
|
||||||
- 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