replace <br> with double-spaces in markdown files

This commit is contained in:
mampfes
2022-12-24 11:01:36 +01:00
parent f460d205a7
commit 293f2a1187
114 changed files with 286 additions and 331 deletions

View File

@@ -15,10 +15,10 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**municipality**<br> **municipality**
*(string) (required)* *(string) (required)*
**district**<br> **district**
*(string) (optional)* *(string) (optional)*
Some municipalities (like Rorschach) are separated into districts for several waste types (e.g. `Hauskehricht` and `Papier, Karton`). Some municipalities (like Rorschach) are separated into districts for several waste types (e.g. `Hauskehricht` and `Papier, Karton`).

View File

@@ -22,22 +22,22 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**key**<br> **key**
*(hash) (required)* *(hash) (required)*
**f_id_kommune**<br> **f_id_kommune**
*(integer) (required)* *(integer) (required)*
**f_id_bezirk**<br> **f_id_bezirk**
*(integer) (optional)* *(integer) (optional)*
**f_id_strasse**<br> **f_id_strasse**
*(integer) (required)* *(integer) (required)*
**f_id_strasse_hnr**<br> **f_id_strasse_hnr**
*(string) (optional)* *(string) (optional)*
**f_abfallarten**<br> **f_abfallarten**
*(list of integer) (optional)* *(list of integer) (optional)*
## Example ## Example

View File

@@ -26,13 +26,13 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**city**<br> **city**
*(string) (required)* *(string) (required)*
**street**<br> **street**
*(integer) (optional)* *(integer) (optional)*
**types**<br> **types**
*(list of string) (required)* *(list of string) (required)*
## Example ## Example

View File

@@ -17,16 +17,16 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**service**<br> **service**
*(string) (required)* *(string) (required)*
**ort**<br> **ort**
*(string) (required)* *(string) (required)*
**strasse**<br> **strasse**
*(string) (required)* *(string) (required)*
**hausnummer**<br> **hausnummer**
*(string) (optional)* *(string) (optional)*
## Example ## Example

View File

