Refactor chore tracker for kids' names and chores: Update Emma, Liam, and Zoe to Jordyn, Declan, and Chloe. Adjust YAML configurations, automation, and notifications accordingly.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
################################################################################
|
||||
# chore-tracker-ha.yaml (AUTO-GENERATED — edit chores_config.yaml)
|
||||
# Kids: Emma, Liam, Zoe
|
||||
# Kids: Jordyn, Declan, Chloe
|
||||
#
|
||||
# BIDIRECTIONAL SYNC:
|
||||
# Screen to HA: Each switch calls homeassistant.service on toggle
|
||||
@@ -8,14 +8,14 @@
|
||||
################################################################################
|
||||
|
||||
input_button:
|
||||
emma_reset_chores:
|
||||
name: "Reset Emma's Chores"
|
||||
jordyn_reset_chores:
|
||||
name: "Reset Jordyn's Chores"
|
||||
icon: mdi:restart
|
||||
liam_reset_chores:
|
||||
name: "Reset Liam's Chores"
|
||||
declan_reset_chores:
|
||||
name: "Reset Declan's Chores"
|
||||
icon: mdi:restart
|
||||
zoe_reset_chores:
|
||||
name: "Reset Zoe's Chores"
|
||||
chloe_reset_chores:
|
||||
name: "Reset Chloe's Chores"
|
||||
icon: mdi:restart
|
||||
reset_all_chores:
|
||||
name: "Reset All Chores"
|
||||
@@ -23,112 +23,112 @@ input_button:
|
||||
|
||||
template:
|
||||
- sensor:
|
||||
- name: "Emma Chores Done Today"
|
||||
unique_id: emma_chores_done_today
|
||||
- name: "Jordyn Chores Done Today"
|
||||
unique_id: jordyn_chores_done_today
|
||||
icon: mdi:check-circle
|
||||
state: >
|
||||
{% set chores = [states('switch.chore_tracker_emma_make_bed'), states('switch.chore_tracker_emma_brush_teeth'), states('switch.chore_tracker_emma_tidy_room'), states('switch.chore_tracker_emma_homework'), states('switch.chore_tracker_emma_feed_dog')] %}
|
||||
{% set chores = [states('switch.chore_tracker_jordyn_make_bed'), states('switch.chore_tracker_jordyn_brush_teeth'), states('switch.chore_tracker_jordyn_tidy_room'), states('switch.chore_tracker_jordyn_homework'), states('switch.chore_tracker_jordyn_feed_dog')] %}
|
||||
{{ chores | select('equalto', 'on') | list | count }}
|
||||
|
||||
- name: "Emma All Chores Done"
|
||||
unique_id: emma_all_chores_done
|
||||
- name: "Jordyn All Chores Done"
|
||||
unique_id: jordyn_all_chores_done
|
||||
icon: mdi:check-all
|
||||
state: >
|
||||
{{ states('sensor.emma_chores_done_today') | int == 5 }}
|
||||
{{ states('sensor.jordyn_chores_done_today') | int == 5 }}
|
||||
|
||||
- name: "Liam Chores Done Today"
|
||||
unique_id: liam_chores_done_today
|
||||
- name: "Declan Chores Done Today"
|
||||
unique_id: declan_chores_done_today
|
||||
icon: mdi:check-circle
|
||||
state: >
|
||||
{% set chores = [states('switch.chore_tracker_liam_make_bed'), states('switch.chore_tracker_liam_brush_teeth'), states('switch.chore_tracker_liam_set_table'), states('switch.chore_tracker_liam_take_out_trash')] %}
|
||||
{% set chores = [states('switch.chore_tracker_declan_make_bed'), states('switch.chore_tracker_declan_brush_teeth'), states('switch.chore_tracker_declan_set_table'), states('switch.chore_tracker_declan_take_out_trash')] %}
|
||||
{{ chores | select('equalto', 'on') | list | count }}
|
||||
|
||||
- name: "Liam All Chores Done"
|
||||
unique_id: liam_all_chores_done
|
||||
- name: "Declan All Chores Done"
|
||||
unique_id: declan_all_chores_done
|
||||
icon: mdi:check-all
|
||||
state: >
|
||||
{{ states('sensor.liam_chores_done_today') | int == 4 }}
|
||||
{{ states('sensor.declan_chores_done_today') | int == 4 }}
|
||||
|
||||
- name: "Zoe Chores Done Today"
|
||||
unique_id: zoe_chores_done_today
|
||||
- name: "Chloe Chores Done Today"
|
||||
unique_id: chloe_chores_done_today
|
||||
icon: mdi:check-circle
|
||||
state: >
|
||||
{% set chores = [states('switch.chore_tracker_zoe_make_bed'), states('switch.chore_tracker_zoe_brush_teeth'), states('switch.chore_tracker_zoe_water_plants'), states('switch.chore_tracker_zoe_homework'), states('switch.chore_tracker_zoe_tidy_room'), states('switch.chore_tracker_zoe_practice_piano')] %}
|
||||
{% set chores = [states('switch.chore_tracker_chloe_make_bed'), states('switch.chore_tracker_chloe_brush_teeth'), states('switch.chore_tracker_chloe_water_plants'), states('switch.chore_tracker_chloe_homework'), states('switch.chore_tracker_chloe_tidy_room'), states('switch.chore_tracker_chloe_practice_piano')] %}
|
||||
{{ chores | select('equalto', 'on') | list | count }}
|
||||
|
||||
- name: "Zoe All Chores Done"
|
||||
unique_id: zoe_all_chores_done
|
||||
- name: "Chloe All Chores Done"
|
||||
unique_id: chloe_all_chores_done
|
||||
icon: mdi:check-all
|
||||
state: >
|
||||
{{ states('sensor.zoe_chores_done_today') | int == 6 }}
|
||||
{{ states('sensor.chloe_chores_done_today') | int == 6 }}
|
||||
|
||||
|
||||
automation:
|
||||
- id: emma_reset_from_ha
|
||||
alias: "Chore Tracker - Reset Emma's chores from HA"
|
||||
- id: jordyn_reset_from_ha
|
||||
alias: "Chore Tracker - Reset Jordyn's chores from HA"
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: input_button.emma_reset_chores
|
||||
entity_id: input_button.jordyn_reset_chores
|
||||
action:
|
||||
- service: switch.turn_off
|
||||
target:
|
||||
entity_id: switch.chore_tracker_emma_make_bed
|
||||
entity_id: switch.chore_tracker_jordyn_make_bed
|
||||
- service: switch.turn_off
|
||||
target:
|
||||
entity_id: switch.chore_tracker_emma_brush_teeth
|
||||
entity_id: switch.chore_tracker_jordyn_brush_teeth
|
||||
- service: switch.turn_off
|
||||
target:
|
||||
entity_id: switch.chore_tracker_emma_tidy_room
|
||||
entity_id: switch.chore_tracker_jordyn_tidy_room
|
||||
- service: switch.turn_off
|
||||
target:
|
||||
entity_id: switch.chore_tracker_emma_homework
|
||||
entity_id: switch.chore_tracker_jordyn_homework
|
||||
- service: switch.turn_off
|
||||
target:
|
||||
entity_id: switch.chore_tracker_emma_feed_dog
|
||||
entity_id: switch.chore_tracker_jordyn_feed_dog
|
||||
|
||||
- id: liam_reset_from_ha
|
||||
alias: "Chore Tracker - Reset Liam's chores from HA"
|
||||
- id: declan_reset_from_ha
|
||||
alias: "Chore Tracker - Reset Declan's chores from HA"
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: input_button.liam_reset_chores
|
||||
entity_id: input_button.declan_reset_chores
|
||||
action:
|
||||
- service: switch.turn_off
|
||||
target:
|
||||
entity_id: switch.chore_tracker_liam_make_bed
|
||||
entity_id: switch.chore_tracker_declan_make_bed
|
||||
- service: switch.turn_off
|
||||
target:
|
||||
entity_id: switch.chore_tracker_liam_brush_teeth
|
||||
entity_id: switch.chore_tracker_declan_brush_teeth
|
||||
- service: switch.turn_off
|
||||
target:
|
||||
entity_id: switch.chore_tracker_liam_set_table
|
||||
entity_id: switch.chore_tracker_declan_set_table
|
||||
- service: switch.turn_off
|
||||
target:
|
||||
entity_id: switch.chore_tracker_liam_take_out_trash
|
||||
entity_id: switch.chore_tracker_declan_take_out_trash
|
||||
|
||||
- id: zoe_reset_from_ha
|
||||
alias: "Chore Tracker - Reset Zoe's chores from HA"
|
||||
- id: chloe_reset_from_ha
|
||||
alias: "Chore Tracker - Reset Chloe's chores from HA"
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: input_button.zoe_reset_chores
|
||||
entity_id: input_button.chloe_reset_chores
|
||||
action:
|
||||
- service: switch.turn_off
|
||||
target:
|
||||
entity_id: switch.chore_tracker_zoe_make_bed
|
||||
entity_id: switch.chore_tracker_chloe_make_bed
|
||||
- service: switch.turn_off
|
||||
target:
|
||||
entity_id: switch.chore_tracker_zoe_brush_teeth
|
||||
entity_id: switch.chore_tracker_chloe_brush_teeth
|
||||
- service: switch.turn_off
|
||||
target:
|
||||
entity_id: switch.chore_tracker_zoe_water_plants
|
||||
entity_id: switch.chore_tracker_chloe_water_plants
|
||||
- service: switch.turn_off
|
||||
target:
|
||||
entity_id: switch.chore_tracker_zoe_homework
|
||||
entity_id: switch.chore_tracker_chloe_homework
|
||||
- service: switch.turn_off
|
||||
target:
|
||||
entity_id: switch.chore_tracker_zoe_tidy_room
|
||||
entity_id: switch.chore_tracker_chloe_tidy_room
|
||||
- service: switch.turn_off
|
||||
target:
|
||||
entity_id: switch.chore_tracker_zoe_practice_piano
|
||||
entity_id: switch.chore_tracker_chloe_practice_piano
|
||||
|
||||
- id: reset_all_from_ha
|
||||
alias: "Chore Tracker - Reset ALL chores from HA"
|
||||
@@ -138,85 +138,85 @@ automation:
|
||||
action:
|
||||
- service: switch.turn_off
|
||||
target:
|
||||
entity_id: switch.chore_tracker_emma_make_bed
|
||||
entity_id: switch.chore_tracker_jordyn_make_bed
|
||||
- service: switch.turn_off
|
||||
target:
|
||||
entity_id: switch.chore_tracker_emma_brush_teeth
|
||||
entity_id: switch.chore_tracker_jordyn_brush_teeth
|
||||
- service: switch.turn_off
|
||||
target:
|
||||
entity_id: switch.chore_tracker_emma_tidy_room
|
||||
entity_id: switch.chore_tracker_jordyn_tidy_room
|
||||
- service: switch.turn_off
|
||||
target:
|
||||
entity_id: switch.chore_tracker_emma_homework
|
||||
entity_id: switch.chore_tracker_jordyn_homework
|
||||
- service: switch.turn_off
|
||||
target:
|
||||
entity_id: switch.chore_tracker_emma_feed_dog
|
||||
entity_id: switch.chore_tracker_jordyn_feed_dog
|
||||
- service: switch.turn_off
|
||||
target:
|
||||
entity_id: switch.chore_tracker_liam_make_bed
|
||||
entity_id: switch.chore_tracker_declan_make_bed
|
||||
- service: switch.turn_off
|
||||
target:
|
||||
entity_id: switch.chore_tracker_liam_brush_teeth
|
||||
entity_id: switch.chore_tracker_declan_brush_teeth
|
||||
- service: switch.turn_off
|
||||
target:
|
||||
entity_id: switch.chore_tracker_liam_set_table
|
||||
entity_id: switch.chore_tracker_declan_set_table
|
||||
- service: switch.turn_off
|
||||
target:
|
||||
entity_id: switch.chore_tracker_liam_take_out_trash
|
||||
entity_id: switch.chore_tracker_declan_take_out_trash
|
||||
- service: switch.turn_off
|
||||
target:
|
||||
entity_id: switch.chore_tracker_zoe_make_bed
|
||||
entity_id: switch.chore_tracker_chloe_make_bed
|
||||
- service: switch.turn_off
|
||||
target:
|
||||
entity_id: switch.chore_tracker_zoe_brush_teeth
|
||||
entity_id: switch.chore_tracker_chloe_brush_teeth
|
||||
- service: switch.turn_off
|
||||
target:
|
||||
entity_id: switch.chore_tracker_zoe_water_plants
|
||||
entity_id: switch.chore_tracker_chloe_water_plants
|
||||
- service: switch.turn_off
|
||||
target:
|
||||
entity_id: switch.chore_tracker_zoe_homework
|
||||
entity_id: switch.chore_tracker_chloe_homework
|
||||
- service: switch.turn_off
|
||||
target:
|
||||
entity_id: switch.chore_tracker_zoe_tidy_room
|
||||
entity_id: switch.chore_tracker_chloe_tidy_room
|
||||
- service: switch.turn_off
|
||||
target:
|
||||
entity_id: switch.chore_tracker_zoe_practice_piano
|
||||
entity_id: switch.chore_tracker_chloe_practice_piano
|
||||
|
||||
- id: emma_all_done_notify
|
||||
alias: "Chore Tracker - Emma all done!"
|
||||
- id: jordyn_all_done_notify
|
||||
alias: "Chore Tracker - Jordyn all done!"
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: sensor.emma_all_chores_done
|
||||
entity_id: sensor.jordyn_all_chores_done
|
||||
to: "True"
|
||||
action:
|
||||
- service: notify.notify
|
||||
data:
|
||||
title: "Emma finished all chores!"
|
||||
message: "Emma completed all 5 chores today!"
|
||||
title: "Jordyn finished all chores!"
|
||||
message: "Jordyn completed all 5 chores today!"
|
||||
|
||||
- id: liam_all_done_notify
|
||||
alias: "Chore Tracker - Liam all done!"
|
||||
- id: declan_all_done_notify
|
||||
alias: "Chore Tracker - Declan all done!"
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: sensor.liam_all_chores_done
|
||||
entity_id: sensor.declan_all_chores_done
|
||||
to: "True"
|
||||
action:
|
||||
- service: notify.notify
|
||||
data:
|
||||
title: "Liam finished all chores!"
|
||||
message: "Liam completed all 4 chores today!"
|
||||
title: "Declan finished all chores!"
|
||||
message: "Declan completed all 4 chores today!"
|
||||
|
||||
- id: zoe_all_done_notify
|
||||
alias: "Chore Tracker - Zoe all done!"
|
||||
- id: chloe_all_done_notify
|
||||
alias: "Chore Tracker - Chloe all done!"
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: sensor.zoe_all_chores_done
|
||||
entity_id: sensor.chloe_all_chores_done
|
||||
to: "True"
|
||||
action:
|
||||
- service: notify.notify
|
||||
data:
|
||||
title: "Zoe finished all chores!"
|
||||
message: "Zoe completed all 6 chores today!"
|
||||
title: "Chloe finished all chores!"
|
||||
message: "Chloe completed all 6 chores today!"
|
||||
|
||||
- id: chore_reminder_evening
|
||||
alias: "Chore Tracker - Evening reminder"
|
||||
@@ -226,33 +226,33 @@ automation:
|
||||
action:
|
||||
- if:
|
||||
condition: template
|
||||
value_template: "{{ states('sensor.emma_all_chores_done') != 'True' }}"
|
||||
value_template: "{{ states('sensor.jordyn_all_chores_done') != 'True' }}"
|
||||
then:
|
||||
- service: notify.notify
|
||||
data:
|
||||
title: "Emma has unfinished chores"
|
||||
title: "Jordyn has unfinished chores"
|
||||
message: >
|
||||
Emma has done
|
||||
{{ states('sensor.emma_chores_done_today') }}/5 chores today.
|
||||
Jordyn has done
|
||||
{{ states('sensor.jordyn_chores_done_today') }}/5 chores today.
|
||||
- if:
|
||||
condition: template
|
||||
value_template: "{{ states('sensor.liam_all_chores_done') != 'True' }}"
|
||||
value_template: "{{ states('sensor.declan_all_chores_done') != 'True' }}"
|
||||
then:
|
||||
- service: notify.notify
|
||||
data:
|
||||
title: "Liam has unfinished chores"
|
||||
title: "Declan has unfinished chores"
|
||||
message: >
|
||||
Liam has done
|
||||
{{ states('sensor.liam_chores_done_today') }}/4 chores today.
|
||||
Declan has done
|
||||
{{ states('sensor.declan_chores_done_today') }}/4 chores today.
|
||||
- if:
|
||||
condition: template
|
||||
value_template: "{{ states('sensor.zoe_all_chores_done') != 'True' }}"
|
||||
value_template: "{{ states('sensor.chloe_all_chores_done') != 'True' }}"
|
||||
then:
|
||||
- service: notify.notify
|
||||
data:
|
||||
title: "Zoe has unfinished chores"
|
||||
title: "Chloe has unfinished chores"
|
||||
message: >
|
||||
Zoe has done
|
||||
{{ states('sensor.zoe_chores_done_today') }}/6 chores today.
|
||||
Chloe has done
|
||||
{{ states('sensor.chloe_chores_done_today') }}/6 chores today.
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user