add waste collection
This commit is contained in:
parent
cce14f4016
commit
a4dc9f695e
|
|
@ -1,9 +1,8 @@
|
|||
homeassistant:
|
||||
# Load packages
|
||||
packages: !include_dir_named integrations
|
||||
|
||||
|
||||
|
||||
media_dirs:
|
||||
media: /media
|
||||
|
||||
# Configure a default setup of Home Assistant (frontend, api, etc)
|
||||
default_config:
|
||||
|
|
@ -17,15 +16,52 @@ tts:
|
|||
#script: !include scripts.yaml
|
||||
# scene: !include scenes.yaml
|
||||
|
||||
# switch:
|
||||
# - platform: mqtt
|
||||
# name: “sonoff-1"
|
||||
# command_topic: "cmnd/sonoff-1/POWER"
|
||||
# state_topic: "tele/sonoff-1/STATE"
|
||||
# availability_topic: "tele/sonoff-1/LWT"
|
||||
# qos: 1
|
||||
# payload_on: "ON"
|
||||
# payload_off: "OFF"
|
||||
# payload_available: "Online"
|
||||
# payload_not_available: "Offline"
|
||||
# retain: false
|
||||
waste_collection_schedule:
|
||||
sources:
|
||||
- name: ics
|
||||
args:
|
||||
url: https://drolshagen.abfuhrtermine.info/dates/exportDates/44/Ics
|
||||
# file: FILE
|
||||
offset: 0
|
||||
method: GET
|
||||
params: {}
|
||||
# year_field: YEAR_FIELD
|
||||
# split_at: ":"
|
||||
customize:
|
||||
- type: ics
|
||||
|
||||
# sensor:
|
||||
# # next collection
|
||||
# - platform: waste_collection_schedule
|
||||
# name: next_collection
|
||||
|
||||
sensor:
|
||||
- platform: waste_collection_schedule
|
||||
name: restlichen_tonnen
|
||||
details_format: upcoming
|
||||
count: 4
|
||||
value_template: '{{value.types|join(" + ")}} in {{value.daysTo}} Tag(en)'
|
||||
date_template: '{{value.date.strftime("%d.%m.%Y")}}'
|
||||
types:
|
||||
- 'Restlichen Tonnen'
|
||||
|
||||
- platform: waste_collection_schedule
|
||||
name: papier_tonne
|
||||
details_format: upcoming
|
||||
count: 4
|
||||
value_template: '{{value.types|join(" + ")}} in {{value.daysTo}} Tag(en)'
|
||||
date_template: '{{value.date.strftime("%d.%m.%Y")}}'
|
||||
types:
|
||||
- 'Papiertonne'
|
||||
|
||||
- platform: waste_collection_schedule
|
||||
name: tonnenbutton
|
||||
count: 4
|
||||
value_template: '{{value.types|join(", ")}}|{{value.daysTo}}|{{value.date.strftime("%d.%m.%Y")}}|{{value.date.strftime("%a")}}'
|
||||
|
||||
|
||||
|
||||
logger:
|
||||
default: info
|
||||
logs:
|
||||
waste_collection_schedule: debug
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -0,0 +1,17 @@
|
|||
# waste_collection_schedule:
|
||||
# sources:
|
||||
# - name: ics
|
||||
# args:
|
||||
# url: https://drolshagen.abfuhrtermine.info/dates/exportDates/44/Ics
|
||||
# # file: FILE
|
||||
# offset: 0
|
||||
# method: GET
|
||||
# params: {}
|
||||
# # year_field: YEAR_FIELD
|
||||
# split_at: ":"
|
||||
|
||||
|
||||
# sensor:
|
||||
# # next collection
|
||||
# - platform: waste_collection_schedule
|
||||
# name: next_collection
|
||||
Loading…
Reference in New Issue