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

pippyn/Home-Assistant-Sensor-Ophaalkalender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 

Repository files navigation

DEPRECATED - This sensor is now integrated in Afvalbeheer

install the afvalbeheer sensor and change your config. Example:

  sensor:
    - platform: afvalbeheer
      wastecollector: ophaalkalender
      resources:
        - restafval
        - gft
        - papier
        - pmd
        - grofafval
      postcode: ?
      streetname: ?
      streetnumber: ?

Original Readme:

Home Assisant sensor component for Afvalbeheer

Provides Home Assistant sensors for multiple Dutch waste collectors using REST API. This sensor works with the ophaalkalender.be waste collector.

Install:

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

Example config:

  sensor:
    - platform: ophaalkalender
      resources:
        - restafval
        - gft
        - papier
        - pmd
        - grofafval
      postcode: ?
      streetname: ?
      streetnumber: ?

Resources

resources:

This is a list of fractions you want a sensor for. At least one option is required. Resources options:

  • restafval
  • gft
  • papier
  • pmd
  • grofafval

Postcode

Postcode is required and is your own postcode

Street name

Street name is required and is your own street name

Street number

Street number is required and is your own street number

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-Afvalbeheer/master/custom_components.json