mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-09-06 18:08:45 +00:00
Add tasks to morning briefing
This commit is contained in:
@@ -39,6 +39,7 @@ script:
|
|||||||
partials:
|
partials:
|
||||||
- !include ../../templates/partials/greeting.yaml
|
- !include ../../templates/partials/greeting.yaml
|
||||||
- !include ../../templates/partials/time.yaml
|
- !include ../../templates/partials/time.yaml
|
||||||
|
- !include ../../templates/partials/tasks.yaml
|
||||||
- >-
|
- >-
|
||||||
|
|
||||||
{{
|
{{
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
>-
|
||||||
|
|
||||||
|
{% set brita_filter = states('binary_sensor.brita_should_change_filter') %}
|
||||||
|
{% set purifier_filter = states('binary_sensor.purifier_filter_needs_change') %}
|
||||||
|
{% set purifier_water = states('binary_sensor.purifier_out_of_water') %}
|
||||||
|
{% set has_reminders = brita_filter or purifier_filter or purifier_water %}
|
||||||
|
|
||||||
|
{%- if has_reminders -%} {{
|
||||||
|
[
|
||||||
|
"You have some tasks.",
|
||||||
|
"Here are the tasks for today.",
|
||||||
|
"You have stuff to do."
|
||||||
|
] | random
|
||||||
|
}} {% endif %}
|
||||||
|
{%- if brita_filter -%} Brita needs filter change. {% endif %}
|
||||||
|
{%- if purifier_filter -%} Purifier needs filter change. {% endif %}
|
||||||
|
{%- if purifier_water -%} Purifier needs water. {%- endif -%}
|
||||||
|
|
||||||
Reference in New Issue
Block a user