From 026fc95c1b1b98e13b5aac3bb36dea0c103f09ff Mon Sep 17 00:00:00 2001 From: Mahasri Kalavala Date: Tue, 28 May 2019 00:30:49 -0400 Subject: [PATCH] minor updates --- lovelace/00_myhome_view.yaml | 46 +++++++++++++++++++++++++ packages/batteries.yaml | 4 +-- templates/home_status.yaml | 21 +++++++----- zwcfg_0xd89c4f0c.xml | 66 ++++++++++++++++++------------------ 4 files changed, 93 insertions(+), 44 deletions(-) diff --git a/lovelace/00_myhome_view.yaml b/lovelace/00_myhome_view.yaml index da6d8c3..12aeccc 100644 --- a/lovelace/00_myhome_view.yaml +++ b/lovelace/00_myhome_view.yaml @@ -227,6 +227,52 @@ cards: - sensor.tv_multi_sensor_luminance - sensor.upstairs_multi_sensor_luminance + - type: conditional + conditions: + - entity: sensor.season + state: 'spring' + card: + type: vertical-stack + cards: + - type: horizontal-stack + cards: + - type: gauge + name: Pollen Today + unit: '%' + entity: sensor.allergy_index_today + max: 12.0 + severity: + green: 0 + yellow: 4 + red: 7 + - type: gauge + name: Pollen Tomorrow + unit: '%' + entity: sensor.allergy_index_tomorrow + max: 12.0 + severity: + green: 0 + yellow: 4 + red: 7 + - type: horizontal-stack + cards: + - type: gauge + name: Asthma Today + unit: '%' + entity: sensor.asthma_index_forecasted_average + severity: + green: 0 + yellow: 4 + red: 7 + - type: gauge + name: Asthma Tomorrow + unit: '%' + entity: sensor.asthma_index_tomorrow + severity: + green: 0 + yellow: 4 + red: 7 + - type: entity-filter title: Motion Sensors show_empty: false diff --git a/packages/batteries.yaml b/packages/batteries.yaml index 37c9c3d..ac33136 100644 --- a/packages/batteries.yaml +++ b/packages/batteries.yaml @@ -402,10 +402,10 @@ automation: action: - service: script.notify_me data_template: - message: "{{ trigger.to_state.attributes.friendly_name | title }}'s phone battery is less than: {{ trigger.to_state.attributes.battery }}%." + message: "{{ trigger.to_state.attributes.friendly_name | title }}'s phone battery is : {{ trigger.to_state.attributes.battery }}%." - service: script.voice_notify data_template: - message: "{{ trigger.to_state.attributes.friendly_name }}'s phone battery is less than: {{ trigger.to_state.attributes.battery }}%." + message: "{{ trigger.to_state.attributes.friendly_name }}'s phone battery is : {{ trigger.to_state.attributes.battery }}%." - alias: Alert Low Battery diff --git a/templates/home_status.yaml b/templates/home_status.yaml index 077a2b0..c20691a 100644 --- a/templates/home_status.yaml +++ b/templates/home_status.yaml @@ -134,16 +134,19 @@ {# weather summary #} {%- macro weather_update() -%} - {% if states('sensor.dark_sky_minutely_summary') |lower != "unknown" %} - {% if '.' in states('sensor.dark_sky_minutely_summary') %} - It is going to be {{ states('sensor.dark_sky_minutely_summary') |replace("min.", "minutes")}}. - {% else %} - It is going to be {{ states('sensor.dark_sky_minutely_summary') }}. - {% endif %} - {% endif %} - {% if states('sensor.dark_sky_apparent_temperature') | lower != "unknown" %} + {%- if states('sensor.dark_sky_minutely_summary') |lower != "unknown" -%} + {%- if '.' in states('sensor.dark_sky_minutely_summary') -%} + It is going to be {{ states('sensor.dark_sky_minutely_summary') |replace("min.", "minutes") -}}. + {%- else -%} + It is going to be {{ states('sensor.dark_sky_minutely_summary') }}. + {%- endif -%} + {%- endif -%} + {%- if states('sensor.dark_sky_apparent_temperature') | lower != "unknown" -%} Outside temperature is {{ states('sensor.dark_sky_apparent_temperature') | round(0) }} degrees. - {% endif %} + {%- endif -%} + {%- if states('sensor.cold_flu_forecasted_average') | float > 8.0 %} + Cold and Flu index is High. Please take extra caution!. + {%- endif -%} {%- endmacro -%} {# Only notify pollen levels in spring #} diff --git a/zwcfg_0xd89c4f0c.xml b/zwcfg_0xd89c4f0c.xml index 2dcbd43..1519ff5 100644 --- a/zwcfg_0xd89c4f0c.xml +++ b/zwcfg_0xd89c4f0c.xml @@ -22,7 +22,7 @@ - + @@ -34,10 +34,10 @@ - - + + - + @@ -208,7 +208,7 @@ - + @@ -216,9 +216,9 @@ - - - + + + @@ -379,7 +379,7 @@ - + @@ -601,7 +601,7 @@ - + @@ -710,7 +710,7 @@ - + @@ -728,9 +728,9 @@ - - - + + + @@ -984,7 +984,7 @@ - + @@ -1008,7 +1008,7 @@ - + @@ -1017,7 +1017,7 @@ - + @@ -1191,7 +1191,7 @@ - + @@ -1213,7 +1213,7 @@ - + @@ -1328,7 +1328,7 @@ - + @@ -1703,7 +1703,7 @@ - + @@ -1809,7 +1809,7 @@ - + @@ -2023,7 +2023,7 @@ - + @@ -2132,7 +2132,7 @@ - + @@ -2238,7 +2238,7 @@ - + @@ -2341,7 +2341,7 @@ - + @@ -2405,9 +2405,9 @@ - + - + @@ -2580,7 +2580,7 @@ - + @@ -2681,7 +2681,7 @@ - + @@ -2726,11 +2726,11 @@ - + - + @@ -2781,7 +2781,7 @@ - +