Hallo zusammen,
ich bin ganz neu in HA und hab mit Simons Video einen Stromzähler eingebunden. Nun wollte ich mich an den Müllkalender geben. Und spuckt HA mir diesen Fehler aus:
Invalid config for [template]: [platform] is an invalid option for [template]. Check: template->sensor->0->platform. (See /config/configuration.yaml, line 56).
Das ist bis jetzt mein Code aus der Config.Yaml
Ist wahrscheinlich was ganz banales…
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
rest:
- authentication: basic
username: XX
password: XX
scan_interval: 30
resource: https://backend.powerfox.energy/api/2.0/my/main/current?unit=kwh
sensor:
- name: "poweropti"
value_template: "OK"
json_attributes:
- "Watt"
- "Timestamp"
- "A_Plus"
- "A_Minus"
- "Outdated"
waste_collection_schedule:
sources:
- name: ics
args:
file: "www/Abfall2023.ics"
customize:
- type: Bioabfall 2-Rad Behaelter 02-woechentl.
alias: BioTonne
icon: mdi:flower-outline
- type: Gelbe Saecke
alias: GelberSack
icon: mdi:recycle
- type: Restabfall 2-Rad Behaelter 02-woechentl.
alias: Restmuell
icon: mdi:trash-can
- type: Papierabfuhr 2-Rad Behaelter 04-woechentl.
alias: PapierTonne
icon: mdi:trash-can-outline
fetch_time: "04:00"
day_switch_time: "10:00"
template:
- sensor:
# Müll Temrine
- platform: waste_collection_schedule
name: AbfallRestmuell
details_format: "upcoming"
value_template: '{% if value.daysTo == 0 %}Heute{% elif value.daysTo == 1 %}Morgen{% else %}in {{value.daysTo}} Tagen{% endif %}'
types:
- Restmuell
- platform: waste_collection_schedule
name: AbfallPapierTonne
details_format: "upcoming"
value_template: '{% if value.daysTo == 0 %}Heute{% elif value.daysTo == 1 %}Morgen{% else %}in {{value.daysTo}} Tagen{% endif %}'
types:
- PapierTonne
- platform: waste_collection_schedule
name: AbfallGelberSack
details_format: "upcoming"
value_template: '{% if value.daysTo == 0 %}Heute{% elif value.daysTo == 1 %}Morgen{% else %}in {{value.daysTo}} Tagen{% endif %}'
types:
- GelberSack
- platform: waste_collection_schedule
name: AbfallBiotonne
details_format: "upcoming"
value_template: '{% if value.daysTo == 0 %}Heute{% elif value.daysTo == 1 %}Morgen{% else %}in {{value.daysTo}} Tagen{% endif %}'
types:
- BioTonne
- platform: waste_collection_schedule
name: AbfallRestmuellnext
details_format: "upcoming"
value_template: 'am: {{value.date.strftime("%d.%m.%Y")}}'
types:
- Restmuell
- platform: waste_collection_schedule
name: AbfallPapierTonnenext
details_format: "upcoming"
value_template: 'am: {{value.date.strftime("%d.%m.%Y")}}'
types:
- PapierTonne
- platform: waste_collection_schedule
name: AbfallGelberSacknext
details_format: "upcoming"
value_template: 'am: {{value.date.strftime("%d.%m.%Y")}}'
types:
- GelberSack
- platform: waste_collection_schedule
name: AbfallBiotonnenext
details_format: "upcoming"
value_template: 'am: {{value.date.strftime("%d.%m.%Y")}}'
types:
- BioTonne
- platform: waste_collection_schedule
name: AbfallNaechster
details_format: "upcoming"
value_template: ' {{ value.daysTo }} '
#Stromzähler
- name: "Strom Verbrauch aktuell"
unit_of_measurement: "W"
device_class: "power"
state_class: "measurement"
state: "{{ state_attr('sensor.poweropti', 'Watt') }}"
- name: "Strom Bezug Gesamt"
unit_of_measurement: "kWh"
device_class: "energy"
state_class: "total_increasing"
state: "{{ state_attr('sensor.poweropti', 'A_Plus') }}"
- name: "PV-Einspeisung Gesamt"
unit_of_measurement: "kWh"
device_class: "energy"
state_class: "total_increasing"
state: "{{ state_attr('sensor.poweropti', 'A_Minus') }}"