Giter Club home page Giter Club logo

abfallplus's Introduction

Hi there 👋 I'm bouni

Visits Badge GitHub User's stars GitHub followers Twitter Badge Mastodon Badge

Top projects 🤩

My stats 🚀

Bouni's GitHub Stats

Bouni's Most used languages

Support me ☕

abfallplus's People

Contributors

bouni avatar dielee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

dielee

abfallplus's Issues

Only one Trash entry allowed?

Hay,

how could I create multiple entries?
I have Bio Waste, Paper, ...

Next ist how can I find the filter Patterns?

Thx

No longer in Hacs

Hi,

the repo is no longer available in HACS
Could you make it available again?

Thanks
Michael

Error: Expected int for street

Hi,
I get the following error when entering my data:
Invalid config for [sensor.abfallplus]: expected int for dictionary value @ data['street']. Got '2593bauernschaften'. (See /config/configuration.yaml, line 66). Please check the docs at https://github.com/Bouni/abfallplus

My configuration:

  - platform: abfallplus
    name: "Restmuell"
    key: e21758b9c711463552fb9c70ac7d4273
    municipality: 2593
    street: 2593bauernschaften
    trash_ids: "161, 53, 31, 169"

According to Payload it is the right street:
image

Version: 0.1.4

regards

Weekdays translation

First of all this thing is great!

But is there any way to translate the weekday to german?

No data for specific waste type

Hi,

Thanks for the API, unfortunately it's not working flawless for all types at my region: https://www.landkreis-bautzen.de/entsorgungstermine.php

Example stack for a not working case

11b7cdb0d1f7e0db19d4a420c13a7bda: 154c978ac61a3d40cd83bbcc117366a0
f_id_kommune: 4152
f_posts_json[]: a:4:{s:32:"11b7cdb0d1f7e0db19d4a420c13a7bda";s:32:"154c978ac61a3d40cd83bbcc117366a0";s:12:"f_id_kommune";s:4:"4152";s:12:"f_posts_json";a:0:{}s:11:"f_id_bezirk";s:1:"0";}
f_id_strasse: 929
f_posts_json[]: a:4:{s:32:"11b7cdb0d1f7e0db19d4a420c13a7bda";s:32:"154c978ac61a3d40cd83bbcc117366a0";s:12:"f_id_kommune";s:4:"4152";s:12:"f_posts_json";a:0:{}s:12:"f_id_strasse";s:3:"929";}
f_id_abfalltyp_3: 67
f_abfallarten_index_max: 5
f_posts_json[]: a:9:{s:32:"11b7cdb0d1f7e0db19d4a420c13a7bda";s:32:"154c978ac61a3d40cd83bbcc117366a0";s:12:"f_id_kommune";s:4:"4152";s:12:"f_posts_json";a:2:{i:0;s:170:"a:4:{s:32:"11b7cdb0d1f7e0db19d4a420c13a7bda";s:32:"154c978ac61a3d40cd83bbcc117366a0";s:12:"f_id_kommune";s:4:"4152";s:12:"f_posts_json";a:0:{}s:11:"f_id_bezirk";s:1:"0";}";i:1;s:173:"a:4:{s:32:"11b7cdb0d1f7e0db19d4a420c13a7bda";s:32:"154c978ac61a3d40cd83bbcc117366a0";s:12:"f_id_kommune";s:4:"4152";s:12:"f_posts_json";a:0:{}s:12:"f_id_strasse";s:3:"929";}";}s:12:"f_id_strasse";s:3:"929";s:16:"f_id_abfalltyp_3";s:2:"67";s:23:"f_abfallarten_index_max";s:1:"5";s:13:"f_abfallarten";s:6:"67,654";s:10:"f_zeitraum";s:17:"20220101-20221231";s:12:"f_export_als";s:148:"{'action':'https://api.abfall.io/?key=b3304e680c87061e9bc316acec33c80c&modus=d6c5855a62cf32a4dadbc2831f0f295f&waction=export_pdf','target':'_blank'}";}
f_abfallarten: 67
f_zeitraum: 20220101-20221231
f_export_als: {'action':'https://api.abfall.io/?key=b3304e680c87061e9bc316acec33c80c&modus=d6c5855a62cf32a4dadbc2831f0f295f&waction=export_csv','target':''}

The sensor didn't get any data:

  - platform: abfallplus
    name: Schwarze Tonne
    key: b3304e680c87061e9bc316acec33c80c
    municipality: 4152
    street: 929
    trash_ids: "67"
    pattern: Schwarze Tonne

How to configure

Hi,
I was able to get all the IDs and stuff but I can't get the config right. Could you please instruct how to setup this custom component?
Simply adding the yaml code you have on your README won't work.

Thanks a lot

2023.6.01 Home Assistant Update

After the update (https://www.home-assistant.io/blog/2023/06/07/release-20236/) I get following Error:

Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht

Logger: homeassistant.loader
Source: custom_components/abfallplus/sensor.py:61
Integration: abfallplus (documentation, issues)
First occurred: 09:38:16 (4 occurrences)
Last logged: 09:38:16

Unexpected exception importing platform custom_components.abfallplus.sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/loader.py", line 833, in get_platform
    cache[full_name] = self._import_platform(platform_name)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 850, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/config/custom_components/abfallplus/sensor.py", line 61, in <module>
    @asyncio.coroutine
     ^^^^^^^^^^^^^^^^^
AttributeError: module 'asyncio' has no attribute 'coroutine'

Maybe it can be fixed with PR #14 ?

Still working?

Hi
Abfallplus is not available in HACS.
Therefore I tried to install manually and followed the install instructions.

I also implement the part in configuration.yaml, following your example.

AbfallPlus:
platform: abfallplus
name: Bio
key: 5b0384147b5bc055c30fee1fb6db6f76
municipality: 270
street: 15720
trash_ids: 51

Now I get all the time the error ....
The following integrations and platforms could not be set up:

Is my config wrong, or is api.abfallpluss no more up and running.

TX in advance

Sensor state unknown

I configured the component as described, but my sensors show state "Unbekannt" (unknown).
There are not error notifications in HA. Is there a possibility to see some debug logs?

Screenshot_2023-10-29-10-43-59-712_io homeassistant companion android-edit

My config looks like:

- platform: abfallplus
  name: Gelber Sack
  key: e5543a3e190cb8d91c645660ad60965f
  municipality: 3707
  street: 241756
  trash_ids: "695"
  pattern: müll

I assume that my sensor configs are valid, because I just ran parts of your Python Code in visual studio and saw that the ICS file could be downloaded and contains the trash dates.

Is it possible to use this for the Landkreis Vechta?

The AWV (Abfallwirtschaft Vechta) uses Abfallplus somehow, however it uses it's own App.
I can not use the original Abfallplus app and it prompts me to use the AWV app instead if I try.
Is it still possible to use this integration with it? Since I can not get the required IDs.
AWV Website

Thanks in advance

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.