@@ -15,16 +15,15 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**city**<br> **city**
*(string) (required)* *(string) (required)*
**area**<br> **area**
*(string) (required)* *(string) (required)*
### How to get the source arguments ### How to get the source arguments
The arguments can be found on [abfalltermine-forchheim.de](https://www.abfalltermine-forchheim.de/). The arguments can be found on [abfalltermine-forchheim.de](https://www.abfalltermine-forchheim.de/).
Search for your area. Use the part in front of the dash as `city` argument and the part behind it as `area` argument. Do not insert additional spaces. Search for your area. Use the part in front of the dash as `city` argument and the part behind it as `area` argument. Do not insert additional spaces.
<br>
**Examples** **Examples**
Forchheim - Bamberger Straße (nördlich der Adenauerallee) Forchheim - Bamberger Straße (nördlich der Adenauerallee)
@@ -33,10 +32,10 @@ Forchheim - Bamberger Straße (nördlich der Adenauerallee)
city: Forchheim city: Forchheim
area: Bamberger Straße (nördlich der Adenauerallee) area: Bamberger Straße (nördlich der Adenauerallee)
``` ```
<br>
Dormitz - Dormitz Dormitz - Dormitz
```yaml ```yaml
city: Dormitz city: Dormitz
area: Dormitz area: Dormitz
``` ```

View File

@@ -15,10 +15,10 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**ort**<br> **ort**
*(string) (required)* *(string) (required)*
**strasse**<br> **strasse**
*(string) (required)* *(string) (required)*
## Example ## Example

View File

@@ -14,7 +14,7 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**area_number**<br> **area_number**
*(string) (required)* *(string) (required)*
## Example ## Example

View File

@@ -16,13 +16,13 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**level_1**<br> **level_1**
*(string) (required)* *(string) (required)*
**level_2**<br> **level_2**
*(string) (required)* *(string) (required)*
**level_3**<br> **level_3**
*(string) (optional - depending on level_2)* *(string) (optional - depending on level_2)*
## Example ## Example

View File

@@ -16,13 +16,13 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**ort**<br> **ort**
*(string) (required)* *(string) (required)*
**strasse**<br> **strasse**
*(string) (required)* *(string) (required)*
**nummer**<br> **nummer**
*(integer) (required)* *(integer) (required)*
## Example ## Example

View File

@@ -15,10 +15,10 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**city**<br> **city**
*(string) (required)* *(string) (required)*
**street**<br> **street**
*(string) (required)* *(string) (required)*
## How to get the source arguments ## How to get the source arguments

View File

@@ -15,10 +15,10 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**street**<br> **street**
*(string) (required)* *(string) (required)*
**house_number**<br> **house_number**
*(string) (required)* *(string) (required)*
## Example ## Example

View File

@@ -15,10 +15,10 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**street_code**<br> **street_code**
*(string) (required)* *(string) (required)*
**building_number**<br> **building_number**
*(string) (required)* *(string) (required)*
## Example ## Example

View File

@@ -17,16 +17,16 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**customer**<br> **customer**
*(string) (required)* *(string) (required)*
**city**<br> **city**
*(string) (required)* *(string) (required)*
**street**<br> **street**
*(integer) (optional, depends on customer)* *(integer) (optional, depends on customer)*
**housenumber**<br> **housenumber**
*(integer) (optional, depends on customer)* *(integer) (optional, depends on customer)*
## Example ## Example

View File

@@ -17,16 +17,16 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**city**<br> **city**
*(string) (required)* *(string) (required)*
**street**<br> **street**
*(string) (required)* *(string) (required)*
**house_number**<br> **house_number**
*(integer) (required)* *(integer) (required)*
**address_suffix**<br> **address_suffix**
*(string) (optional) (default: "")* *(string) (optional) (default: "")*
## Example ## Example

View File

@@ -15,10 +15,10 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**city**<br> **city**
*(string) (required)* *(string) (required)*
**street**<br> **street**
*(string) (required)* *(string) (required)*
## Example ## Example

View File

@@ -15,10 +15,10 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**city**<br> **city**
*(string) (required)* *(string) (required)*
**street**<br> **street**
*(string) (required)* *(string) (required)*
## Example ## Example

View File

@@ -17,10 +17,10 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**street_address**<br> **street_address**
*(string) (optional)* *(string) (optional)*
**geolocation_id**<br> **geolocation_id**
*(string) (optional)* *(string) (optional)*
At least one argument must be provided. At least one argument must be provided.

View File

@@ -14,7 +14,7 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**address**<br> **address**
*(string) (required)* *(string) (required)*
## Example ## Example

View File

@@ -15,10 +15,10 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**username**<br> **username**
*(string) (required)* *(string) (required)*
**password**<br> **password**
*(string) (required)* *(string) (required)*
## Example ## Example

View File

@@ -16,13 +16,13 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**street**<br> **street**
*(string) (required)* *(string) (required)*
**house_number**<br> **house_number**
*(integer) (required)* *(integer) (required)*
**address_suffix**<br> **address_suffix**
*(string) (optional) (default: "")* *(string) (optional) (default: "")*
## Example ## Example

View File

@@ -20,17 +20,14 @@ Copy the values for `Ort`, `Straße` and `Hausnummer` into the configuration. Do
### Configuration Variables ### Configuration Variables
**ORT**<br> **ORT**
*(string) (required)*<br> *(string) (required)*
City
**STRASSE**<br> **STRASSE**
*(string) (required)*<br> *(string) (required)*
Street
**HAUSNUMMER**<br> **HAUSNUMMER**
*(string) (required)*<br> *(string) (required)*
Housenumber
## Examples ## Examples

View File

@@ -14,7 +14,7 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**uprn**<br> **uprn**
*(string) (required)* *(string) (required)*
## Example ## Example

View File

@@ -16,13 +16,13 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**suburb**<br> **suburb**
*(string) (required)* *(string) (required)*
**street_name**<br> **street_name**
*(string) (required)* *(string) (required)*
**street_number**<br> **street_number**
*(string) (required)* *(string) (required)*
## Example ## Example

View File

@@ -15,10 +15,10 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**abf_strasse**<br> **abf_strasse**
*(string) (required)* *(string) (required)*
**abf_hausnr**<br> **abf_hausnr**
*(string) (required)* *(string) (required)*
## Example ## Example

View File

@@ -16,10 +16,10 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**POST_CODE**<br> **POST_CODE**
*(string) (required)* *(string) (required)*
**NUMBER**<br> **NUMBER**
*(string) (required)* *(string) (required)*

View File

@@ -17,16 +17,16 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**post_code**<br> **post_code**
*(string) (required)* *(string) (required)*
**suburb**<br> **suburb**
*(string) (required)* *(string) (required)*
**street_name**<br> **street_name**
*(string) (required)* *(string) (required)*
**street_number**<br> **street_number**
*(string) (required)* *(string) (required)*
## Example ## Example

View File

@@ -16,13 +16,13 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**suburb**<br> **suburb**
*(string) (required)* *(string) (required)*
**street_name**<br> **street_name**
*(string) (required)* *(string) (required)*
**street_number**<br> **street_number**
*(string) (required)* *(string) (required)*
## Example ## Example

View File

@@ -16,10 +16,10 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**POST_CODE**<br> **POST_CODE**
*(string) (required)* *(string) (required)*
**NUMBER**<br> **NUMBER**
*(string) (required)* *(string) (required)*

View File

@@ -14,7 +14,7 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**address**<br> **address**
*(string) (required)* *(string) (required)*
## Bin Names example - Garbage, Recycle & Organic ## Bin Names example - Garbage, Recycle & Organic

View File

@@ -23,15 +23,15 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**uprn**<br> **uprn**
*(string) (required)* *(string) (required)*
--- or --- --- or ---
**postcode**<br> **postcode**
*(string) (required)* *(string) (required)*
**name_number**<br> **name_number**
*(string) (required)* *(string) (required)*
## Examples ## Examples

View File

@@ -14,7 +14,7 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**uprn**<br> **uprn**
*(string) (required)* *(string) (required)*
This is required to unambiguously identify the property. This is required to unambiguously identify the property.

View File

@@ -14,7 +14,7 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**district**<br> **district**
_(string) (required)_ _(string) (required)_
## Example ## Example

View File

@@ -14,7 +14,7 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**llpgid**<br> **llpgid**
*(string) (required)* *(string) (required)*
#### How to find your `llpgid` code #### How to find your `llpgid` code

View File

@@ -17,13 +17,13 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**postcode**<br> **postcode**
*(string) (optional)* *(string) (optional)*
**hournameornumber**<br> **hournameornumber**
*(string) (optional)* *(string) (optional)*
**uprn**<br> **uprn**
*(string) (optional)* *(string) (optional)*
Either the postcode and housenameornumber or the UPRN should be supplied in the arguments Either the postcode and housenameornumber or the UPRN should be supplied in the arguments

View File

@@ -17,7 +17,7 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**xmlurl**<br> **xmlurl**
*(URL) (required)* *(URL) (required)*
## Example ## Example

View File

@@ -27,13 +27,13 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**premises_id**<br> **premises_id**
*(int) (required if post_code not provided)* *(int) (required if post_code not provided)*
**post_code**<br> **post_code**
*(string) (required if premises_id not provided)* *(string) (required if premises_id not provided)*
**house_number**<br> **house_number**
*(int) (required if premises_id not provided)* *(int) (required if premises_id not provided)*
## Example ## Example

View File

@@ -19,19 +19,19 @@ The arguments can be found above the calendar after generating one [here](https:
### Configuration Variables ### Configuration Variables
**city**<br> **city**
*(string) (required)* *(string) (required)*
City, extracted from the displayed address. City, extracted from the displayed address.
**district**<br> **district**
*(string) (required)* *(string) (required)*
District, extracted from the displayed address. District, extracted from the displayed address.
**street**<br> **street**
*(string) (required)* *(string) (required)*
Street, extracted from the displayed address. Street, extracted from the displayed address.
**housenumber**<br> **housenumber**
*(string) (required)* *(string) (required)*
Housenumber, extracted from the displayed address. Housenumber, extracted from the displayed address.

View File

@@ -14,7 +14,7 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**uprn**<br> **uprn**
*(string) (required)* *(string) (required)*
This is required to unambiguously identify the property. This is required to unambiguously identify the property.
@@ -72,7 +72,7 @@ Trying to convert all this into a schedule of dates for each specific waste col
* It assumes the week-commencing dates are for the current year. * It assumes the week-commencing dates are for the current year.
* This'll cause problems in December as upcoming January collections will have been assigned dates in the past. * This'll cause problems in December as upcoming January collections will have been assigned dates in the past.
* Some clunky logic can deal with this: * Some clunky logic can deal with this:
* If a date in less than 1 month in the past, it doesn't matter as the collection will have recently occured. * If a date in less than 1 month in the past, it doesn't matter as the collection will have recently occurred.
* If a date is more than 1 month in the past, assume it's an incorrectly assigned date and increments the year by 1. * If a date is more than 1 month in the past, assume it's an incorrectly assigned date and increments the year by 1.
* Once that's been done, offset the week-commencing dates to match day of the week indicated for each waste collection type. * Once that's been done, offset the week-commencing dates to match day of the week indicated for each waste collection type.

View File

@@ -17,22 +17,22 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**uprn**<br> **uprn**
*(string) (optional) (preferred method)* *(string) (optional) (preferred method)*
This is required if you do not supply any other options. Using a UPRN removes the need to do an address look up using web requests. This is required if you do not supply any other options. Using a UPRN removes the need to do an address look up using web requests.
**post_code**<br> **post_code**
*(string) (optional)* *(string) (optional)*
This is required if you do not supply a UPRN. Single space between 1st and 2nd part of postcode is optional. This is required if you do not supply a UPRN. Single space between 1st and 2nd part of postcode is optional.
**number**<br> **number**
*(string) (optional)* *(string) (optional)*
This is required if you supply a Postcode and have a house number. This is required if you supply a Postcode and have a house number.
**name**<br> **name**
*(string) (optional)* *(string) (optional)*
This is required if you supply a Postcode and you have a house name rather than a house number. This is required if you supply a Postcode and you have a house name rather than a house number.

View File

@@ -14,10 +14,10 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**city**<br> **city**
*(string) (required)* *(string) (required)*
**street**<br> **street**
*(string) (required)* *(string) (required)*
### How to get the source arguments ### How to get the source arguments

View File

@@ -14,7 +14,7 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**uprn**<br> **uprn**
*(string) (required)* *(string) (required)*
This is required to unambiguously identify the property. This is required to unambiguously identify the property.

View File

@@ -19,19 +19,19 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**region**<br> **region**
*(string) (required)* *(string) (required)*
**street**<br> **street**
*(string) (required)* *(string) (required)*
**house_number**<br> **house_number**
*(string) (required)* *(string) (required)*
**district**<br> **district**
*(string) (optional)* *(string) (optional)*
**waste_object_ids**<br> **waste_object_ids**
*(list) (optional)* *(list) (optional)*
## Example ## Example

View File

@@ -14,7 +14,7 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**uprn**<br> **uprn**
*(string) (required)* *(string) (required)*
## Example ## Example

View File

@@ -17,16 +17,16 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**post_code**<br> **post_code**
*(string) (required)* *(string) (required)*
**town**<br> **town**
*(string) (required)* *(string) (required)*
**street_name**<br> **street_name**
*(string) (required)* *(string) (required)*
**street_number**<br> **street_number**
*(string) (required)* *(string) (required)*
## Example ## Example

View File

@@ -14,7 +14,7 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**uprn**<br> **uprn**
*(string) (required)* *(string) (required)*
## Example ## Example

View File

@@ -17,11 +17,11 @@ The arguments can be found in the URL after visiting the [the calendar](https://
### Configuration Variables ### Configuration Variables
**streetIndex**<br> **streetIndex**
*(int)* *(int)*
Street index, extracted from URL. Street index, extracted from URL.
**cp**<br> **cp**
*(int)* *(int)*
Postal code, extracted from URL. Postal code, extracted from URL.

View File

@@ -96,7 +96,7 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**url**<br> **url**
*(string) (optional)* *(string) (optional)*
URL to ICS / iCal file. File will be downloaded using a HTTP GET request. URL to ICS / iCal file. File will be downloaded using a HTTP GET request.
@@ -105,26 +105,26 @@ If the original url contains the current year (4 digits including century), this
You have to specify either `url` or `file`! You have to specify either `url` or `file`!
**file**<br> **file**
*(string) (optional)* *(string) (optional)*
Local ICS / iCal file name. Can be used instead of `url` for local files. Local ICS / iCal file name. Can be used instead of `url` for local files.
You have to specify either `url` or `file`! You have to specify either `url` or `file`!
**offset**<br> **offset**
*(int) (optional, default: `0`)* *(int) (optional, default: `0`)*
Offset in days which will be added to every start time. Can be used if the start time of the events in the ICS file are ahead of the actual date. Offset in days which will be added to every start time. Can be used if the start time of the events in the ICS file are ahead of the actual date.
**method**<br> **method**
*(string) (optional, default: `GET`)* *(string) (optional, default: `GET`)*
Method to send the URL `params`. Method to send the URL `params`.
Need to be `GET` or `POST`. Need to be `GET` or `POST`.
**params**<br> **params**
*(dict) (optional, default: None)* *(dict) (optional, default: None)*
Dictionary, list of tuples or bytes to send in the query string for the HTTP request. Dictionary, list of tuples or bytes to send in the query string for the HTTP request.
@@ -136,24 +136,24 @@ This gets
Only used if `url` is specified, not used for `file`. Only used if `url` is specified, not used for `file`.
**year_field**<br> **year_field**
*(string) (optional, default: None)* *(string) (optional, default: None)*
Field in params dictionary to be replaced with current year (4 digits including century). Field in params dictionary to be replaced with current year (4 digits including century).
**regex**<br> **regex**
*(string) (optional, default: None)* *(string) (optional, default: None)*
Regular expression used to remove needless text from collection types. Regular expression used to remove needless text from collection types.
See also example below. See also example below.
**split_at**<br> **split_at**
*(string) (optional, default: None)* *(string) (optional, default: None)*
Delimiter to split event summary into individual collection types. If your service puts multiple collections types which occur at the same day into a single event, this option can be used to separate the collection types again. Delimiter to split event summary into individual collection types. If your service puts multiple collections types which occur at the same day into a single event, this option can be used to separate the collection types again.
**version**<br> **version**
*(integer) (optional, default: 2)* *(integer) (optional, default: 2)*
Selects the underlying ICS file parser: Selects the underlying ICS file parser:
@@ -161,7 +161,7 @@ Selects the underlying ICS file parser:
- version: 1 uses `recurring_ical_events` - version: 1 uses `recurring_ical_events`
- version: 2 uses `icalevents` - version: 2 uses `icalevents`
**verify_ssl**<br> **verify_ssl**
*(boolean) (optional, default: True)* *(boolean) (optional, default: True)*
Allows do disable SSL certificate checks in case the HTTPS server of your service provider is misconfigured and therefore doesn't send intermediate certificates. Unlike browsers, python doesn't support automatic fetching of missing intermediates. Allows do disable SSL certificate checks in case the HTTPS server of your service provider is misconfigured and therefore doesn't send intermediate certificates. Unlike browsers, python doesn't support automatic fetching of missing intermediates.
@@ -622,14 +622,19 @@ waste_collection_schedule:
``` ```
You can also compose the URL yourself. You need the following elements for this: You can also compose the URL yourself. You need the following elements for this:
1. the nis-code of your municipality: query the api with the name of your municipality;<br>example: https://limburg.net/api-proxy/public/afval-kalender/gemeenten/search?query=Peer 1. the nis-code of your municipality: query the api with the name of your municipality; example: https://limburg.net/api-proxy/public/afval-kalender/gemeenten/search?query=Peer
```json
[{"nisCode":"72030","naam":"Peer"}] ```json
``` [{"nisCode":"72030","naam":"Peer"}]
2. the number of your street: query the api with the nis-code of your municipality and the name of your street;<br>example: https://limburg.net/api-proxy/public/afval-kalender/gemeente/72030/straten/search?query=Zuidervest ```
```json
[{"nummer":"66536","naam":"Zuidervest"}] 2. the number of your street: query the api with the nis-code of your municipality and the name of your street
``` example: https://limburg.net/api-proxy/public/afval-kalender/gemeente/72030/straten/search?query=Zuidervest
```json
[{"nummer":"66536","naam":"Zuidervest"}]
```
3. your housenumber 3. your housenumber
```yaml ```yaml
@@ -722,15 +727,16 @@ sensor:
The Bromley council has a simple way to generate an iCal. All you need is the URL The Bromley council has a simple way to generate an iCal. All you need is the URL
* Go to [Bromley Bin Collection](https://recyclingservices.bromley.gov.uk/waste) - Go to [Bromley Bin Collection](https://recyclingservices.bromley.gov.uk/waste)
* Enter your post code, then select your address from the dropdown. The results page will show your collection schedule. - Enter your post code, then select your address from the dropdown. The results page will show your collection schedule.
* Your unique code can be found in the URL, eg: *recyclingservices.bromley.gov.uk/waste/`6261994`* - Your unique code can be found in the URL, eg: *recyclingservices.bromley.gov.uk/waste/`6261994`*
* You can either use the following link and replace your ID, or copy the link address on the "Add to you calendar" link: *https://recyclingservices.bromley.gov.uk/waste/6261994/calendar.ics* - You can either use the following link and replace your ID, or copy the link address on the "Add to you calendar" link: *https://recyclingservices.bromley.gov.uk/waste/6261994/calendar.ics*
Note: Note:
* This has been designed to break each bin collection into different sensors.
* This was created at a property that has a garden waste subscription. You may need to amit that from the code - This has been designed to break each bin collection into different sensors.
* This display number of days until collection. Replace `value_template` with `date_template: '{{value.date.strftime("%A %d %B %Y")}}'` to display date of collection - This was created at a property that has a garden waste subscription. You may need to amit that from the code
- This display number of days until collection. Replace `value_template` with `date_template: '{{value.date.strftime("%A %d %B %Y")}}'` to display date of collection
```yaml ```yaml
#Waste Collection - London Borough of Bromley #Waste Collection - London Borough of Bromley
@@ -752,54 +758,7 @@ waste_collection_schedule:
args: args:
url: YOUR_URL url: YOUR_URL
version: 2 version: 2
```
sensor:
#Food Waste
- platform: waste_collection_schedule
source_index: 0
name: Bins - Food Waste Collection # Change this to whatever you want the UI to display, sensor name will be similar
types:
- Food Waste
details_format: appointment_types
value_template: "{% if value.daysTo == 0 %}Today{% elif value.daysTo == 1 %}Tomorrow{% else %}in {{value.daysTo}} days{% endif %}"
#Garden Waste
- platform: waste_collection_schedule
source_index: 0
name: Bins - Garden Waste Collection # Change this to whatever you want the UI to display, sensor name will be similar
types:
- Garden Waste
details_format: appointment_types
value_template: "{% if value.daysTo == 0 %}Today{% elif value.daysTo == 1 %}Tomorrow{% else %}in {{value.daysTo}} days{% endif %}"
#Mixed Recycling
- platform: waste_collection_schedule
source_index: 0
name: Bins - Mixed Recycling Collection # Change this to whatever you want the UI to display
types:
- Mixed Recycling
details_format: appointment_types
value_template: "{% if value.daysTo == 0 %}Today{% elif value.daysTo == 1 %}Tomorrow{% else %}in {{value.daysTo}} days{% endif %}"
#General Waste
- platform: waste_collection_schedule
source_index: 0
name: Bins - General Waste Collection # Change this to whatever you want the UI to display
types:
- General Waste
details_format: appointment_types
value_template: "{% if value.daysTo == 0 %}Today{% elif value.daysTo == 1 %}Tomorrow{% else %}in {{value.daysTo}} days{% endif %}"
#Paper & Cardboard
- platform: waste_collection_schedule
source_index: 0
name: Bins - Cardboard Collection # Change this to whatever you want the UI to display
types:
- Cardboard
details_format: appointment_types
value_template: "{% if value.daysTo == 0 %}Today{% elif value.daysTo == 1 %}Tomorrow{% else %}in {{value.daysTo}} days{% endif %}"
```
*** ***
@@ -830,4 +789,4 @@ waste_collection_schedule:
regex: "(.*)\s+\|" regex: "(.*)\s+\|"
``` ```
*** ***

View File

@@ -15,10 +15,10 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**customer**<br> **customer**
*(string) (required)* *(string) (required)*
**zone**<br> **zone**
*(string) (required)* *(string) (required)*
## Example ## Example

View File

@@ -16,13 +16,13 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**suburb**<br> **suburb**
*(string) (required)* *(string) (required)*
**street_name**<br> **street_name**
*(string) (required)* *(string) (required)*
**street_number**<br> **street_number**
*(string) (required)* *(string) (required)*
## Example ## Example

View File

@@ -15,10 +15,10 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**street**<br> **street**
*(string) (required)* *(string) (required)*
**suburb**<br> **suburb**
*(string) (required)* *(string) (required)*
## Example ## Example

View File

@@ -16,13 +16,13 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**service_id**<br> **service_id**
*(string) (required)* *(string) (required)*
**city_id**<br> **city_id**
*(string) (required)* *(string) (required)*
**area_id**<br> **area_id**
*(string) (required)* *(string) (required)*
## Example ## Example

View File

@@ -14,7 +14,7 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**abf_suche**<br> **abf_suche**
*(string) (required)* *(string) (required)*

View File

@@ -14,7 +14,7 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**uprn**<br> **uprn**
*(string) (required)* *(string) (required)*
## Example using UPRN ## Example using UPRN

View File

@@ -17,16 +17,16 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**post_code**<br> **post_code**
*(string) (required)* *(string) (required)*
**suburb**<br> **suburb**
*(string) (required)* *(string) (required)*
**street_name**<br> **street_name**
*(string) (required)* *(string) (required)*
**street_number**<br> **street_number**
*(string) (required)* *(string) (required)*
## Example ## Example

View File

@@ -16,13 +16,13 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**city**<br> **city**
*(string) (required)* *(string) (required)*
**street**<br> **street**
*(string) (required)* *(string) (required)*
**number**<br> **number**
*(string) (required)* *(string) (required)*
## How to get the source arguments ## How to get the source arguments

View File

@@ -22,12 +22,12 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**district** and **city** can be used independently, they can also be omitted to get the calender for the whole rural district. **district** and **city** can be used independently, they can also be omitted to get the calendar for the whole rural district.
**district**<br> **district**
*(string)* *(string)*
**street**<br> **street**
*(string)* *(string)*
## Example ## Example

View File

@@ -16,10 +16,10 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**city**<br> **city**
*(string) (required)* *(string) (required)*
**street**<br> **street**
*(string) (optional)* *(string) (optional)*
## Example ## Example

View File

@@ -14,7 +14,7 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**street_address**<br> **street_address**
*(string) (required)* *(string) (required)*
## Example ## Example

View File

@@ -17,22 +17,22 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**uprn**<br> **uprn**
*(string) (optional)* *(string) (optional)*
This is required if you do not supply any other options. (Using this removes the need to do an address look up web request) This is required if you do not supply any other options. (Using this removes the need to do an address look up web request)
**name**<br> **name**
*(string) (optional)* *(string) (optional)*
This is required if you supply a Postcode and do not have a house number. This is required if you supply a Postcode and do not have a house number.
**number**<br> **number**
*(string) (optional)* *(string) (optional)*
This is required if you supply a Postcode and have a house number. This is required if you supply a Postcode and have a house number.
**post_code**<br> **post_code**
*(string) (optional)* *(string) (optional)*
This is required if you do not supply a UPRN. Single space between 1st and 2nd part of postcode is optional. This is required if you do not supply a UPRN. Single space between 1st and 2nd part of postcode is optional.

View File

@@ -15,7 +15,7 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**city**<br> **city**
*(string) (required)* *(string) (required)*
Choose one of the following list: Choose one of the following list:

View File

@@ -14,7 +14,7 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**location**<br> **location**
*(string) (required)* *(string) (required)*
## How to get the source arguments ## How to get the source arguments

View File

@@ -16,7 +16,7 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**uprn**<br> **uprn**
*(string) (required)* *(string) (required)*
## Example ## Example

View File

@@ -14,7 +14,7 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**address**<br> **address**
*(string) (required)* *(string) (required)*
## Example ## Example

View File

@@ -14,7 +14,7 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**street_address**<br> **street_address**
*(string) (required)* *(string) (required)*
## Example ## Example

View File

@@ -14,7 +14,7 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**uprn**<br> **uprn**
*(string) (required)* *(string) (required)*
## Example using UPRN ## Example using UPRN

View File

@@ -16,7 +16,7 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**street_address**<br> **street_address**
*(string) (required)* *(string) (required)*
## Example ## Example

View File

@@ -14,7 +14,7 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**street_address**<br> **street_address**
*(string) (required)* *(string) (required)*
## Example ## Example

View File

@@ -17,16 +17,16 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**service**<br> **service**
*(string) (required)* *(string) (required)*
**mm_frm_ort_sel**<br> **mm_frm_ort_sel**
*(string) (optional)* *(string) (optional)*
**mm_frm_str_sel**<br> **mm_frm_str_sel**
*(string) (optional)* *(string) (optional)*
**mm_frm_hnr_sel**<br> **mm_frm_hnr_sel**
*(string) (optional)* *(string) (optional)*
## Example ## Example

View File

@@ -17,13 +17,13 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**suburb**<br> **suburb**
*(string) (required)* *(string) (required)*
**street_name**<br> **street_name**
*(string) (required)* *(string) (required)*
**street_number**<br> **street_number**
*(string) (optional)* *(string) (optional)*
Only required if the street crosses multiple collection areas with different days. Only required if the street crosses multiple collection areas with different days.

View File

@@ -16,7 +16,7 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**uprn**<br> **uprn**
*(string) (required)* *(string) (required)*
This is required to unambiguously identify the property. This is required to unambiguously identify the property.

View File

@@ -16,7 +16,7 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**uprn**<br> **uprn**
*(string) (required)* *(string) (required)*
## Example ## Example

View File

@@ -17,10 +17,10 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**postcode**<br> **postcode**
*(string) (required)* *(string) (required)*
**uprn**<br> **uprn**
*(string) (required)* *(string) (required)*
## Examples ## Examples

View File

@@ -17,22 +17,22 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**uprn**<br> **uprn**
*(string) (optional)* *(string) (optional)*
This is required if you do not supply any other options. (Using this removes the need to do an address look up web request) This is required if you do not supply any other options. (Using this removes the need to do an address look up web request)
**name**<br> **name**
*(string) (optional)* *(string) (optional)*
This is required if you supply a Postcode and do not have a house number. This is required if you supply a Postcode and do not have a house number.
**number**<br> **number**
*(string) (optional)* *(string) (optional)*
This is required if you supply a Postcode and have a house number. This is required if you supply a Postcode and have a house number.
**post_code**<br> **post_code**
*(string) (optional)* *(string) (optional)*
This is required if you do not supply a UPRN. Single space between 1st and 2nd part of postcode is optional. This is required if you do not supply a UPRN. Single space between 1st and 2nd part of postcode is optional.

View File

@@ -16,13 +16,13 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**house_number**<br> **house_number**
*(integer) (required)* *(integer) (required)*
**street_name**<br> **street_name**
*(string) (required)* *(string) (required)*
**zipcode**<br> **zipcode**
*(integer) (required)* *(integer) (required)*
## Example ## Example

View File

@@ -19,19 +19,19 @@ The source arguments are simply the values of the form elements on the homepage.
### Configuration Variables ### Configuration Variables
**postcode**<br> **postcode**
*(int)* *(int)*
Postal Code. Postal Code.
**street**<br> **street**
*(string)* *(string)*
Street name. Street name.
**house_number**<br> **house_number**
*(int)* *(int)*
House number House number
**add_events**<br> **add_events**
*(boolean)* *(boolean)*
Add events (e.g. Repair Cafe) in addition to waste collections. Add events (e.g. Repair Cafe) in addition to waste collections.

View File

@@ -15,10 +15,10 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**email**<br> **email**
*(string) (required)* *(string) (required)*
**password**<br> **password**
*(string) (required)* *(string) (required)*
## Example ## Example

View File

@@ -16,13 +16,13 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**city**<br> **city**
*(string) (required)* *(string) (required)*
**street**<br> **street**
*(string) (required)* *(string) (required)*
**house_number**<br> **house_number**
*(string | number) (required)* *(string | number) (required)*
## Example ## Example

View File

@@ -14,7 +14,7 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**street_address**<br> **street_address**
*(string) (required)* *(string) (required)*
## Example ## Example

View File

@@ -17,16 +17,16 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**city**<br> **city**
*(string) (required)* *(string) (required)*
**street**<br> **street**
*(string) (required)* *(string) (required)*
**house_number**<br> **house_number**
*(integer) (required)* *(integer) (required)*
**address_suffix**<br> **address_suffix**
*(string) (optional) (default: "")* *(string) (optional) (default: "")*
## Example ## Example

View File

@@ -15,7 +15,7 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**UPRN**<br> **UPRN**
*(integer) (required)* *(integer) (required)*
## Example ## Example

View File

@@ -14,7 +14,7 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**uprn**<br> **uprn**
*(string) (required)* *(string) (required)*
## Example ## Example

View File

@@ -16,13 +16,13 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**city**<br> **city**
*(string) (required)* *(string) (required)*
**district**<br> **district**
*(string) (required)* *(string) (required)*
**street**<br> **street**
*(string) (required)* *(string) (required)*
## Example ## Example

View File

@@ -17,10 +17,10 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**POST_CODE**<br> **POST_CODE**
*(string) (required)* *(string) (required)*
**NUMBER**<br> **NUMBER**
*(string) (required)* *(string) (required)*
## Example ## Example

View File

@@ -15,10 +15,10 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**street_address**<br> **street_address**
*(string) (required)* *(string) (required)*
**prem_code**<br> **prem_code**
*(string) (optional)* *(string) (optional)*
## Example ## Example

View File

@@ -19,10 +19,10 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**city**<br> **city**
*(string) (required)* *(string) (required)*
**street**<br> **street**
*(string) (required)* *(string) (required)*
## Example ## Example

View File

@@ -14,7 +14,7 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**uprn**<br> **uprn**
*(string) (optional) (preferred method)* *(string) (optional) (preferred method)*
This is required if you do not supply any other options. Using a UPRN removes the need to do an address look up using web requests. This is required if you do not supply any other options. Using a UPRN removes the need to do an address look up using web requests.

View File

@@ -14,7 +14,7 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**street_address**<br> **street_address**
*(string) (required)* *(string) (required)*
## Example ## Example

View File

@@ -14,7 +14,7 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**street**<br> **street**
*(string) (required)* *(string) (required)*
## How to get the source arguments ## How to get the source arguments

View File

@@ -14,7 +14,7 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**standort**<br> **standort**
*(string) (required)* *(string) (required)*
## Example ## Example

View File

@@ -14,7 +14,7 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**hnId**<br> **hnId**
*(string) (required)* *(string) (required)*
## Example ## Example

View File

@@ -15,10 +15,10 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**street**<br> **street**
*(string) (required)* *(string) (required)*
**house_number**<br> **house_number**
*(string) (required)* *(string) (required)*
## Example ## Example

View File

@@ -15,10 +15,10 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**city**<br> **city**
*(string) (required)* *(string) (required)*
**street_number**<br> **street_number**
*(string) (required)* *(string) (required)*
## Example ## Example

View File

@@ -20,40 +20,40 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**TYPE**<br> **TYPE**
*(string) (required)* *(string) (required)*
The type of this source. The type of this source.
**DATES**<br> **DATES**
*(list) (optional)* *(list) (optional)*
A list of dates in format "YYYY-MM-DD" which should be added to the source. A list of dates in format "YYYY-MM-DD" which should be added to the source.
Dates defined in this list will be added in addition to calculated dates from the recurrence and will not be affected by the exclude-list. Dates defined in this list will be added in addition to calculated dates from the recurrence and will not be affected by the exclude-list.
**FREQUENCY**<br> **FREQUENCY**
*(string) (optional)* *(string) (optional)*
Defines the frequency of the recurrence. Must be one of "DAILY", "WEEKLY", "MONTHLY" or "YEARLY". Defines the frequency of the recurrence. Must be one of "DAILY", "WEEKLY", "MONTHLY" or "YEARLY".
**INTERVAL**<br> **INTERVAL**
*(int) (optional, default: ```1```)* *(int) (optional, default: ```1```)*
Defines the interval of the recurrence. Defines the interval of the recurrence.
**START**<br> **START**
*(string) (optional)* *(string) (optional)*
Defines the start of the recurrence in the format "YYYY-MM-DD". Defines the start of the recurrence in the format "YYYY-MM-DD".
Required if *FREQUENCY* is set. Required if *FREQUENCY* is set.
**UNTIL**<br> **UNTIL**
*(string) (optional)* *(string) (optional)*
Defines the end of the recurrence in the format "YYYY-MM-DD". Defines the end of the recurrence in the format "YYYY-MM-DD".
Required if *FREQUENCY* is set. Required if *FREQUENCY* is set.
**EXCLUDES**<br> **EXCLUDES**
*(list) (optional)* *(list) (optional)*
A list of dates in format "YYYY-MM-DD" which should be excluded from the recurrence. A list of dates in format "YYYY-MM-DD" which should be excluded from the recurrence.

View File

@@ -15,12 +15,12 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**postcode**<br> **postcode**
*(string) (required)* *(string) (required)*
Postcode of property. This is required. Stevenage Borough Council API does not support UKPRN. Single space between 1st and 2nd part of postcode is optional. Postcode of property. This is required. Stevenage Borough Council API does not support UKPRN. Single space between 1st and 2nd part of postcode is optional.
**road**<br> **road**
*(string) (required)* *(string) (required)*
Name of road property is in. This is required. Name of road property is in. This is required.

View File

@@ -14,7 +14,7 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**street_address**<br> **street_address**
*(string) (required)* *(string) (required)*
## Example ## Example

View File

@@ -15,10 +15,10 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**street**<br> **street**
*(string) (required)* *(string) (required)*
**streetnr**<br> **streetnr**
*(string) (required)* *(string) (required)*
## Example ## Example

View File

@@ -14,7 +14,7 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**street_address**<br> **street_address**
*(string) (required)* *(string) (required)*
## Example ## Example

View File

@@ -14,7 +14,7 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**POSTCODE**<br> **POSTCODE**
*(string) (required)* *(string) (required)*

View File

@@ -16,13 +16,13 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**suburb**<br> **suburb**
*(string) (required)* *(string) (required)*
**street**<br> **street**
*(string) (required)* *(string) (required)*
**houseNo**<br> **houseNo**
*(string) (required)* *(string) (required)*
## Example ## Example

View File

@@ -14,7 +14,7 @@ waste_collection_schedule:
### Configuration Variables ### Configuration Variables
**street_address**<br> **street_address**
*(string) (required)* *(string) (required)*
## Example ## Example

Some files were not shown because too many files have changed in this diff Show More