Skip to content
This repository has been archived by the owner on Apr 19, 2022. It is now read-only.

Provides sensors for the Dutch waste collector Groningen Afvalwijzer.

License

Notifications You must be signed in to change notification settings

pippyn/Home-Assistant-Sensor-Groningen-Afvalwijzer

Repository files navigation

DEPRECATED - This sensor is now integrated in Afvalbeheer

Home Assisant sensor component for Groningen Afvalwijzer

Provides Home Assistant sensors for the Dutch waste collector Groningen Afvalwijzer using a scraper.

alt text

Install:

  • Copy the files in the /custom_components/groningen_afvalwijzer/ folder to: [homeassistant]/config/custom_components/groningen_afvalwijzer/

Example config:

  sensor:
    - platform: groningen_afvalwijzer
      resources:                       # (at least 1 required)
        - restafval
        - papier
      postcode: 1111AA                 # (required)
      streetnumber: 1                  # (required)
      dateformat: '%d-%m'              # (optional)
      dateonly: 1                      # (optional)

Above example has 2 resources, but here is a complete list of available waste fractions:

  • restafval
  • papier
  • gft
  • kleding
  • kerstboom
  • chemokar
  • kleinchemisch

Date format

dateformat:

If you want to adjust the way the date is presented. You can do it using the dateformat option. All python strftime options should work. Default is '%d-%m-%Y', which will result in per example:

21-9-2019.

If you wish to remove the year and the dashes and want to show the name of the month abbreviated, you would provide '%d %b'. Which will result in:

21 Sep

Date only

dateonly: 1

If you don't want to add dayname, tomorrow or today in front of date activate this option. Default is 0.

Custom updater

You can use the custom updater with this sensor

Home assistant 88 and higher:

custom_updater:
  track:
    - components
  component_urls:
    - https://raw.githubusercontent.com/pippyn/Home-Assistant-Sensor-Groningen-Afvalwijzer/master/custom_components.json

Before Home assistant 88:

custom_updater:
  track:
    - components
  component_urls:
    - https://raw.githubusercontent.com/pippyn/Home-Assistant-Sensor-Groningen-Afvalwijzer/master/custom_components_old.json

About

Provides sensors for the Dutch waste collector Groningen Afvalwijzer.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages