Refactoring login in speach engine macros.
This commit is contained in:
parent
9fe9e59afe
commit
59e63a8fbd
|
@ -496,13 +496,14 @@ script:
|
||||||
It is going to be cold today so I suggest wearing long pants and a light jacket.
|
It is going to be cold today so I suggest wearing long pants and a light jacket.
|
||||||
{% elif is_state("sensor.clothing_forecast", "Chilly") %}
|
{% elif is_state("sensor.clothing_forecast", "Chilly") %}
|
||||||
It is going to be chilly today so I suggest wearing at least long pants.
|
It is going to be chilly today so I suggest wearing at least long pants.
|
||||||
{% elif is_state("sensor.clothing_forecast", "Nice") %}
|
# {% elif is_state("sensor.clothing_forecast", "Nice") %}
|
||||||
It is going to be nice today so I suggest wearing shorts.
|
# It is going to be nice today so I suggest wearing shorts.
|
||||||
{% elif is_state("sensor.clothing_forecast", "Toasty") %}
|
# {% elif is_state("sensor.clothing_forecast", "Toasty") %}
|
||||||
It is going to be a bit warm today so I suggest wearing shorts.
|
# It is going to be a bit warm today so I suggest wearing shorts.
|
||||||
{% elif is_state("sensor.clothing_forecast", "Hot") %}
|
# {% elif is_state("sensor.clothing_forecast", "Hot") %}
|
||||||
It is going to be hot today so I suggest wearing shorts.
|
# It is going to be hot today so I suggest wearing shorts.
|
||||||
{% else %}
|
{% else %}
|
||||||
|
It is going to {{ states.sensor.clothing_forecast.state }} today so I suggest wearing shorts.
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
|
@ -513,13 +514,28 @@ script:
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
{% macro chores() %}
|
{% macro chores() %}
|
||||||
Be sure to make your bed!
|
# Daily Morning Chore Reminders
|
||||||
|
{% if now().strftime('%H')|int < 12 and now().strftime('%H')|int > 6 %}
|
||||||
|
Don't forget to make your beds!
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if is_state("sensor.weekday", "mon") %}
|
{% if is_state("sensor.weekday", "mon") %}
|
||||||
{{ [ "Don't forget tomorrow is Trash Day. ",
|
{{ [ "Don't forget tomorrow is Trash Day. ",
|
||||||
"I advise you move the trash cans to the curb for the weekly pickup. ",
|
"I advise you move the trash cans to the curb for the weekly pickup. ",
|
||||||
" The trash and recycle should go out"
|
" The trash and recycle should go out"
|
||||||
] | random }}
|
] | random }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if is_state("sensor.weekday", "tue") %}
|
||||||
|
{% if now().strftime('%H')|int < 17 %}
|
||||||
|
{{ [ "Don't forget to bring in the trash cans. ",
|
||||||
|
"The trash cans will feel lonely if you leave them out all night. ",
|
||||||
|
"The HOA will get mad if you leave those trash cans out on the street."
|
||||||
|
] | random }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue