diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/seattle_gov.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/seattle_gov.py index 5becfce4..a03ce1e5 100644 --- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/seattle_gov.py +++ b/custom_components/waste_collection_schedule/waste_collection_schedule/source/seattle_gov.py @@ -11,6 +11,7 @@ TEST_CASES = { "City Hall": {"street_address": "600 4th Ave"}, "Ballard Builders": {"street_address": "7022 12th Ave NW"}, "Carmona Court": {"street_address": "1127 17th Ave E"}, + "2111 E John St": {"street_address":"2111 E John St","prem_code": "DRMGcnGxUEg+gu8pN8vesQ=="} } diff --git a/doc/source/seattle_gov.md b/doc/source/seattle_gov.md index 1eb3e677..7386fec4 100644 --- a/doc/source/seattle_gov.md +++ b/doc/source/seattle_gov.md @@ -10,6 +10,7 @@ waste_collection_schedule: - name: seattle_gov args: street_address: STREET_ADDRESS + prem_code: PREM_CODE ``` ### Configuration Variables @@ -17,6 +18,9 @@ waste_collection_schedule: **street_address**
*(string) (required)* +**prem_code**
+*(string) (optional)* + ## Example ```yaml @@ -29,4 +33,6 @@ waste_collection_schedule: ## How to get the source argument -The source argument is simply the house mailing address. Road type (eg. St, Ave) and cardinal direction if applicable (eg. N/S/NW) are required, so "501 23rd Ave" and "501 23rd Ave E" will give different results. \ No newline at end of file +The street_address argument is simply the house mailing address. Road type (eg. St, Ave) and cardinal direction if applicable (eg. N/S/NW) are required, so "501 23rd Ave" and "501 23rd Ave E" will give different results. + +If the service cannot be identified based on street address alone (in some multi-family houses, etc), a `prem_code` can be extracted by inspecting the "findAccount" call when looking up your service on the Collection Calendar. \ No newline at end of file