home-assistant-config
home-assistant-config copied to clipboard
Waste Collection reminders
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
Another good one is: https://github.com/xirixiz/Home-Assistant-Sensor-Afvalwijzer
Yes, I'm using this one: https://github.com/xirixiz/Home-Assistant-Sensor-Afvalwijzer Works great.
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
I don't need afvalinfo, as twentemilieu is available as a core integration 😉
fair point, i didnt find it as satifying as this addon
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
There's https://github.com/mampfes/hacs_waste_collection_schedule/ which will setup calendars and sensors for the bins.
As per above @pbulteel I don't need that.
I should really read all the comments before posting.