8000 GitHub - Timple/hass: Home Assistant Kevin
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Timple/hass

 
 

Repository files navigation

Home Assistant configuration Kevin

Most of my configuration and some custom components.

Component overview

Cure Waste component

This component queries the api of the Cure Waste app. It's only meant for the following Dutch municipalities:

  • Eindhoven
  • Geldrop-Mierlo
  • Valkenswaard

Installation

  • Copy file 'custom_components/sensor/cure_waste.py' to your '[ha_config_dir]/custom_components/sensor' directory;
  • Configure with configuration below.
  • Restart Home-Assistant

Usage

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

Screenshot

Screenshot Cure Waste component

Automation example

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"

Feedparser component

This component calls RSS feeds to retrieve the latest item

Installation

  • Copy file 'custom_components/sensor/feedparser.py' to your '[ha_config_dir]/custom_components/sensor' directory;
  • Configure with configuration below.
  • Restart Home-Assistant

Usage

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)

Screenshot

Screenshot Feedparser component

Postcodeloterij component

This component checks your lottery winnings

Installation

  • Copy file 'custom_components/sensor/postcodeloterij.py' to your '[ha_config_dir]/custom_components/sensor' directory;
  • Configure with configuration below.
  • Restart Home-Assistant

Usage

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

Screenshot

Screenshot Postcodeloterij component

About

Home Assistant Kevin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 57.5%
  • Python 42.5%
0