Git Product home page Git Product logo

hass-aarhus-waste's Introduction

Homeassistant Waste Collection Aarhus

This repo shows how to integrate the waste collection schedule for properties in Aarhus into Homeassistant. It fetches the schedule from Kredsløb which exposes the schedules for the categories (Category names in Danish):

  • Restaffald, madaffald
  • Pap, Papir, tekstil
  • Glas, Metal, Plast, Mad- og drikkekartoner

The webpage exposes an API which is used by this integration.

The script runs 4 times a day, since the schedule is not expected to update often. Initially it only ran once, however this meant that if it ran in the evening, the following day the schedule would be off until the evening. In order to change the frequency, update the scan_interval field which should be in seconds.

How to

In order to make the script work, the first step is to identify the KVHX number for the given property. There is a utility script in this repo called get_kvhx.py which helps to identify the value, by looking up the property in DAWA.

>>> python get_kvhx.py "Tranekærvej 58, 8240"
Match: Tranekærvej 58, 8240
KVHX: 07518746__58_______

Copy the KVHX number and insert it into the sensor.yaml file under the resource as:

resource: https://portal-api.kredslob.dk/api/calendar/address/07518746__58_______

This should be done three times, as there are three sensors.

Next step is to copy the sensor.yaml file into your Homeassistant configuration directory, typically ~/.homeassistant and add the following line to configuration.yaml:

sensor: !include sensor.yaml

hass-aarhus-waste's People

Contributors

kvedes avatar

Stargazers

DIY techie avatar  avatar  avatar Simon Bach  avatar Poul Bundgaard avatar

Watchers

Poul Bundgaard avatar  avatar  avatar Simon Bach  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.