- 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.
134 lines
4.3 KiB
YAML
134 lines
4.3 KiB
YAML
################################################################################
|
|
# chore-tracker-dashboard.yaml (AUTO-GENERATED — edit chores_config.yaml)
|
|
# Kids: Emma, Liam, Zoe
|
|
################################################################################
|
|
|
|
title: "Chore Tracker"
|
|
views:
|
|
- title: Today
|
|
icon: mdi:checkbox-marked-circle
|
|
path: chores
|
|
cards:
|
|
- type: horizontal-stack
|
|
cards:
|
|
- type: markdown
|
|
content: >
|
|
### Emma
|
|
{{
|
|
'All done!' if states('sensor.emma_all_chores_done') == 'True'
|
|
else states('sensor.emma_chores_done_today') ~ '/5 chores done'
|
|
}}
|
|
|
|
- type: markdown
|
|
content: >
|
|
### Liam
|
|
{{
|
|
'All done!' if states('sensor.liam_all_chores_done') == 'True'
|
|
else states('sensor.liam_chores_done_today') ~ '/4 chores done'
|
|
}}
|
|
|
|
- type: markdown
|
|
content: >
|
|
### Zoe
|
|
{{
|
|
'All done!' if states('sensor.zoe_all_chores_done') == 'True'
|
|
else states('sensor.zoe_chores_done_today') ~ '/6 chores done'
|
|
}}
|
|
|
|
- type: button
|
|
name: "Reset ALL Chores"
|
|
icon: mdi:restart-alert
|
|
tap_action:
|
|
action: call-service
|
|
service: input_button.press
|
|
target:
|
|
entity_id: input_button.reset_all_chores
|
|
- type: entities
|
|
title: " Emma's Chores"
|
|
entities:
|
|
- entity: switch.chore_tracker_emma_make_bed
|
|
name: " Make Bed"
|
|
|
|
- entity: switch.chore_tracker_emma_brush_teeth
|
|
name: " Brush Teeth"
|
|
|
|
- entity: switch.chore_tracker_emma_tidy_room
|
|
name: " Tidy Room"
|
|
|
|
- entity: switch.chore_tracker_emma_homework
|
|
name: " Homework"
|
|
|
|
- entity: switch.chore_tracker_emma_feed_dog
|
|
name: " Feed Dog"
|
|
- type: divider
|
|
- entity: sensor.emma_chores_done_today
|
|
name: "Chores done today"
|
|
- entity: sensor.emma_all_chores_done
|
|
name: "All Done?"
|
|
- type: button
|
|
name: "Reset Emma's Chores"
|
|
tap_action:
|
|
action: call-service
|
|
service: input_button.press
|
|
target:
|
|
entity_id: input_button.emma_reset_chores
|
|
- type: entities
|
|
title: " Liam's Chores"
|
|
entities:
|
|
- entity: switch.chore_tracker_liam_make_bed
|
|
name: " Make Bed"
|
|
|
|
- entity: switch.chore_tracker_liam_brush_teeth
|
|
name: " Brush Teeth"
|
|
|
|
- entity: switch.chore_tracker_liam_set_table
|
|
name: " Set Table"
|
|
|
|
- entity: switch.chore_tracker_liam_take_out_trash
|
|
name: " Take Out Trash"
|
|
- type: divider
|
|
- entity: sensor.liam_chores_done_today
|
|
name: "Chores done today"
|
|
- entity: sensor.liam_all_chores_done
|
|
name: "All Done?"
|
|
- type: button
|
|
name: "Reset Liam's Chores"
|
|
tap_action:
|
|
action: call-service
|
|
service: input_button.press
|
|
target:
|
|
entity_id: input_button.liam_reset_chores
|
|
- type: entities
|
|
title: " Zoe's Chores"
|
|
entities:
|
|
- entity: switch.chore_tracker_zoe_make_bed
|
|
name: " Make Bed"
|
|
|
|
- entity: switch.chore_tracker_zoe_brush_teeth
|
|
name: " Brush Teeth"
|
|
|
|
- entity: switch.chore_tracker_zoe_water_plants
|
|
name: " Water Plants"
|
|
|
|
- entity: switch.chore_tracker_zoe_homework
|
|
name: " Homework"
|
|
|
|
- entity: switch.chore_tracker_zoe_tidy_room
|
|
name: " Tidy Room"
|
|
|
|
- entity: switch.chore_tracker_zoe_practice_piano
|
|
name: " Practice Piano"
|
|
- type: divider
|
|
- entity: sensor.zoe_chores_done_today
|
|
name: "Chores done today"
|
|
- entity: sensor.zoe_all_chores_done
|
|
name: "All Done?"
|
|
- type: button
|
|
name: "Reset Zoe's Chores"
|
|
tap_action:
|
|
action: call-service
|
|
service: input_button.press
|
|
target:
|
|
entity_id: input_button.zoe_reset_chores
|
|
|