home-assistant-config icon indicating copy to clipboard operation
home-assistant-config copied to clipboard

Waste Collection reminders

Open frenck opened this issue 4 years ago • 9 comments

Problem/Motivation

In order not to forget to put the waste bins out on pickup day, I need some sensors, automations and notifications.

References

  • Twente Milieu Integration: https://www.home-assistant.io/integrations/twentemilieu

frenck avatar Jul 30 '20 21:07 frenck

Another good one is: https://github.com/xirixiz/Home-Assistant-Sensor-Afvalwijzer

rgruyters avatar Aug 17 '20 08:08 rgruyters

Yes, I'm using this one: https://github.com/xirixiz/Home-Assistant-Sensor-Afvalwijzer Works great.

WiebKastanje avatar Aug 18 '20 18:08 WiebKastanje

I'm using this with twentemileu https://github.com/heyajohnny/afvalinfo works very good with minimum of configuration:

sensor:
  - platform: afvalinfo
    resources:
      - gft
      - pbd
      - papier
      - restafval
      - trash_type_today
      - trash_type_tomorrow
    location: hengelo
    postcode: 7550AA
    streetnumber: 100
    dateformat: '%d-%m-%Y'
    locale: 'nl'
    timespanindays: 365

big pro are the: - trash_type_today and -trash_type_tomorrow these return type of trash as string in the state, or none

i have 2 automations based upon today or tomorrow, sending me an notification at set times as an reminder

-   alias: Alert if and which container needs to go out tomorrow
    trigger: 
      platform: time 
      at: '20:00:00'
    condition:
      condition: not
      conditions:
        - condition: state
          entity_id: sensor.afvalinfo_tomorrow
          state: None
    action: 
      - service: notify.HomeNotifier
        data_template:
          message: >
            'Morgen moet de {{ sensor.afvalinfo_tomorrow }} container aan straat, lamme!'

-   alias: Alert if and which container needs to go out today
    trigger: 
      platform: time 
      at: '07:30:00'
    condition:
      condition: not
      conditions:
        - condition: state
          entity_id: sensor.afvalinfo_today
          state: None
    action: 
      - service: notify.HomeNotifier
        data_template:
          message: >
            'NU moet de {{ sensor.afvalinfo_today }} container aan straat, wakker worden!'

simpel to use, even for me ;) but im shure it can be done more efficient

dtx3k avatar Sep 01 '20 11:09 dtx3k

I don't need afvalinfo, as twentemilieu is available as a core integration 😉

frenck avatar Sep 01 '20 11:09 frenck

fair point, i didnt find it as satifying as this addon

dtx3k avatar Sep 01 '20 11:09 dtx3k

I made a blueprint for this: https://community.home-assistant.io/t/garbage-reminder/284213 It works with TwenteMilieu but also for anything else that has 4 sensors with a state value in the format of yyyy-mm-dd

lwestenberg avatar Feb 24 '21 20:02 lwestenberg

There's https://github.com/mampfes/hacs_waste_collection_schedule/ which will setup calendars and sensors for the bins.

pbulteel avatar Jul 18 '23 10:07 pbulteel

As per above @pbulteel I don't need that.

frenck avatar Jul 18 '23 12:07 frenck

I should really read all the comments before posting.

pbulteel avatar Aug 17 '23 12:08 pbulteel