Hi evereybody,
i had the following within my configuration.yaml to get attribute values of my homematic CCU.
this worked fine.
sensor:
#Aus Homematic Gas-Variable auslesen
- platform: template
sensors:
gaszaehler_counter_in_m3:
value_template: "{{ states.homematic.ccu2.attributes.Gaszaehler }}"
unit_of_measurement: 'm³'
device_class: 'gas'
attribute_templates:
state_class: 'total_increasing'
gaszaehler_counter_in_kwh:
value_template: "{{ states.homematic.ccu2.attributes.Gaszaehler_kwh }}"
unit_of_measurement: 'kWh'
device_class: 'energy'
attribute_templates:
state_class: 'total_increasing'
Now i would like to create separate yaml files for this. So i created two folder and included them in configuraiton.yaml like
homeassistant:
allowlist_external_dirs:
- /config/yaml_sensor
- /config/yaml_template
sensor: !include_dir_list yaml_sensor
template: !include_dir_list yaml_template
A lot of sensors which i created within /yaml_senor are working. But not these two for CCU.
For example: This, which is within /yaml_sensor is not working
platform: homematic
gaszaehler_counter_in_kwh:
- value_template: "{{ states.homematic.ccu2.attributes.Gaszaehler_kwh }}"
unit_of_measurement: 'kWh'
device_class: 'energy'
attribute_templates:
state_class: 'total_increasing'
Will be great if somebody can help me.
Many thanks in advance.
#ccu #homematic #yaml