Created
November 17, 2023 11:40
-
-
Save stefanandres/c0512c448ffffa36b298642abeccc821 to your computer and use it in GitHub Desktop.
home-assistant trash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- id: abfall_notify | |
alias: Abfall Benachrichtigung | |
description: '' | |
trigger: | |
- platform: time | |
at: '19:30:00' | |
condition: | |
- condition: state | |
entity_id: sensor.abfall_notify | |
state: '1' | |
action: | |
- service: notify.mobile_app_dump | |
data: | |
title: '🗑️ Mülltonnen' | |
message: "{{ states('sensor.abfall_notify_type') | replace('[', | |
'')| replace(']', '') | replace('\\'', '') }} rausstellen" | |
- service: notify.mobile_app_stefanie | |
data: | |
title: '🗑️ Mülltonnen' | |
message: "{{ states('sensor.abfall_notify_type') | replace('[', | |
'')| replace(']', '') | replace('\\'', '') }} rausstellen" | |
mode: single |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
waste_collection_schedule: | |
sources: | |
- name: ics | |
args: | |
# Download before and put into root dir of home-assistant docker directory | |
file: "/config/abfall-2023.ics" | |
customize: | |
- type: Restabfall 2wö | |
icon: mdi:trash-can | |
- type: Biotonne | |
icon: mdi:leaf | |
- type: Papiertonne | |
icon: mdi:package-variant | |
- type: Gelbe Tonne | |
icon: mdi:recycle | |
sensor: | |
- platform: waste_collection_schedule | |
name: Restabfall 2wö | |
types: | |
- Restabfall 2wö | |
details_format: "upcoming" | |
value_template: 'in {{value.daysTo}} days' | |
- platform: waste_collection_schedule | |
name: Biotonne | |
types: | |
- Biotonne | |
details_format: "upcoming" | |
value_template: 'in {{value.daysTo}} days' | |
- platform: waste_collection_schedule | |
name: Papiertonne | |
types: | |
- Papiertonne | |
details_format: "upcoming" | |
value_template: 'in {{value.daysTo}} days' | |
- platform: waste_collection_schedule | |
name: Gelbe Tonne | |
types: | |
- Gelbe Tonne | |
details_format: "upcoming" | |
value_template: 'in {{value.daysTo}} days' | |
# Create sensor containting all collections for notifications | |
- platform: waste_collection_schedule | |
name: abfall_notify | |
details_format: 'upcoming' | |
value_template: '{{value.daysTo}}' | |
- platform: waste_collection_schedule | |
name: abfall_notify_type | |
details_format: "upcoming" | |
value_template: '{{value.types}}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment