Compare commits
2 Commits
40d224e57f
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
113b68641f
|
|||
|
012f5e4e83
|
@@ -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:
|
||||||
|
|||||||
@@ -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