Lunch menu and automation name changes #53

This commit is contained in:
2023-02-02 16:54:24 -05:00
parent e3595c0b10
commit 8ad575c425
2 changed files with 7 additions and 7 deletions

View File

@ -116,7 +116,7 @@ sensor:
{% else %} {% else %}
off off
{% endif %} {% endif %}
lunch_menu_week: kallen_lunch_menu_week:
friendly_name: Lunch Menu Week friendly_name: Lunch Menu Week
value_template: > value_template: >
{% if is_state('calendar.elementary_school_lunch','on') %} {% if is_state('calendar.elementary_school_lunch','on') %}
@ -136,10 +136,10 @@ sensor:
{% else %} {% else %}
mdi:calendar-end mdi:calendar-end
{% endif %} {% endif %}
lunch_menu_items: kallen_lunch_menu_items:
friendly_name: Lunch Menu Items friendly_name: Lunch Menu Items
icon_template: > icon_template: >
{% set week = states('sensor.lunch_menu_week') %} {% set week = states('sensor.kallen_lunch_menu_week') %}
{% if week == 'First Menu' %} {% if week == 'First Menu' %}
mdi:numeric-1-circle mdi:numeric-1-circle
{% elif week == 'Second Menu' %} {% elif week == 'Second Menu' %}
@ -153,7 +153,7 @@ sensor:
{% endif %} {% endif %}
value_template: > value_template: >
{%- macro getReport() -%} {%- macro getReport() -%}
{% set week = states('sensor.lunch_menu_week') %} {% set week = states('sensor.kallen_lunch_menu_week') %}
{% set dow = now().strftime('%A') %} {% set dow = now().strftime('%A') %}
{% if week == 'First Menu' %} {% if week == 'First Menu' %}
{% if dow == 'Monday' %} {% if dow == 'Monday' %}
@ -248,7 +248,7 @@ sensor:
automation: automation:
- id: e1cb2d02-0423-11eb-adc1-0242ac120002 - id: e1cb2d02-0423-11eb-adc1-0242ac120002
alias: School today alias: Kallen School today
initial_state: true initial_state: true
trigger: trigger:
- platform: time - platform: time
@ -263,7 +263,7 @@ automation:
- service: script.kallen_school_today - service: script.kallen_school_today
- id: b9028665-401c-4de3-8f13-1099160b011f - id: b9028665-401c-4de3-8f13-1099160b011f
alias: School Reset alias: Kallen School Reset
initial_state: true initial_state: true
trigger: trigger:
- platform: time - platform: time

View File

@ -49,7 +49,7 @@
{% if states.sensor.school_end_days2go.state | int == 0 -%} {% if states.sensor.school_end_days2go.state | int == 0 -%}
But today is the last day of School! But today is the last day of School!
{%- endif %} {%- endif %}
The lunch menu for today is {{ states('sensor.lunch_menu_items') }} The lunch menu for today is {{ states('sensor.kallen_lunch_menu_items') }}
{% endif %} {% endif %}
{% if is_state('input_boolean.kallen_school_today', 'off') %} {% if is_state('input_boolean.kallen_school_today', 'off') %}
{% if is_state('input_boolean.kallen_school_cancelled','on') %} {% if is_state('input_boolean.kallen_school_cancelled','on') %}