Updating Jarvis's words

This commit is contained in:
Jeffrey Stone 2021-07-30 21:24:43 -04:00
parent 1224bb3f92
commit b371fe8ee8
2 changed files with 3 additions and 8 deletions

View File

@ -347,7 +347,7 @@
{% endif %} {% endif %}
{% if states.sensor.vacation_days2go.state | int < 32 %} {% if states.sensor.vacation_days2go.state | int < 32 and states.sensor.vacation_days2go.state | int < 0 and states.sensor.vacation_days2go.state != 'unknown' %}
{% if states.sensor.vacation_days2go.state | int > 1 %} {% if states.sensor.vacation_days2go.state | int > 1 %}
There are {{ states.sensor.vacation_days2go.state }} days until {{ states.calendar.vacation.attributes.message }}! There are {{ states.sensor.vacation_days2go.state }} days until {{ states.calendar.vacation.attributes.message }}!
{% else %} {% else %}
@ -437,7 +437,7 @@
{%- endif -%} {%- endif -%}
{%- endif -%} {%- endif -%}
There are currently {{ (states.light | selectattr('state', 'eq', 'on') | list | count) | int + (states.switch | selectattr('state', 'eq', 'on') | list | count) | int }} lights There are currently {{ (states.light | selectattr('state', 'eq', 'on') | list | count) | int + (states.switch | selectattr('state', 'eq', 'on') | list | count) | int }} lights
and switches on. and switches on.
</p> </p>
@ -485,11 +485,6 @@
{% endif %} {% endif %}
{{ [
'If you need anything else, just let me know.',
'Let me know if you need anything else.'
]|random }}
{%- endmacro -%} {%- endmacro -%}

View File

@ -35,7 +35,7 @@
{% endif %} {% endif %}
{% if states.sensor.school_start_days2go.state | int < 10 and states.sensor.school_start_days2go.state | int > 1 -%} {% if states.sensor.school_start_days2go.state | int < 10 and states.sensor.school_start_days2go.state | int > 1 -%}
{{ [ 'I hate to say it, but ', {{ [ 'I hate to say it, but ',
'Unforunately,', 'Unfortunately,',
'All good things must come to an end.' 'All good things must come to an end.'
] | random }} ] | random }}
There are only {{ states.sensor.school_start_days2go.state }} days There are only {{ states.sensor.school_start_days2go.state }} days