66 lines
2.5 KiB
YAML
66 lines
2.5 KiB
YAML
################################################################################
|
|
# chore-tracker-ha.yaml (AUTO-GENERATED — edit chores_config.yaml)
|
|
# Kids: Jordyn, Declan, Chloe
|
|
#
|
|
# BIDIRECTIONAL SYNC:
|
|
# Screen to HA: Each switch calls homeassistant.service on toggle
|
|
# HA to Screen: ESPHome native API handles this automatically
|
|
################################################################################
|
|
|
|
input_button:
|
|
jordyn_reset_chores:
|
|
name: "Reset Jordyn's Chores"
|
|
icon: mdi:restart
|
|
declan_reset_chores:
|
|
name: "Reset Declan's Chores"
|
|
icon: mdi:restart
|
|
chloe_reset_chores:
|
|
name: "Reset Chloe's Chores"
|
|
icon: mdi:restart
|
|
reset_all_chores:
|
|
name: "Reset All Chores"
|
|
icon: mdi:restart-alert
|
|
|
|
template:
|
|
- sensor:
|
|
- name: "Jordyn Chores Done Today"
|
|
unique_id: jordyn_chores_done_today
|
|
icon: mdi:check-circle
|
|
state: >
|
|
{% set chores = [states('switch.chore_tracker_jordyn_put_on_underwear'), states('switch.chore_tracker_jordyn_brush_teeth'), states('switch.chore_tracker_jordyn_fill_water_bowls'), states('switch.chore_tracker_jordyn_restock_cat_food_cans')] %}
|
|
{{ chores | select('equalto', 'on') | list | count }}
|
|
|
|
- name: "Jordyn All Chores Done"
|
|
unique_id: jordyn_all_chores_done
|
|
icon: mdi:check-all
|
|
state: >
|
|
{{ states('sensor.jordyn_chores_done_today') | int == 4 }}
|
|
|
|
- name: "Declan Chores Done Today"
|
|
unique_id: declan_chores_done_today
|
|
icon: mdi:check-circle
|
|
state: >
|
|
{% set chores = [states('switch.chore_tracker_declan_take_morning_pill'), states('switch.chore_tracker_declan_scoop_dog_poop')] %}
|
|
{{ chores | select('equalto', 'on') | list | count }}
|
|
|
|
- name: "Declan All Chores Done"
|
|
unique_id: declan_all_chores_done
|
|
icon: mdi:check-all
|
|
state: >
|
|
{{ states('sensor.declan_chores_done_today') | int == 2 }}
|
|
|
|
- name: "Chloe Chores Done Today"
|
|
unique_id: chloe_chores_done_today
|
|
icon: mdi:check-circle
|
|
state: >
|
|
{% set chores = [states('switch.chore_tracker_chloe_fill_kitty_feeders'), states('switch.chore_tracker_chloe_scoop_kitty_litter'), states('switch.chore_tracker_chloe_replace_kitty_litter_bags')] %}
|
|
{{ chores | select('equalto', 'on') | list | count }}
|
|
|
|
- name: "Chloe All Chores Done"
|
|
unique_id: chloe_all_chores_done
|
|
icon: mdi:check-all
|
|
state: >
|
|
{{ states('sensor.chloe_chores_done_today') | int == 3 }}
|
|
|
|
|