Skip to content

Commit 3102066

Browse files
peter-mdfclaude
andcommitted
docs: describe both pickup-point summary sensors in the parcel contract
awaiting_pickup is status == AT_PICKUP_POINT alone and the aggregator reads it from the carrier sensor; en_route_to_pickup_point is optional and never overlaps it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 291dddc commit 3102066

1 file changed

Lines changed: 17 additions & 3 deletions

File tree

‎CONVENTIONS.md‎

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,8 @@ guessed payload shapes, roles or fields we've never seen populated in live data.
202202

203203
- Shared summary sensors use the same default icon wherever they are exposed:
204204
`incoming_parcels` → `mdi:package-variant-closed`, `delivered_parcels` →
205-
`mdi:package-variant`, `awaiting_pickup` → `mdi:store-clock`,
205+
`mdi:package-variant`, `en_route_to_pickup_point` → `mdi:truck-delivery`,
206+
`awaiting_pickup` → `mdi:store-clock`,
206207
`outgoing_parcels` → `mdi:package-up`, and `outgoing_delivered_parcels` →
207208
`mdi:package-check`. `next_delivery`, `last_update`, and per-parcel
208209
`parcel` sensors are likewise centrally checked in suite policy.
@@ -340,8 +341,21 @@ the core rule.
340341
don't introduce a second generic term alongside "pickup point".
341342
- **`awaiting_pickup` sensor.** Any carrier whose parcels can reach
342343
`ParcelStatus.AT_PICKUP_POINT` from a real raw status/code exposes an
343-
`awaiting_pickup` sensor (arrived, ready for collection). Reference
344-
implementations: `ha-dhl-nl`, `ha-dpd`, `ha-gls`, `ha-inpost`. A carrier
344+
`awaiting_pickup` sensor (arrived, ready for collection). Membership is
345+
`status == AT_PICKUP_POINT` alone — no `pickup` gate, so a failed home
346+
delivery that gets rerouted to a pickup point still counts. Reference
347+
implementations: `ha-dhl-nl`, `ha-dpd`, `ha-gls`, `ha-inpost`. The Parcel
348+
Aggregator reads ready parcels only from this sensor, so a carrier that maps
349+
a status to `AT_PICKUP_POINT` without one drops out of its total. A carrier
345350
whose statuses never actually reach `AT_PICKUP_POINT` (no pickup-point
346351
delivery method) is exempt — say so explicitly in that repo's own
347352
`CLAUDE.md` so the gap reads as a decision, not an oversight.
353+
- **`en_route_to_pickup_point` sensor (optional).** A carrier that can tell,
354+
before arrival, that a parcel is headed for a pickup point may expose it:
355+
`pickup is true` and `status != AT_PICKUP_POINT`, so it never overlaps
356+
`awaiting_pickup`. Only add it when `pickup` is reliable ahead of arrival —
357+
a carrier that only learns it at arrival would publish a permanently-zero
358+
sensor. The Parcel Aggregator merges both sensors from their carrier
359+
sources; it never derives either phase from `incoming_parcels`. Both sensors follow the list-sensor shape
360+
(integer state, `parcels` attribute) and use the translation key as the
361+
unique-ID suffix; `incoming_parcels` stays the complete active list.

0 commit comments

Comments
 (0)