Compare commits
3 Commits
3139d509f7
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
113b68641f
|
|||
|
012f5e4e83
|
|||
|
40d224e57f
|
@@ -1057,6 +1057,10 @@ views:
|
|||||||
| int %} {% set high =
|
| int %} {% set high =
|
||||||
states('sensor.stratton_ave_apparent_temperature') | int %} {{
|
states('sensor.stratton_ave_apparent_temperature') | int %} {{
|
||||||
'Threshold Met' if high <= threshold else '' }}
|
'Threshold Met' if high <= threshold else '' }}
|
||||||
|
- entity: input_number.window_weather_minimum
|
||||||
|
name: Window Minimum
|
||||||
|
- entity: input_number.window_weather_maximum
|
||||||
|
name: Window Maximum
|
||||||
show_header_toggle: false
|
show_header_toggle: false
|
||||||
state_color: true
|
state_color: true
|
||||||
title: Weather
|
title: Weather
|
||||||
@@ -1240,6 +1244,20 @@ views:
|
|||||||
state: 'on'
|
state: 'on'
|
||||||
show_header_toggle: false
|
show_header_toggle: false
|
||||||
state_color: true
|
state_color: true
|
||||||
|
- type: custom:expander-card
|
||||||
|
title: More Settings
|
||||||
|
cards:
|
||||||
|
- type: entities
|
||||||
|
entities:
|
||||||
|
- entity: input_boolean.emma_bedroom_mode_switch
|
||||||
|
name: Mode Switch
|
||||||
|
- entity: input_select.emma_bedroom_mode_switch
|
||||||
|
name: Mode
|
||||||
|
- entity: input_datetime.emma_bedroom_mode_switch
|
||||||
|
name: Switch Time
|
||||||
|
- entity: input_number.emma_bedroom_auto_mode_threshold
|
||||||
|
name: Switch Threshold
|
||||||
|
icon: mdi:cog
|
||||||
- type: grid
|
- type: grid
|
||||||
cards:
|
cards:
|
||||||
- type: heading
|
- type: heading
|
||||||
|
|||||||
@@ -430,6 +430,73 @@ views:
|
|||||||
entity: binary_sensor.lightning_warning
|
entity: binary_sensor.lightning_warning
|
||||||
state: 'on'
|
state: 'on'
|
||||||
features_position: bottom
|
features_position: bottom
|
||||||
|
- type: custom:mushroom-template-card
|
||||||
|
primary: Window Weather
|
||||||
|
tap_action:
|
||||||
|
action: none
|
||||||
|
icon_tap_action:
|
||||||
|
action: none
|
||||||
|
features_position: bottom
|
||||||
|
entity: binary_sensor.window_weather
|
||||||
|
icon: |-
|
||||||
|
{% if is_state('binary_sensor.windows','on') %}
|
||||||
|
mdi:window-open
|
||||||
|
{% else %}
|
||||||
|
mdi:window-closed
|
||||||
|
{% endif %}
|
||||||
|
color: |-
|
||||||
|
{% if is_state(entity,'on') %}
|
||||||
|
{% if is_state('binary_sensor.windows','on') %}
|
||||||
|
var(--cyan-color)
|
||||||
|
{% else %}
|
||||||
|
var(--green-color)
|
||||||
|
{% endif %}
|
||||||
|
{% else %}
|
||||||
|
{% if is_state('binary_sensor.windows','on') %}
|
||||||
|
var(--error-color)
|
||||||
|
{% else %}
|
||||||
|
var(--disabled-color)
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
secondary: |-
|
||||||
|
{% if is_state(entity,'on') %}
|
||||||
|
It's nice outside!
|
||||||
|
{% else %}
|
||||||
|
Close Windows!
|
||||||
|
{% endif %}
|
||||||
|
badge_icon: >-
|
||||||
|
{% if is_state(entity,'off') and
|
||||||
|
is_state('binary_sensor.windows','on') %}
|
||||||
|
|
||||||
|
mdi:exclamation
|
||||||
|
|
||||||
|
{% elif is_state(entity,'on') and
|
||||||
|
is_state('binary_sensor.windows','on') %}
|
||||||
|
|
||||||
|
mdi:check
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
badge_color: >-
|
||||||
|
{% if is_state(entity,'off') and
|
||||||
|
is_state('binary_sensor.windows','on') %}
|
||||||
|
|
||||||
|
var(--error-color)
|
||||||
|
|
||||||
|
{% elif is_state(entity,'on') and
|
||||||
|
is_state('binary_sensor.windows','on') %}
|
||||||
|
|
||||||
|
var(--success-color)
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
visibility:
|
||||||
|
- condition: or
|
||||||
|
conditions:
|
||||||
|
- condition: state
|
||||||
|
entity: binary_sensor.window_weather
|
||||||
|
state: 'on'
|
||||||
|
- condition: state
|
||||||
|
entity: binary_sensor.windows
|
||||||
|
state: 'on'
|
||||||
column_span: 1
|
column_span: 1
|
||||||
- type: grid
|
- type: grid
|
||||||
cards:
|
cards:
|
||||||
@@ -7323,6 +7390,58 @@ views:
|
|||||||
cards:
|
cards:
|
||||||
- type: heading
|
- type: heading
|
||||||
heading: By The Numbers
|
heading: By The Numbers
|
||||||
|
- type: heading
|
||||||
|
icon: healthicons:health
|
||||||
|
heading: Health Checks
|
||||||
|
heading_style: subtitle
|
||||||
|
- type: custom:gauge-card-pro
|
||||||
|
segments:
|
||||||
|
- pos: 0
|
||||||
|
color: red
|
||||||
|
- pos: 50
|
||||||
|
color: '#FFA500'
|
||||||
|
- pos: 75
|
||||||
|
color: rgb(255, 255, 0)
|
||||||
|
- pos: 100
|
||||||
|
color: var(--green-color)
|
||||||
|
needle: true
|
||||||
|
gradient: true
|
||||||
|
titles:
|
||||||
|
primary:
|
||||||
|
value: Health Score
|
||||||
|
gradient_resolution: auto
|
||||||
|
entity: sensor.system_ha_global_health_score
|
||||||
|
min: 0
|
||||||
|
max: 100
|
||||||
|
round: small
|
||||||
|
- type: markdown
|
||||||
|
content: >
|
||||||
|
{% set e = 'sensor.system_ha_global_health_score' %} {% set hw =
|
||||||
|
state_attr(e, 'hardware_score') | int(0) %} {% set app =
|
||||||
|
state_attr(e, 'application_score') | int(0) %} {% set rec =
|
||||||
|
state_attr(e, 'recommendations') | default('', true) %} {% set
|
||||||
|
updates = state_attr(e, 'pending_updates') | default([], true) |
|
||||||
|
list %} {% set zombies = state_attr(e, 'zombie_count') | int(0) %}
|
||||||
|
{% set psi = state_attr(e, 'psi_available') | default(false, true)
|
||||||
|
%}
|
||||||
|
|
||||||
|
| Hardware | Application | | **{{ hw }}**/100 | **{{ app }}**/100
|
||||||
|
|
|
||||||
|
|
||||||
|
{% if updates | length > 0 %} 📦 {{ updates | length }} update(s)
|
||||||
|
pending — [Open Updates](/config/updates) {% endif %}
|
||||||
|
|
||||||
|
{% if zombies > 0 %} 🧟 {{ zombies }} zombie(s) — [Check
|
||||||
|
Entities](/config/entities) {% endif %}
|
||||||
|
|
||||||
|
{% if rec not in [none, 'unknown', 'unavailable'] and '✅' not in
|
||||||
|
rec %} {% else %} --- ✅ System healthy. No recommendations. {%
|
||||||
|
endif %}
|
||||||
|
|
||||||
|
**Metric source**: {% if psi %}🟢 PSI active (CPU + RAM + I/O +
|
||||||
|
Disk) — hardware score uses 4 components{% else %}⚙️ Classic
|
||||||
|
sensors (CPU + RAM + Disk) — hardware score uses 3 components{%
|
||||||
|
endif %}
|
||||||
- type: heading
|
- type: heading
|
||||||
icon: mdi:counter
|
icon: mdi:counter
|
||||||
heading: Entity Counters
|
heading: Entity Counters
|
||||||
|
|||||||
@@ -4276,6 +4276,44 @@ 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') %}
|
||||||
|
It's nice outside!
|
||||||
|
{% else %}
|
||||||
|
Close Windows!
|
||||||
|
{% endif %}
|
||||||
|
icon: |-
|
||||||
|
{% if is_state('binary_sensor.windows','on') %}
|
||||||
|
mdi:window-open
|
||||||
|
{% else %}
|
||||||
|
mdi:window-closed
|
||||||
|
{% endif %}
|
||||||
|
color: |-
|
||||||
|
{% if is_state(entity,'on') %}
|
||||||
|
{% if is_state('binary_sensor.windows','on') %}
|
||||||
|
var(--cyan-color)
|
||||||
|
{% else %}
|
||||||
|
var(--green-color)
|
||||||
|
{% endif %}
|
||||||
|
{% else %}
|
||||||
|
{% if is_state('binary_sensor.windows','on') %}
|
||||||
|
var(--error-color)
|
||||||
|
{% else %}
|
||||||
|
var(--disabled-color)
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
entity: binary_sensor.window_weather
|
||||||
|
label: Window Weather
|
||||||
|
visibility:
|
||||||
|
- condition: or
|
||||||
|
conditions:
|
||||||
|
- condition: state
|
||||||
|
entity: binary_sensor.window_weather
|
||||||
|
state: 'on'
|
||||||
|
- condition: state
|
||||||
|
entity: binary_sensor.windows
|
||||||
|
state: 'on'
|
||||||
- type: custom:mushroom-template-badge
|
- type: custom:mushroom-template-badge
|
||||||
content: Check light switches
|
content: Check light switches
|
||||||
icon: mdi:light-switch
|
icon: mdi:light-switch
|
||||||
|
|||||||
Reference in New Issue
Block a user