Most of my configuration and some custom components.
This component queries the api of the Cure Waste app. It's only meant for the following Dutch municipalities:
- Eindhoven
- Geldrop-Mierlo
- Valkenswaard
- Copy file 'custom_components/sensor/cure_waste.py' to your '[ha_config_dir]/custom_components/sensor' directory;
- Configure with configuration below.
- Restart Home-Assistant
To use this component in you installation, add the following to your 'configuration.yaml' file:
# Example configuration.yaml entry
sensors:
- platform: cure_waste
location: Eindhoven
postalcode: 1234AB
housenumber: 99
Configuration variables:
- location (Required): Specify the name of these sensors, this can be your city or home name
- postalcode (Required): Specify your postalcode, existing out of four numbers and two letters
- housenumber (Required): Specify your house number, excluding any suffix (not tested yet)
If you want to overwrite sensor names, head over to customization.yaml. Sensors will be called: 'Eindhoven General waste'.
# Example customize.yaml
# overwrite waste sensors
sensor.eindhoven_biodegradable_waste:
friendly_name: GFT afval
sensor.eindhoven_biodegradable_waste_countdown:
friendly_name: Dagen voor GFT
If you would like to receive a proper notification one day before, you could use an automation like in the xample below:
# Example automation.yaml
- alias: Waste notification - paper
trigger:
platform: time
at: '20:00:00'
condition:
condition: numeric_state
entity_id: sensor.eindhoven_paper_waste_countdown
below: 2
above: 0
action:
- service: notify.pushover
data:
title: "Waste"
message: "Tomorrow: Paper waste"
This component calls RSS feeds to retrieve the latest item
- Copy file 'custom_components/sensor/feedparser.py' to your '[ha_config_dir]/custom_components/sensor' directory;
- Configure with configuration below.
- Restart Home-Assistant
To use this component in you installation, add the following to your 'configuration.yaml' file:
# Example configuration.yaml entry
sensors:
- platform: feedparser
name: NOS Algemeen
url: http://feeds.nos.nl/nosnieuwsalgemeen
attributes:
- link
Configuration variables:
- name (Required): Specify the name of these sensors, this can be your city or home name
- url (Required): Specify your postalcode, existing out of four numbers and two letters
- title_attribute (Optional): Specify the attribute that should be used as the value of the sensor (default 'title')
- attributes (Optional): Specify a list of extra attributes to append to the sensor (default: none)
This component checks your lottery winnings
- Copy file 'custom_components/sensor/postcodeloterij.py' to your '[ha_config_dir]/custom_components/sensor' directory;
- Configure with configuration below.
- Restart Home-Assistant
To use this component in you installation, add the following to your 'configuration.yaml' file:
# Example configuration.yaml entry
sensors:
- platform: postcodeloterij
postcode: 1234AB
Configuration variables:
- postcode (Required): Specify your postcode to retrieve winnings from