Giter Club home page Giter Club logo

abfallapi_regioit_ha's Introduction

hacs_badge

Home Assistant sensor for german waste collection schedule (regioIT API)

Functionality

The sensor shows the bin which will be collected the next day. The complete collection schedule is available as attributes of the sensor

Supported services:

  • Bergisch Gladbach (AWB / Neuenhaus)
  • Lindlar
  • ZEW
  • Dinslaken
  • Pinneberg
  • Lüdenscheid
  • Bergischer Abfallwirtschaftverbund
  • WML
  • KRWAF AWG / GEG
  • Aachen
  • Dorsten
  • Gütersloh
  • Halver
  • Coesfeld
  • Norderstedt

alt text

alt text

Credits

Based on AWB Köln Home Assistant sensor by jensweimann

Installation

Manual

Copy all files from custom_components/abfallapi_regioit/ to custom_components/abfallapi_regioit/ inside your config Home Assistant directory.

HACS

Search for Abfall API (RegioIT) in HACS -> Integrations. Install the integration and restart home assistant.

Discussion

Home Assistant Community Forum

Configuration

Setup sensor

- platform: abfallapi_regioit
  name: muellabfuhr
  scan_interval: 3600
  anbieter_id: KRWAF
  ort: 'Ahlen'
  strasse: 'Abtstraße'

Customize

sensor.muellabfuhr:
  friendly_name: Heute Mülltonne rausstellen
  icon: mdi:delete

Automation

- alias: Abfall Notification
  trigger:
    - platform: time
      at: "18:00:00"
    - entity_id: binary_sensor.someone_is_home
      from: 'off'
      platform: state
      to: 'on'
  condition:
    - condition: and
      conditions:
      - condition: time
        after: '09:00:00'
      - condition: time
        before: '23:00:00'
      - condition: template
        value_template: "{{ (states.sensor.muellabfuhr.state != 'Keine') and (states.sensor.muellabfuhr.state != 'unknown') }}"
  action:
    - service: notify.my_telegram
      data_template:
        message: "{{ states.sensor.muellabfuhr.state }}"

Find anbieter_id

BASE_URL can be found in regioit_abfall_api.py -> CITIES

anbieter_id: KRWAF

Verify names for strasse and ort

GET https://<BASE_URL>/rest/orte

Example output:

[
 {"id":3839714,"name":"Ahlen"},
 {"id":3840376,"name":"Beckum"},
 ...
]

GET http://<BASE_URL>/rest/orte/<ort_id>/strassen

Example output:

[
 {"id":3839716,"name":"Abtstraße","hausNrList":[],"ort":{"id":3839714,"name":"Ahlen"}},
 {"id":3839725,"name":"Agnes-Miegel-Straße","hausNrList":[],"ort":{"id":3839714,"name":"Ahlen"}},
 ...
]

DISCLAIMER

This project is in no way endorsed by or affiliated with regioIT, or any associated subsidiaries, logos or trademarks.

abfallapi_regioit_ha's People

Contributors

tuxuser 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.