-
Hi everyone, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
My automation which notifies me at 16:00 the day before the collection is due. (You can just change the time to alias: Müll notification
description: ""
trigger:
- platform: time
at: "16:00:00"
condition: []
action:
- choose:
- conditions:
- condition: numeric_state
entity_id: sensor.biomuell_days
below: 2
sequence:
- service: notify.mobile_app_iphone
data:
title: Biomülltonne
message: Biomüll raus stellen
- conditions:
- condition: numeric_state
entity_id: sensor.restmuell_days
below: 2
sequence:
- service: notify.mobile_app_iphone
data:
title: Restmülltonne
message: Restmüll raus stellen
- conditions:
- condition: numeric_state
entity_id: sensor.papier_days
below: 2
sequence:
- service: notify.mobile_app_iphone
data:
title: Papier Tonne
message: Papiermüll raus stellen
- conditions:
- condition: numeric_state
entity_id: sensor.gelbersack_days
below: 2
sequence:
- service: notify.mobile_app_iphone
data:
title: Gelber Sack
message: Gelber Sack raus stellen
mode: single my sensor config (you probably want to adjust sensor:
- platform: waste_collection_schedule
name: restmuell_days
details_format: appointment_types
value_template: "{{ value.daysTo }}"
add_days_to: true
types:
- Restmüll Container wöchentlich
- platform: waste_collection_schedule
name: gelbersack_days
details_format: appointment_types
value_template: "{{ value.daysTo }}"
add_days_to: true
types:
- Gelber Sack
- platform: waste_collection_schedule
name: biomuell_days
details_format: appointment_types
value_template: "{{ value.daysTo }}"
add_days_to: true
types:
- Biomüll
- platform: waste_collection_schedule
name: papier_days
details_format: appointment_types
value_template: "{{ value.daysTo }}"
add_days_to: true
types:
- Papier Tonnen und Container |
Beta Was this translation helpful? Give feedback.
-
A easier way which will include all collection types would be something like this: alias: müll 2
description: ""
trigger:
- platform: time
at: "16:00:00"
condition:
- condition: numeric_state
entity_id: sensor.next_collection_days
below: 2
action:
- service: notify.mobile_app_iphone
metadata: {}
data:
message: put out {{ states('sensor.next_collection_types') }}
mode: single with sensors: - platform: waste_collection_schedule
name: next_collection_days
details_format: appointment_types
value_template: "{{ value.daysTo }}"
add_days_to: true
- platform: waste_collection_schedule
name: next_collection_types
details_format: appointment_types
value_template: "{{ value.types|join(' and ') }}"
add_days_to: true |
Beta Was this translation helpful? Give feedback.
A easier way which will include all collection types would be something like this:
with sensors: