Vielen Dank für das Angebot.
Ich muss mich jetzt leider um andere Sachen kümmern.
Melde mich morgen wieder.
Gruß Matthias
Ich muss mich jetzt leider um andere Sachen kümmern.
Melde mich morgen wieder.
Gruß Matthias
homeassistant:
packages:
trovis:
template main: !include trovis557x/template_sensors.yaml
template statistics: !include trovis557x/statistics.yaml
template curves: !include trovis557x/heating_curves.yaml
trovis:
sensor:
- template_sensors.yaml
- statistics.yaml
- heating_curves.yaml
--> klick - platform: template
sensors:
cover_e3_kueche_status:
friendly_name: Cover E3 Kueche Status
unique_id: cover_e3_kueche_status
value_template: |
{% set b1_cover_current = state_attr('cover.kuche_links', 'current_position') | int %}
{% set b2_cover_current = state_attr('cover.kuche_rechts', 'current_position') | int %}
{% if b1_cover_current == b2_cover_current %}
{{ b1_cover_current }}
{% elif b1_cover_current > b2_cover_current %}
{{ b1_cover_current }}
{% else %}
{{ b2_cover_current }}
{% endif %}
icon_template: |
{% set cover_list = [state_attr('cover.kuche_links', 'current_position') | int,
state_attr('cover.kuche_rechts', 'current_position') | int] %}
{% set behang_status = cover_list | min %}
{% if behang_status == 100 %} kuf:fts_window_2w
{% elif behang_status < 100 and behang_status >= 90 %} kuf:fts_shutter_10
{% elif behang_status < 90 and behang_status >= 80 %} kuf:fts_shutter_20
{% elif behang_status < 80 and behang_status >= 70 %} kuf:fts_shutter_30
{% elif behang_status < 70 and behang_status >= 60 %} kuf:fts_shutter_40
{% elif behang_status < 60 and behang_status >= 50 %} kuf:fts_shutter_50
{% elif behang_status < 50 and behang_status >= 40 %} kuf:fts_shutter_60
{% elif behang_status < 40 and behang_status >= 30 %} kuf:fts_shutter_70
{% elif behang_status < 30 and behang_status >= 20 %} kuf:fts_shutter_80
{% elif behang_status < 20 and behang_status >= 10 %} kuf:fts_shutter_90
{% else %} kuf:fts_shutter_100
{% endif %}
template:
-sensors:
- name: Cover E3 Kueche Status
unique_id: cover_e3_kueche_status
state: |
{% set b1_cover_current = state_attr('cover.kuche_links', 'current_position') | int %}
{% set b2_cover_current = state_attr('cover.kuche_rechts', 'current_position') | int %}
{% if b1_cover_current == b2_cover_current %}
{{ b1_cover_current }}
{% elif b1_cover_current > b2_cover_current %}
{{ b1_cover_current }}
{% else %}
{{ b2_cover_current }}
{% endif %}
icon: |
{% set cover_list = [state_attr('cover.kuche_links', 'current_position') | int,
state_attr('cover.kuche_rechts', 'current_position') | int] %}
{% set behang_status = cover_list | min %}
{% if behang_status == 100 %} kuf:fts_window_2w
{% elif behang_status < 100 and behang_status >= 90 %} kuf:fts_shutter_10
{% elif behang_status < 90 and behang_status >= 80 %} kuf:fts_shutter_20
{% elif behang_status < 80 and behang_status >= 70 %} kuf:fts_shutter_30
{% elif behang_status < 70 and behang_status >= 60 %} kuf:fts_shutter_40
{% elif behang_status < 60 and behang_status >= 50 %} kuf:fts_shutter_50
{% elif behang_status < 50 and behang_status >= 40 %} kuf:fts_shutter_60
{% elif behang_status < 40 and behang_status >= 30 %} kuf:fts_shutter_70
{% elif behang_status < 30 and behang_status >= 20 %} kuf:fts_shutter_80
{% elif behang_status < 20 and behang_status >= 10 %} kuf:fts_shutter_90
{% else %} kuf:fts_shutter_100
{% endif %}
Wir verarbeiten personenbezogene Daten über die Nutzer unserer Website mithilfe von Cookies und anderen Technologien, um unsere Dienste bereitzustellen. Weitere Informationen findest Du in unserer Datenschutzerklärung.
Indem Du unten auf "ICH stimme zu" klickst, stimmst Du unserer Datenschutzerklärung und unseren persönlichen Datenverarbeitungs- und Cookie-Praktiken zu, wie darin beschrieben. Du erkennst außerdem an, dass dieses Forum möglicherweise außerhalb Deines Landes gehostet wird und bist damit einverstanden, dass Deine Daten in dem Land, in dem dieses Forum gehostet wird, gesammelt, gespeichert und verarbeitet werden.


Kommentar