Git Product home page Git Product logo

awb's Introduction

DEPRECATED

hacs_badge

Home Assistant sensor for german AWB waste collection schedule

Installation:

Hacs

Search for awb in hacs integrations, install and restart home assistant

Manual

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

Discussion

https://community.home-assistant.io/t/awb-waste-collection-schedule/140486

Functionality

The sensor shows the bin which will be collected the next day. The complete collection schedule is available as attributes of the sensor. Optionally, the collection of the current day can be selected by setting day: today

alt text

alt text

Configuration

Find street number and street code:

https://www.offenedaten-koeln.de/dataset/strassenverzeichnis
Strassenverzeichnis Standard 2015 -> Vorschau

Domkloster 4, 50667 Köln:

street_code: 745
street_number: 4

sensor

- platform: awb
  name: awb
  scan_interval: 3600
  street_code: 745
  street_number: 4
  day: tomorrow

customize

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

automation

- alias: AWB 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.awb.state != 'Keine') and (states.sensor.awb.state != 'unknown') }}"
  action:
    - service: notify.my_telegram
      data_template:
        message: "{{ states.sensor.awb.name }}: {{  states.sensor.awb.state }}"

awb's People

Contributors

gitolicious avatar jensweimann avatar tuxuser avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

salva19

awb's Issues

Component based off of yours

Hi Jens,

Maybe you noticed the fork / derivate of your custom component:

https://github.com/tuxuser/abfallapi_regioit_ha

I gave proper attributions everywhere but just wanted to make sure: Is it okay like this - or did I forget something or something else you might want to have changed?

PS: Thanks for your prior work, it made porting really easy ;)

best regards

Time and Customize

Hello Jens,

i use Home Assistant 0.102.3
in automation:
- platform: time
at: "18:00:00"
does not work for me.
I changed it to:
- platform: time_pattern
hours: '18'
minutes: '45'
seconds: '11'
This works. Untestet with '00'.

Where do i have to put the customize informations?
When i put it in customize.yaml, included the file and restart, i got this error:
Component error: customize - Integration 'customize' not found.
i cant use friendly_name: in sensor

Domkloster 4 is a nice example for the address ;-)

Cheers

Error while setting up awb platform for sensor

Hi jens.

Würde mich gern an deinem Sensor bedienen. Leider kommt immer folgender Fehler nachdem ich den Sensor definiert habe:


Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 197, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/awb/sensor.py", line 58, in setup_platform
    add_devices([AwbSensor(config.get(CONF_NAME), config.get(CONF_STREET_CODE), config.get(CONF_STREET_NUMBER), config.get(CONF_DAY), value_template)])
  File "/config/custom_components/awb/sensor.py", line 73, in __init__
    self.update()
  File "/config/custom_components/awb/sensor.py", line 116, in update
    trashdates = value_json['trashdates']['trashdate']
TypeError: list indices must be integers or slices, not str

Muss ich noch weitere Programme installieren? Danke im voraus. ;)

t0kn4r

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.