Waste colection sensor unknown

I’ve been struggling with this add-on for several days now and I’m giving up. Please help, my sensors are constantly showing unknown status. Everything looks fine, all the files are in place. The data is correct, the addresses and so on, but the sensors are still down.

default_config:

=== INTEGRACJE SYSTEMOWE ===

stream:
ll_hls: true
part_duration: 0.75
segment_duration: 6

frontend:
themes: !include_dir_merge_named themes
extra_module_url:
- /hacsfiles/lovelace-card-mod/card-mod.js

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
intent_script: !include intent_scripts.yaml

http:
use_x_forwarded_for: true
trusted_proxies:
- XXX.XX.XX.0/XX

tts:

  • platform: google_translate

wake_on_lan:

=== HARMONOGRAM ODPADÓW (Backend) ===

waste_collection_schedule:
sources:
- name: ecoharmonogram_pl
args:
town: “Szczecin”
district: “Szczecin”
street: “Secret”
house_number: “Secret”
app: “szczecin”
additional_sides_matcher: “Zabudowa jednorodzinna”
fetch_time: “04:00”
day_switch_time: “10:00”

=== WSZYSTKIE SENSORY (Jeden blok) ===

sensor:

Time & Date

  • platform: time_date
    display_options:
    • ‘time’
    • ‘date’

Waste Collection Schedule

  • platform: waste_collection_schedule
    name: “Odpady Zmieszane”
    source_index: 0
    details_format: “upcoming”
    types: [“Odpady zmieszane”]

  • platform: waste_collection_schedule
    name: “Tworzywa i Metale”
    source_index: 0
    details_format: “upcoming”
    types: [“Tworzywa sztuczne i metale”]

  • platform: waste_collection_schedule
    name: “Papier”
    source_index: 0
    details_format: “upcoming”
    types: [“Papier”]

  • platform: waste_collection_schedule
    name: “Bioodpady”
    source_index: 0
    details_format: “upcoming”
    types: [“Bioodpady”]

=== KALENDARZ ===

calendar:

  • platform: waste_collection_schedule
    name: “Harmonogram Śmieci”

=== HELPERY ===

input_boolean:
xbox_active:
name: Xbox aktywny
initial: false
shield_active:
name: Shield aktywny
initial: false

=== TEMPLATE SENSORS ===

template:

  • sensor:
    • name: “Lights On Count”
      unique_id: lights_on_count_total
      state: “{{ states.light | selectattr(‘state’, ‘eq’, ‘on’) | list | count }}”

    • name: “Status Pogody”
      unique_id: weather_alert_status_extended
      state: >
      {% set weather = states(‘weather.forecast_home_2’) %}
      {% if weather in [‘lightning’, ‘lightning-rainy’] %} burza
      {% elif weather in [‘pouring’, ‘hail’] %} ulewa
      {% else %} ok {% endif %}

=== GRUPY ŚWIATEŁ ===

light:

  • platform: group
    name: “Światła Salon Poziom 0”
    entities:
    • light.lampatelewizor1
    • light.0xa4c1381c70547cbd
    • light.lampatelewizor3
    • light.lampatelewizor5

=== LOGGER ===

logger:
default: warning
logs:
homeassistant.components.mqtt.number: error
custom_components.waste_collection_schedule: debug

=== AI INTEGRATION ===

rest_command:
perplexity_ask:
url: “https://api.perplexity.ai/chat/completions
method: POST
headers:
Authorization: “Bearer TWOJ_KLUCZ_API_PERPLEXITY”
Content-Type: “application/json”
payload: >
{
“model”: “sonar”,
“messages”: [
{“role”: “system”, “content”: “Odpowiadaj krótko i konkretnie w języku polskim.”},
{“role”: “user”, “content”: “{{ question }}”}
]
}

Does the waste collection integration work in general, i.e. do you see the dates in the calendar?

Just to make sure there is no problem with the source of the data (in my case waste collection schedule is not working, which is a known issue for my location).

I seem to have the same problem. Even the bookmarks for rubbish collection were added automatically, but unfortunately the calendar is empty.

If the calendar does not show any waste collection dates, there might be problems with the WCS datasource. In this case, check the issues list on github if the problem for your specific location is already known.

I believe that is a custom integration, not an add-on. It was basically abandoned and it was suggested to use calendar.
I have not figured this out, so I just do other things (google calendar) to schedule my garbage day.

The releases suggest that this integration is still alive:

Issues are still getting resolved, so I don’t see this as abandoned.

If that’s the case, then raise an issue with that repo if there is a problem. The Home Assistant team will not be able to resolve an issue with their software.

@Sir_Goodenough I would venture it was “overwhelmed” rather than abandoned. There is enormous GitHub activity for the HACS add-on.

You need to create and continually update a custom script for every council, county, shire, and webpage, across the whole world!!!
Of course, each website created changes and the integration fails, yet again, until it gets the required attention to be reverse engineered, yet again.

Flame me if I’m wrong: If there is one integration that could do with severe help from artificial intelligence for maintenance of the code, this is one that could stand as a challenge, even if just to routinely verify each script is actually still working and flag them as such. Feeding in a list of all ‘bin collection/waste disposal’ providers internationally, and checking if the various screen scraper/API solutions used could be applied to them, and then offering a cookie cutter template for each would be a very good start.

Otherwise it is a reactive process, based on GitHub reports and requests, unsustainable due to volume.

@NoobABC - Where has your process broken? Has your local bin entity “Szczecin” changed their website? Has the Python code changed? Is there a network issue? Do you have a dashboard issue? There are so many things that need to go right for the entire process to work, not only in the first place, but smoothly afterwards.
What does your system log say?

Abandoned was a bit strong. I don’t have any malice here…
Let’s say the functionality in Calendar integration morphed a bit and it was possible to just use that rather than a side integration.
Maybe I’m thinking of another waste management program, because I was using one it it clearly told me it was being retired, uninstall it, use calendar. I had to remove the stuff from my system so it stopped complaining.

I still think that harnessing AI would be the way to solve that enormous coding load, not just adding new entities, but maintenance chores.
I can’t see global standardisation on the horizon for this anytime soon.

1 Like

I don’t know, I’m confused, where should it get the data for Szczecin, Poland? My sensors are dead; they are not collecting data provider: eco_harmonogram dosent work ??