New source: BIR (#1397)

* New source: BIR

* bir_no improvements

---------

Co-authored-by: 5ila5 <5ila5@users.noreply.github.com>
This commit is contained in:
odin-h
2023-11-09 13:05:24 +01:00
committed by GitHub
parent 49c921418f
commit 70392d5636
4 changed files with 141 additions and 1 deletions

57
doc/source/bir_no.md Normal file
View File

@@ -0,0 +1,57 @@
# BIR - Bergensområdets Interkommunale Renovasjonsselskap
```yaml
waste_collection_schedule:
sources:
- name: bir_no
args:
street_name: ""
house_number: ""
house_letter: ""
```
### Configuration Variables
**street_name**
*(string) (required)*
**house_number**
*(string|Integer) (required)*
**house_letter**
*(string) (optional)*
The arguments should be written exactly like on the <https://bir.no/> website
# Example configuration.yaml:
```yaml
# Waste collection
waste_collection_schedule:
sources:
- name: bir_no
args:
street_name: "Alf Bondes Veg"
house_number: "13"
house_letter: "B"
customize:
- type: blue bin
alias: Papir
- type: green bin
alias: Restavfall
# Optional Sensors
sensor:
- platform: waste_collection_schedule
name: next_collection
- platform: waste_collection_schedule
name: waste_collection_garbage
details_format: upcoming
types:
- Restavfall
- platform: waste_collection_schedule
name: waste_collection_paper
details_format: upcoming
types:
- Papir og plastemballasje
```