Skip to content

Get waste/recycling collection dates for Zürich, Switzerland in Home Assistant

Notifications You must be signed in to change notification settings

lyynxx/zurich_erz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

zurich_erz

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.

Options

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

Installation

Step 1

Save sensor.py to <config directory>/custom_components/zurich_erz/sensor.py

Step 2

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

Step 3

Restart HomeAssistant

About

Get waste/recycling collection dates for Zürich, Switzerland in Home Assistant

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages