Closes #279 - Added in UV Index to Speech. Warnings.

This commit is contained in:
ccostan 2018-01-08 21:21:53 -05:00
parent afe4049389
commit b89dd559f0
1 changed files with 9 additions and 9 deletions

View File

@ -147,15 +147,15 @@ speech_engine:
{%- endif -%} {%- endif -%}
{%- endmacro -%} {%- endmacro -%}
# {%- macro uv() -%} {%- macro uv() -%}
# {% if states.sensor.dark_sky_uv_index.state|int >= 6 and <= 7.9 %} {% if states.sensor.dark_sky_uv_index.state|int >= 6 and states.sensor.dark_sky_uv_index.state|int <= 7.9 %}
# Today's UV index is {{ states.sensor.dark_sky_uv_index.state }}. You should wear sunscreen if going outside. Today's UV index is {{ states.sensor.dark_sky_uv_index.state }}. You should wear sunscreen if going outside.
# {% elif states.sensor.dark_sky_uv_index.state|int >= 8 and <=10.9 %} {% elif states.sensor.dark_sky_uv_index.state|int >= 8 and states.sensor.dark_sky_uv_index.state|int <=10.9 %}
# Today's UV index is {{ states.sensor.dark_sky_uv_index.state }}. This is VERY HIGH. Be sure wear sunscreen and re-apply. Today's UV index is {{ states.sensor.dark_sky_uv_index.state }}. This is VERY HIGH. Be sure wear sunscreen and re-apply.
# {% elif states.sensor.dark_sky_uv_index.state|int >= 11 {% elif states.sensor.dark_sky_uv_index.state|int >= 11 %}
# Today's UV index is {{ states.sensor.dark_sky_uv_index.state }}. This is EXTREME. You should be very cautious going outside. Today's UV index is {{ states.sensor.dark_sky_uv_index.state }}. This is EXTREME. You should be very cautious going outside.
# {% endif %} {% endif %}
# {%- endmacro -%} {%- endmacro -%}
{%- macro holiday() -%} {%- macro holiday() -%}
{% if states.sensor.holiday.state != '' %} {% if states.sensor.holiday.state != '' %}