This commit is contained in:
parent
cd1eba3d10
commit
afe4049389
|
@ -147,12 +147,23 @@ speech_engine:
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- endmacro -%}
|
{%- endmacro -%}
|
||||||
|
|
||||||
|
# {%- macro uv() -%}
|
||||||
|
# {% if states.sensor.dark_sky_uv_index.state|int >= 6 and <= 7.9 %}
|
||||||
|
# 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 %}
|
||||||
|
# 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
|
||||||
|
# Today's UV index is {{ states.sensor.dark_sky_uv_index.state }}. This is EXTREME. You should be very cautious going outside.
|
||||||
|
# {% endif %}
|
||||||
|
# {%- endmacro -%}
|
||||||
|
|
||||||
{%- macro holiday() -%}
|
{%- macro holiday() -%}
|
||||||
{% if states.sensor.holiday.state != '' %}
|
{% if states.sensor.holiday.state != '' %}
|
||||||
Today is {{ states.sensor.holiday.state }}.
|
Today is {{ states.sensor.holiday.state }}.
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{%- endmacro -%}
|
{%- endmacro -%}
|
||||||
|
|
||||||
|
|
||||||
{# ********************************************* #}
|
{# ********************************************* #}
|
||||||
{# ******** Start the Speech routines ******** #}
|
{# ******** Start the Speech routines ******** #}
|
||||||
{# ********************************************* #}
|
{# ********************************************* #}
|
||||||
|
@ -215,9 +226,7 @@ speech_engine:
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{# call a Random fact about the house #}
|
{# call a Random fact about the house #}
|
||||||
{{ ([iss, moon]|random)() }}
|
{{ ([iss, moon, uv, holiday]|random)() }}
|
||||||
|
|
||||||
{{ holiday() }}
|
|
||||||
|
|
||||||
- service: input_boolean.turn_off
|
- service: input_boolean.turn_off
|
||||||
data:
|
data:
|
||||||
|
|
Loading…
Reference in New Issue