Skip to content

Conversation

@yachoo2606
Copy link

New source: KOM-LUB (Luboń, Poland)

This PR adds a new waste collection source for KOM-LUB (Luboń, PL).

The source scrapes the official waste collection schedules published by the municipal waste operator on:

https://kom-lub.com.pl/aktualny-harmonogram-wywozow/


Features

  • Supports all districts R I – R VII (configured as district: 1..7)
  • Automatically loads all currently published quarters
  • Parses all waste fractions:
    • Mixed
    • Glass
    • Plastics
    • Paper
    • Bulky
    • Bio
  • Adds Home Assistant MDI icons per fraction
  • Provides GUI configuration with:
    • District selector (1–7)
    • Polish instructions on how to find the correct district
  • Includes test cases for all districts
  • Uses proper WCS exceptions for argument validation and fetch errors

Configuration example

waste_collection_schedule:
  sources:
    - name: kom_lub_com_pl
      args:
        district: 1

…able). Updated info.md and README.md and sources.json (autogenerated)
@yachoo2606 yachoo2606 changed the title added a source for kom-lub.com.pl with scraping a site (api not avail… New Source: added a source for kom-lub.com.pl with scraping a site (api not avail… Jan 20, 2026
yachoo2606 and others added 20 commits February 10, 2026 21:13
Comment out the HOW_TO_GET_ARGUMENTS_DESCRIPTION for clarity.
Updated HTTP headers to resolve 403 Forbidden errors from Akamai bot
protection. This follows the same pattern used in PR mampfes#5230 for Blacktown NSW.

Changes:
- Updated User-Agent to modern Chrome version
- Set Accept header to text/plain with quality parameter
- Added Referer header pointing to the waste collection page
- Added X-Requested-With header for AJAX identification

All test cases now pass successfully.
* Use afvalstoffendienst API for collections

* Add files via upload

* Correct address formatting in test cases

* Increment minor version in const.py

* Migrate afvalstoffendienst_nl by dropping 'region' arg

Remove deprecated 'region' argument for afvalstoffendienst_nl if version conditions are met.

* Remove default_params 'region'

Removed default parameters for 's-Hertogenbosch' in sources.json.

* ./update_docu_links.py

---------

Co-authored-by: 5ila5 <[email protected]>
* Added City of Subiaco, Western Australia as a source.

* Changes to be committed:
	modified:   waste_collection_schedule/waste_collection_schedule/source/subiaco_wa_gov_au.py

* ./update_docu_links.py
Fix API Access Denied error
…hassfest compliance

- Extract URLs from translation strings using regex replacement
- Generate source_metadata.json with docs URLs and howto texts
- Implement description_placeholders injection in config_flow.py
- Update all translation files (en, de, it, fr) with placeholders
- Harmonize JSON loading patterns with consistent error handling

Fixes hassfest validation error about URLs in translation files.
Documentation links remain accessible to users via description_placeholders.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants