Skip to content

waste collection for mixed waste, plastics bin, papers bin and bio bin

Notifications You must be signed in to change notification settings

Antrac1t/HomeAssistant-WasteCollection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Waste collection - Home Assistant Sensor

hacs_badge

Application use json file to parse weeks for waste collection and showed active status of each bin over week. You can create 1 to n bins and each bin can have different collection day.

Installation

Step 1: Download files

Option 1: Via HACS

Make sure you have HACS installed. If you don't, run curl -sfSL https://hacs.xyz/install | bash - in HA. Then choose Components under HACS. Choose the menu in the upper right, and select Custom repositories. Then add this repo's URL. You should be able to choose to Install now.

Option 2: Manual

Clone this repository or download the source code as a zip file and add/merge the custom_components/ folder with its contents in your configuration directory.

Step 2: Create JSON file

In repository is saved example of json file called svoz_odpadu.json. Define all weeks in year and assign them yours type of waste collection (1 to n types and Status). Save Json file in www/ folder of your HA. You can rename it if you want but needs to be change in download.py

{
    "week": 1,
    "Types": [{
            "Typ": "komunal",
            "Status": 1
        }, {
            "Typ": "plast",
            "Status": 0
        }, {
            "Typ": "papir",
            "Status": 0
        }, {
            "Typ": "bio",
            "Status": 0
        }
    ]
}

Step 3: Configure

Add the following to your configuration.yaml file:

# day of collection - 1 Mondey ,... 7 Sunday
# hour - define time when HA will load new week
# type - type of waste (paper, plastic, bio, mixed waste, battery, oil, etcs)
binary_sensor:
  - platform: wastecollection
    name: Komunál
    day: "1"
    hour: "8"
    type: "komunal"
  - platform: wastecollection
    name: Plast
    day: "1"
    hour: "8"
    type: "plast"
  - platform: wastecollection
    name: Papír
    day: "1"
    hour: "8"
    type: "papir"
  - platform: wastecollection
    name: Bio
    day: "1"
    hour: "8"
    type: "bio"

Step 4: Restart HA

For the newly added integration to be loaded, HA needs to be restarted.

About

waste collection for mixed waste, plastics bin, papers bin and bio bin

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages