Note
English version below.
Integracja do Home Assistant pobierająca harmonogram wywozu śmieci dla wybranego adresu obsługiwanego przez ProNatura (Bydgoszcz).
🔗 Strona harmonogramu wywozu odpadów
- Sensor per frakcja z datą najbliższego wywozu śmieci
- Możliwość konfiguracji wielu adresów (harmonogramów)
- Konfiguracja przeez Config Flow (Home Assistant UI)
- Wybór ulicy i adresu spośród listy pobieranej z ProNatura
- Implementacja napraw integracji, cache'owanie danych, możliwość pobierania danych diagnostycznych
Kliknij przycisk poniżej, aby otworzyć stronę integracji w HACS.
Możesz też ręcznie wyszukać integrację w HACS wpisując w wyszukiwarkę ProNatura lub ProNatura Garbage Collection Schedules.
- Pobierz najnowszy release.
- Skopiuj katalog
custom_components/pronaturado folderucustom_componentsw Home Assistant.
Jeżeli nie ma katalogucustom_components, załóż go ręcznie. Do skopiowania plików przydatny może okazać się dodatek Samba Share. - Zrestartuj Home Assistant.
- W Home Asisstant przejdź do Ustawienia → Urządzenia oraz Usługi → Dodaj integrację i znadź ProNatura.
- Wybierz ulicę, a następnie budynek.
- Potwierdź podsumowanie. Sensory zostały stworzone.
Każda frakcja odpadów znajdująca się w harmonogramie generuje dedyowany sensor, którego wartością jest data (date)
najbliższego dnia wywozu danej frakcji. Gdy w harmonogramie nie ma już kolejnej daty, sensor pokazuje status unknown.
W niektórych przypadkach harmonogram dla danej frakcji istnieje, ale jest pusty - w takim wypadku sensor jest tworzony,
ale jego status również będzie unknown.
Atrybuty:
full_address– Ulica + numer (lub nazwa) budynkufraction_name– nazwa frakcji (dostarczona przez API ProNatura)area- obszar wywozu śmieci wg ProNaturabuilding_type- typ budynku (np.MIESZKALNA,NIEMIESZKALNA)address_name- opcjonalne, dostępne gdy ProNatura dostarcza własną, dodatkową nazwę dla nieruchomościcollection_status- status odbioru:scheduled(zaplanowany) lubno_schedule(brak harmonogramu)days_until_collection- ilość dni do najbliższej daty wywozu frakcji (gdy brak daty:null)last_collection- data ostatniego odbioru frakcji wg harmonogramu
Dane z API odświeżane są raz na dobę, aby niepotrzebnie nie obciążać serwisu.
Wyątek stanowi: restart Home Assistant, rekonfiguracja integracji oraz komunikat Napraw.
W przypadku, gdy adres nie jest już dostępny w ProNatura API, wyświetlony zostaje komunikat Napraw proszący o wybranie nowego adresu.
Home Assistant integration that downloads the garbage collection schedule for a selected address serviced by ProNatura (Bydgoszcz).
🔗 Garbage Collection Schedule Website
- One sensor per waste fraction with the date of the next pickup.
- Possibility to configure multiple addresses (schedules).
- Configuration handled via Config Flow (Home Assistant UI).
- Street and address are chosen from a list downloaded from ProNatura.
- Repairs support, cached data responses, and diagnostics download.
Click the following button to open the integration directly on the HACS integration page.
You can also find the integration manually in HACS by searching for ProNatura or ProNatura Garbage Collection Schedules.
- Download the latest release.
- Copy
custom_components/pronaturainto your Home Assistantcustom_componentsdirectory. If the directory does not exist, create it first. The Samba Share add-on can help with the file copy. - Restart Home Assistant.
- In Home Assistant go to Settings → Devices & Services → Add integration and look for ProNatura.
- Select the street and then the building from the lists provided by the integration.
- Confirm the summary. Sensors for the configured address will be created automatically.
Every waste fraction found in the schedule creates a dedicated date sensor whose value is the date of the next collection. When there are no further dates in the schedule, the sensor shows unknown state. If a fraction exists but its schedule is empty, the sensor is still created but its state remains unknown.
Attributes:
full_address– street and building (or property name).fraction_name– name of the fraction returned by the ProNatura API.area– collection zone defined by ProNatura.building_type– building type (for exampleMIESZKALNA,NIEMIESZKALNA).address_name– optional additional name for the property provided by ProNatura.collection_status- collection status:scheduledorno_scheduledays_until_collection- number of days until next collection (nullwhen no date available)last_collection- date of the last collection according to schedule
Data from the API is refreshed once per day so the service is not overloaded. Exceptions: Home Assistant restart, integration reconfiguration, and Repairs notifications.
If a previously configured address disappears from ProNatura, Home Assistant shows a Repair notification that lets you reopen the ProNatura config flow and pick the address again.
