110 lines
3.4 KiB
YAML
110 lines
3.4 KiB
YAML
#:########################################################################################:#
|
|
# Jobs Tracker Appliance Completion Triggers Package #
|
|
#:########################################################################################:#
|
|
#
|
|
# TITLE:
|
|
# Jobs Tracker Appliance Completion Triggers
|
|
#
|
|
# FILE:
|
|
# jobs_tracker_appliance_completion_triggers.yaml
|
|
#
|
|
# VERSION:
|
|
# V1.1 2026-09-03
|
|
#
|
|
# PURPOSE:
|
|
# Provides time-qualified appliance door and lid triggers for Jobs Tracker completion.
|
|
#
|
|
# DEPENDS ON:
|
|
# packages/Job_Chore_Tracking/jobs_tracker_jobs.yaml V3.5 or newer.
|
|
#
|
|
# OPERATION:
|
|
# Each contact must remain open for five seconds before its corresponding Jobs Tracker
|
|
# completion route is called. Starting the dryer or washer clears only a previous Due
|
|
# unload job, so the next finished cycle creates its own new unload task.
|
|
#
|
|
# VERSION HISTORY:
|
|
# V1.1 2026-09-03
|
|
# - Clear a pending dryer or washer unload job when its next cycle starts.
|
|
#
|
|
# V1.0 2026-08-15
|
|
# - Added five-second door and lid open completion triggers for dryer and washer jobs.
|
|
#
|
|
#:########################################################################################:#
|
|
|
|
automation:
|
|
- id: jobs_tracker_empty_dryer_door_open
|
|
alias: "Jobs Tracker - Empty Dryer on Door Open"
|
|
description: "Marks Empty the Dryer complete after the dryer door is open for five seconds."
|
|
mode: single
|
|
|
|
triggers:
|
|
- trigger: state
|
|
entity_id: binary_sensor.dryer_door_status_x34rs_contact
|
|
to: "on"
|
|
for:
|
|
seconds: 5
|
|
|
|
actions:
|
|
- action: script.jobs_tracker_route_completion
|
|
data:
|
|
completion_entity: binary_sensor.dryer_door_status_x34rs_contact
|
|
completion_to_state: "on"
|
|
|
|
- id: jobs_tracker_empty_washing_machine_lid_open
|
|
alias: "Jobs Tracker - Empty Washer on Lid Open"
|
|
description: "Marks Empty the Washer complete after the washer lid is open for five seconds."
|
|
mode: single
|
|
|
|
triggers:
|
|
- trigger: state
|
|
entity_id: binary_sensor.washing_machine_lid_status_x39rs_contact
|
|
to: "on"
|
|
for:
|
|
seconds: 5
|
|
|
|
actions:
|
|
- action: script.jobs_tracker_route_completion
|
|
data:
|
|
completion_entity: binary_sensor.washing_machine_lid_status_x39rs_contact
|
|
completion_to_state: "on"
|
|
|
|
- id: jobs_tracker_clear_dryer_unload_on_start
|
|
alias: "Jobs Tracker - Clear Dryer Unload on Start"
|
|
description: "Clears an outstanding Empty the Dryer job when a new dryer cycle starts."
|
|
mode: single
|
|
|
|
triggers:
|
|
- trigger: state
|
|
entity_id: sensor.appliance_monitor_dryer_monitor
|
|
to: Operating
|
|
|
|
conditions:
|
|
- condition: state
|
|
entity_id: sensor.jobs_tracker_empty_dryer
|
|
state: Due
|
|
|
|
actions:
|
|
- action: script.jobs_tracker_dispatch
|
|
data:
|
|
job_id: empty_dryer
|
|
|
|
- id: jobs_tracker_clear_washer_unload_on_start
|
|
alias: "Jobs Tracker - Clear Washer Unload on Start"
|
|
description: "Clears an outstanding Empty the Washer job when a new washer cycle starts."
|
|
mode: single
|
|
|
|
triggers:
|
|
- trigger: state
|
|
entity_id: sensor.appliance_monitor_washing_machine_monitor
|
|
to: Operating
|
|
|
|
conditions:
|
|
- condition: state
|
|
entity_id: sensor.jobs_tracker_empty_washing_machine
|
|
state: Due
|
|
|
|
actions:
|
|
- action: script.jobs_tracker_dispatch
|
|
data:
|
|
job_id: empty_washing_machine
|