Refactor chore tracker for new kids: Emma, Liam, and Zoe

- Updated dashboard YAML to reflect new kids and their chores.
- Modified chores configuration to include new kids with appropriate icons and settings.
- Adjusted generation script to handle new MDI glyphs for icons.
- Revised Home Assistant integration to support new kids, including input buttons and automation for chores.
- Ensured all references to old kids (Jordyn, Declan, Chloe) are replaced with new names and corresponding logic.
This commit is contained in:
Joshua King
2026-02-28 09:41:42 -05:00
parent c2ad832a82
commit b635c771ec
5 changed files with 660 additions and 613 deletions

View File

@@ -1,6 +1,6 @@
################################################################################
# chore-tracker-dashboard.yaml (AUTO-GENERATED — edit chores_config.yaml)
# Kids: Jordyn, Declan, Chloe
# Kids: Emma, Liam, Zoe
################################################################################
title: "Chore Tracker"
@@ -13,26 +13,26 @@ views:
cards:
- type: markdown
content: >
### 😺 Jordyn
### 󰇹 Emma
{{
'All done!' if states('sensor.jordyn_all_chores_done') == 'True'
else states('sensor.jordyn_chores_done_today') ~ '/5 chores done'
'All done!' if states('sensor.emma_all_chores_done') == 'True'
else states('sensor.emma_chores_done_today') ~ '/5 chores done'
}}
- type: markdown
content: >
### 🤓 Declan
### 󰲙 Liam
{{
'All done!' if states('sensor.declan_all_chores_done') == 'True'
else states('sensor.declan_chores_done_today') ~ '/4 chores done'
'All done!' if states('sensor.liam_all_chores_done') == 'True'
else states('sensor.liam_chores_done_today') ~ '/4 chores done'
}}
- type: markdown
content: >
### 🌝 Chloe
### 󱞵 Zoe
{{
'All done!' if states('sensor.chloe_all_chores_done') == 'True'
else states('sensor.chloe_chores_done_today') ~ '/6 chores done'
'All done!' if states('sensor.zoe_all_chores_done') == 'True'
else states('sensor.zoe_chores_done_today') ~ '/6 chores done'
}}
- type: button
@@ -44,90 +44,90 @@ views:
target:
entity_id: input_button.reset_all_chores
- type: entities
title: "😺 Jordyn's Chores"
title: "󰇹 Emma's Chores"
entities:
- entity: switch.chore_tracker_jordyn_make_bed
name: "🛏️ Make Bed"
- entity: switch.chore_tracker_emma_make_bed
name: "󰋣 Make Bed"
- entity: switch.chore_tracker_jordyn_brush_teeth
name: "🦷 Brush Teeth"
- entity: switch.chore_tracker_emma_brush_teeth
name: "󰦩 Brush Teeth"
- entity: switch.chore_tracker_jordyn_tidy_room
name: "🧹 Tidy Room"
- entity: switch.chore_tracker_emma_tidy_room
name: "󰂨 Tidy Room"
- entity: switch.chore_tracker_jordyn_homework
name: "📚 Homework"
- entity: switch.chore_tracker_emma_homework
name: "󰈙 Homework"
- entity: switch.chore_tracker_jordyn_feed_dog
name: "🐾 Feed Dog"
- entity: switch.chore_tracker_emma_feed_dog
name: "󰉥 Feed Dog"
- type: divider
- entity: sensor.jordyn_chores_done_today
- entity: sensor.emma_chores_done_today
name: "Chores done today"
- entity: sensor.jordyn_all_chores_done
- entity: sensor.emma_all_chores_done
name: "All Done?"
- type: button
name: "Reset Jordyn's Chores"
name: "Reset Emma's Chores"
tap_action:
action: call-service
service: input_button.press
target:
entity_id: input_button.jordyn_reset_chores
entity_id: input_button.emma_reset_chores
- type: entities
title: "🤓 Declan's Chores"
title: "󰲙 Liam's Chores"
entities:
- entity: switch.chore_tracker_declan_make_bed
name: "🛏️ Make Bed"
- entity: switch.chore_tracker_liam_make_bed
name: "󰋣 Make Bed"
- entity: switch.chore_tracker_declan_brush_teeth
name: "🦷 Brush Teeth"
- entity: switch.chore_tracker_liam_brush_teeth
name: "󰦩 Brush Teeth"
- entity: switch.chore_tracker_declan_set_table
name: "🍽️ Set Table"
- entity: switch.chore_tracker_liam_set_table
name: "󰏧 Set Table"
- entity: switch.chore_tracker_declan_take_out_trash
name: "🗑️ Take Out Trash"
- entity: switch.chore_tracker_liam_take_out_trash
name: "󰖸 Take Out Trash"
- type: divider
- entity: sensor.declan_chores_done_today
- entity: sensor.liam_chores_done_today
name: "Chores done today"
- entity: sensor.declan_all_chores_done
- entity: sensor.liam_all_chores_done
name: "All Done?"
- type: button
name: "Reset Declan's Chores"
name: "Reset Liam's Chores"
tap_action:
action: call-service
service: input_button.press
target:
entity_id: input_button.declan_reset_chores
entity_id: input_button.liam_reset_chores
- type: entities
title: "🌝 Chloe's Chores"
title: "󱞵 Zoe's Chores"
entities:
- entity: switch.chore_tracker_chloe_make_bed
name: "🛏️ Make Bed"
- entity: switch.chore_tracker_zoe_make_bed
name: "󰋣 Make Bed"
- entity: switch.chore_tracker_chloe_brush_teeth
name: "🦷 Brush Teeth"
- entity: switch.chore_tracker_zoe_brush_teeth
name: "󰦩 Brush Teeth"
- entity: switch.chore_tracker_chloe_water_plants
name: "🌱 Water Plants"
- entity: switch.chore_tracker_zoe_water_plants
name: "󱬥 Water Plants"
- entity: switch.chore_tracker_chloe_homework
name: "📚 Homework"
- entity: switch.chore_tracker_zoe_homework
name: "󰈙 Homework"
- entity: switch.chore_tracker_chloe_tidy_room
name: "🧹 Tidy Room"
- entity: switch.chore_tracker_zoe_tidy_room
name: "󰂨 Tidy Room"
- entity: switch.chore_tracker_chloe_practice_piano
name: "🎹 Practice Piano"
- entity: switch.chore_tracker_zoe_practice_piano
name: "󰾞 Practice Piano"
- type: divider
- entity: sensor.chloe_chores_done_today
- entity: sensor.zoe_chores_done_today
name: "Chores done today"
- entity: sensor.chloe_all_chores_done
- entity: sensor.zoe_all_chores_done
name: "All Done?"
- type: button
name: "Reset Chloe's Chores"
name: "Reset Zoe's Chores"
tap_action:
action: call-service
service: input_button.press
target:
entity_id: input_button.chloe_reset_chores
entity_id: input_button.zoe_reset_chores