home-assistant.io/source/_components/sensor.recollect_waste.markdown
2019-03-10 04:45:59 -07:00

1.8 KiB

layout, title, description, date, sidebar, comments, sharing, footer, logo, ha_category, ha_release, ha_iot_class
layout title description date sidebar comments sharing footer logo ha_category ha_release ha_iot_class
page Recollect Waste Sensor Instructions on how to set up Recollect Waste sensor within Home Assistant. 2019-01-14 13:30 true false true true recollect-waste.png Sensor 0.87 Cloud Polling

The Recollect Waste platform allows you to track the next scheduled waste pickup and what type of waste from Recollect. To use this sensor your city's waste company must be Recollect and you will need to find your place_id and service_id.

  1. In Chrome open developer tools and go to the network tab.

  2. Go to your city's Recollect collection calendar.

  3. Search for and select your address in the UI.

  4. Watch for a request that looks like

    https://api.recollect.net/api/places/(place_id)/services/(service_id)/events?nomerge ...

  5. Use the place_id and service_id when configuring the sensor.

{% linkable_title Configuration %}

To enable this sensor, add the following lines to your configuration.yaml:

# Example configuration.yaml entry
sensor:
  - platform: recollect_waste
    place_id: YOUR_PLACE_ID
    service_id: YOUR_SERVICE_ID

{% configuration %} place_id: description: The place_id used for your neighbourhood. required: true type: string service_id: description: The service_id used for your city. required: true type: string name: description: Name the sensor. required: false type: string default: recollect_waste {% endconfiguration %}

The default frequency for pulling data from Recollect Waste is once a day (86400 seconds).

The Recollect Waste sensor uses the Recollect API URL to obtain data not an official API from Recollect. Use at your own risk.