This sensor custom component for HomeAssistant shows the next waste/recycling goods collection dates for Zürich, Switzerland.
The data is provided by the open data portal of City of Zurich: https://data.stadt-zuerich.ch/
For details about the API, refer to: http://openerz.metaodi.ch/documentation
Thanks to @metaodi for providing the API.
Name | Type | Requirement | Description |
---|---|---|---|
zip | integer | Required | The zip code for the collection |
tour | string | Optional | Label for the tour if there's more than one waste collection tour for that zip code |
name | string | Optional | zurich_erz |
cardboard | boolean | Optional | Shows the next cardboard collection date (default: false) |
cargotram | boolean | Optional | Shows the next cargotram date (default: false) |
etram | boolean | Optional | Shows the next etram date (default: false) |
metal | boolean | Optional | Show the next metal collection date (default: false) |
organic | boolean | Optional | Show the next organic waste collection date (default: false) |
paper | boolean | Optional | Show the next paper collection date (default: false) |
special | boolean | Optional | Show the next special waste collection date (default: false) |
textile | boolean | Optional | Show the next textile collection date (default: false) |
waste | boolean | Optional | Show the next general waste collection date (default: false) |
scan_interval | number | Optional | Scan interval to update the sensor |
Save sensor.py
to <config directory>/custom_components/zurich_erz/sensor.py
Add to the configuration yaml file:
sensor:
- platform: zurich_erz
zip: 8000
scan_interval: 86400
cardboard: true
cargotram: true
etram: true
metal: true
organic: true
paper: true
special: true
textile: true
waste: true
Restart HomeAssistant