Hallo
also ich hoffe ich bin jetzt alles richtig durchgegangen (inkl. der Einrückungen)
Hier die configuration.yaml
Code
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
sensor: !include_dir_merge_list sensor_yaml
Dann einen Ordner erstellt: sensor.yaml - darin sind vorerst zwei Files
Hier jeweils die .yaml
Code
- platform: template
sensors:
#
#
# Kosten Whirly monthly
kosten_whirly_monthly_euro:
friendly_name: "Kosten Whirly monthly Euro"
value_template: >-
{{ (states('sensor.verbrauch_whirly_monthly')|float(0) *
states('input_number.strompreissolar')|float(0)) |round(2)}}
icon_template: mdi:currency-eur
unit_of_measurement: '€'
unique_id: Kosten_whirly_monthly_euro_0000000000
Alles anzeigen
und das zweite File:
Code
- platform: template
sensors:
#
#
# Kosten Whirly yearly
kosten_whirly_yearly_euro:
friendly_name: "Kosten Whirly yearly Euro"
value_template: >-
{{ (states('sensor.verbrauch_whirly_yearly')|float(0) *
states('input_number.strompreissolar')|float(0)) |round(2)}}
icon_template: mdi:currency-eur
unit_of_measurement: '€'
unique_id: Kosten_whirly_yearly_euro_0000000000
Alles anzeigen
ABER: ich sehe wieder keine entsprechenden Entitäten? "kosten_whirly_monthly_euro" und "kosten_whirly_yearly_euro"
Die sollte ich doch, wenn sonst alles richtig wäre?, und Geräte und Dienste sehen?
Danke
Gruß
Helmut