mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
Cleanup fixes and some BS
This commit is contained in:
@@ -124,7 +124,7 @@ cards:
|
||||
Comfy
|
||||
{% elif is_state('sensor.thermal_comfort_summer_scharlau_perception','slightly_uncomfortable') %}
|
||||
Slightly Uncomfy
|
||||
{% elif is_state('sensor.thermal_comfort_summer_scharlau_perception','moderatly_uncomfortable') %}
|
||||
{% elif is_state('sensor.thermal_comfort_summer_scharlau_perception','moderately_uncomfortable') %}
|
||||
Moderatly Uncomfy
|
||||
{% elif is_state('sensor.thermal_comfort_summer_scharlau_perception','highly_uncomfortable') %}
|
||||
Highly Uncomfortable
|
||||
@@ -136,7 +136,7 @@ cards:
|
||||
mdi:thermometer-low
|
||||
{% elif is_state('sensor.thermal_comfort_summer_scharlau_perception','slightly_uncomfortable') %}
|
||||
mdi:thermometer
|
||||
{% elif is_state('sensor.thermal_comfort_summer_scharlau_perception','moderatly_uncomfortable') %}
|
||||
{% elif is_state('sensor.thermal_comfort_summer_scharlau_perception','moderately_uncomfortable') %}
|
||||
mdi:thermometer-high
|
||||
{% elif is_state('sensor.thermal_comfort_summer_scharlau_perception','highly_uncomfortable') %}
|
||||
mdi:thermometer-alert
|
||||
@@ -148,7 +148,7 @@ cards:
|
||||
green
|
||||
{% elif is_state('sensor.thermal_comfort_summer_scharlau_perception','slightly_uncomfortable') %}
|
||||
yellow
|
||||
{% elif is_state('sensor.thermal_comfort_summer_scharlau_perception','moderatly_uncomfortable') %}
|
||||
{% elif is_state('sensor.thermal_comfort_summer_scharlau_perception','moderately_uncomfortable') %}
|
||||
orange
|
||||
{% elif is_state('sensor.thermal_comfort_summer_scharlau_perception','highly_uncomfortable') %}
|
||||
red
|
||||
@@ -205,9 +205,40 @@ cards:
|
||||
{% endif %}
|
||||
tap_action:
|
||||
action: more-info
|
||||
- type: custom:mushroom-entity-card
|
||||
- type: custom:mushroom-template-card
|
||||
entity: sensor.thermal_comfort_thoms_discomfort_perception
|
||||
name: Thoms Discomfort Perception
|
||||
primary: Thoms
|
||||
secondary: >
|
||||
{% if is_state('sensor.thermal_comfort_thoms_discomfort_perception','no_discomfort') %}
|
||||
No discomfort
|
||||
{% elif is_state('sensor.thermal_comfort_thoms_discomfort_perception','less_than_half') %}
|
||||
Less than half
|
||||
{% elif is_state('sensor.thermal_comfort_thoms_discomfort_perception','more_than_half') %}
|
||||
More than half
|
||||
{% elif is_state('sensor.thermal_comfort_thoms_discomfort_perception','most') %}
|
||||
Most
|
||||
{% elif is_state('sensor.thermal_comfort_thoms_discomfort_perception','everyone') %}
|
||||
Everyone
|
||||
{% elif is_state('sensor.thermal_comfort_thoms_discomfort_perception','dangerous') %}
|
||||
Dangerous
|
||||
{% endif %}
|
||||
icon: tc:heat-index
|
||||
icon_color: >
|
||||
{% if is_state('sensor.thermal_comfort_thoms_discomfort_perception','no_discomfort') %}
|
||||
blue
|
||||
{% elif is_state('sensor.thermal_comfort_thoms_discomfort_perception','less_than_half') %}
|
||||
yellow
|
||||
{% elif is_state('sensor.thermal_comfort_thoms_discomfort_perception','more_than_half') %}
|
||||
orange
|
||||
{% elif is_state('sensor.thermal_comfort_thoms_discomfort_perception','most') %}
|
||||
orange
|
||||
{% elif is_state('sensor.thermal_comfort_thoms_discomfort_perception','everyone') %}
|
||||
red
|
||||
{% elif is_state('sensor.thermal_comfort_thoms_discomfort_perception','dangerous') %}
|
||||
red
|
||||
{% endif %}
|
||||
tap_action:
|
||||
action: more-info
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:mushroom-template-card
|
||||
|
||||
@@ -3,119 +3,23 @@ path: nws-alerts
|
||||
icon: mdi:cloud-alert
|
||||
visible:
|
||||
- user: 24a4bd075e7f41a497dd0390a1dd4a9f
|
||||
#########################################################################################
|
||||
cards:
|
||||
- type: entities
|
||||
title: Severe Weather Alerts
|
||||
show_header_toggle: false
|
||||
entities:
|
||||
- sensor.nws_alerts
|
||||
- type: conditional
|
||||
conditions:
|
||||
- entity: sensor.nws_alerts
|
||||
state_not: '0'
|
||||
card:
|
||||
type: markdown
|
||||
content: |
|
||||
---
|
||||
# NWS First Active Alert
|
||||
- type: vertical-stack
|
||||
cards:
|
||||
- type: conditional
|
||||
conditions:
|
||||
- entity: sensor.nws_alerts_alerts
|
||||
state_not: "0"
|
||||
card:
|
||||
type: markdown
|
||||
content: |
|
||||
{% set num_alerts = states('sensor.nws_alerts') | int %}
|
||||
{% for alert_num in range(num_alerts) %}
|
||||
---
|
||||
# {{ state_attr('sensor.nws_alerts', 'Alerts')[alert_num].Event }}
|
||||
|
||||
## {{ state_attr('sensor.nws_alerts', 'Alerts')[0].Headline }}
|
||||
## {{ state_attr('sensor.nws_alerts', 'Alerts')[alert_num].Headline }}
|
||||
|
||||
{{ state_attr('sensor.nws_alerts', 'Alerts')[0].Description }}
|
||||
|
||||
- type: conditional
|
||||
conditions:
|
||||
- entity: sensor.nws_alerts
|
||||
state_not: '0'
|
||||
- entity: sensor.nws_alerts
|
||||
state_not: '1'
|
||||
card:
|
||||
type: markdown
|
||||
content: >
|
||||
---
|
||||
|
||||
# NWS Second Active Alert {% if state_attr('sensor.nws_alerts',
|
||||
'title').split(' - ')[1] is defined %}
|
||||
|
||||
## {{ states.sensor.nws_alerts.attributes.title.split(' - ')[1] }}
|
||||
|
||||
{{ state_attr('sensor.nws_alerts', 'display_desc').split('\n\n-\n\n')[1] }}
|
||||
|
||||
{% else %}
|
||||
none
|
||||
{% endif %}
|
||||
- type: conditional
|
||||
conditions:
|
||||
- entity: sensor.nws_alerts
|
||||
state_not: '0'
|
||||
- entity: sensor.nws_alerts
|
||||
state_not: '1'
|
||||
- entity: sensor.nws_alerts
|
||||
state_not: '2'
|
||||
card:
|
||||
type: markdown
|
||||
content: >
|
||||
---
|
||||
|
||||
# NWS Third Active Alert {% if state_attr('sensor.nws_alerts',
|
||||
'title').split(' - ')[2] is defined %}
|
||||
|
||||
## {{ states.sensor.nws_alerts.attributes.title.split(' - ')[2] }}
|
||||
|
||||
{{ state_attr('sensor.nws_alerts', 'display_desc').split('\n\n-\n\n')[2] }}
|
||||
|
||||
{% else %}
|
||||
none
|
||||
{% endif %}
|
||||
- type: conditional
|
||||
conditions:
|
||||
- entity: sensor.nws_alerts
|
||||
state_not: '0'
|
||||
- entity: sensor.nws_alerts
|
||||
state_not: '1'
|
||||
- entity: sensor.nws_alerts
|
||||
state_not: '2'
|
||||
- entity: sensor.nws_alerts
|
||||
state_not: '3'
|
||||
card:
|
||||
type: markdown
|
||||
content: >
|
||||
---
|
||||
|
||||
# NWS Fourth Active Alert {% if state_attr('sensor.nws_alerts',
|
||||
'title').split(' - ')[3] is defined %}
|
||||
|
||||
## {{ states.sensor.nws_alerts.attributes.title.split(' - ')[3] }}
|
||||
|
||||
{{ state_attr('sensor.nws_alerts', 'display_desc').split('\n\n-\n\n')[3] }}
|
||||
|
||||
{% else %}
|
||||
none
|
||||
{% endif %}
|
||||
- type: conditional
|
||||
conditions:
|
||||
- entity: sensor.nws_alerts
|
||||
state_not: '0'
|
||||
- entity: sensor.nws_alerts
|
||||
state_not: '1'
|
||||
- entity: sensor.nws_alerts
|
||||
state_not: '2'
|
||||
- entity: sensor.nws_alerts
|
||||
state_not: '3'
|
||||
- entity: sensor.nws_alerts
|
||||
state_not: '4'
|
||||
card:
|
||||
type: markdown
|
||||
content: >
|
||||
---
|
||||
|
||||
# NWS Fifth Active Alert {% if state_attr('sensor.nws_alerts',
|
||||
'title').split(' - ')[4] is defined %}
|
||||
|
||||
## {{ states.sensor.nws_alerts.attributes.title.split(' - ')[4] }}
|
||||
|
||||
{{ state_attr('sensor.nws_alerts', 'display_desc').split('\n\n-\n\n')[4] }}
|
||||
|
||||
{% else %}
|
||||
none
|
||||
{% endif %}
|
||||
{{ state_attr('sensor.nws_alerts', 'Alerts')[alert_num].Description }}
|
||||
{% endfor %}
|
||||
@@ -1,16 +0,0 @@
|
||||
title: OpenMinds AI
|
||||
path: openminds-ai
|
||||
icon: mdi:brain
|
||||
visible:
|
||||
- user: 24a4bd075e7f41a497dd0390a1dd4a9f
|
||||
cards:
|
||||
- type: grid
|
||||
square: false
|
||||
columns: 1
|
||||
cards:
|
||||
- type: entities
|
||||
entities:
|
||||
- entity: input_text.gpt_prompt
|
||||
- type: markdown
|
||||
content: '{{ state_attr(''sensor.hassio_mindsdb_response'', ''response_text'') }}'
|
||||
title: OpenAI Response
|
||||
Reference in New Issue
Block a user