Advertisement
Guest User

HA

a guest
Feb 29th, 2024
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. views:
  2.   - title: Overview
  3.     path: main
  4.     id: main
  5.     icon: mdi:home-heart
  6.     cards:
  7.       - type: conditional
  8.         conditions:
  9.           - entity: sensor.dwd_weather_warnings_duisburgnord_advance_warning_level
  10.             state: '0'
  11.         card:
  12.           type: custom:meteoalarm-card
  13.           entities:
  14.             - entity: sensor.dwd_weather_warnings_duisburgsued_advance_warning_level
  15.             - entity: sensor.dwd_weather_warnings_duisburgsued_current_warning_level
  16.           integration: dwd
  17.           disable_swiper: false
  18.           override_headline: true
  19.           hide_caption: false
  20.           hide_when_no_warning: true
  21.           scaling_mode: headline_and_scale
  22.       - type: custom:mushroom-chips-card
  23.         chips:
  24.           - type: conditional
  25.             conditions:
  26.               - entity: sensor.geschirrspuler_operation_state
  27.                 state: Run
  28.             chip:
  29.               type: template
  30.               icon: mdi:dishwasher
  31.               icon_color: blue
  32.               content: >-
  33.                 {% set sec =
  34.                 as_timestamp(states('sensor.geschirrspuler_remaining_program_time'))-as_timestamp(now())
  35.                 %} {%set hr = (sec / 3600) | int %} {%set min = sec / 60 - hr *
  36.                 60%} {% if hr > 0 %}
  37.                   Noch {{"%dh %02dmin" % (hr, min)}}
  38.                 {%else%}
  39.                   {{min | int}} min
  40.                 {% endif %} ({% if
  41.                 is_state('switch.geschirrspuler_program_eco50', 'on') %}Eco 50{%
  42.                 elif is_state('switch.geschirrspuler_program_intensiv70', 'on')
  43.                 %} Intensiv 70{% elif
  44.                 is_state('switch.geschirrspuler_program_machinecare', 'on') %}
  45.                 Maschinenpflege {% elif
  46.                 is_state('switch.geschirrspuler_program_prerinse', 'on')
  47.                 %}Prerinse {% elif
  48.                 is_state('switch.geschirrspuler_program_quick45', 'on') %}Quick
  49.                 45 {% elif is_state('switch.geschirrspuler_program_quick65',
  50.                 'on') %}Quick 65{% elif
  51.                 is_state('switch.geschirrspuler_program_auto2', 'on') %}Auto 2{%
  52.                 endif %})
  53.           - type: conditional
  54.             conditions:
  55.               - entity: sensor.geschirrspuler_operation_state
  56.                 state: Run
  57.             chip:
  58.               type: template
  59.               icon: >-
  60.                 {% if
  61.  
  62.                 states('binary_sensor.011040386004019199_dishcare_dishwasher_option_silenceondemand')
  63.  
  64.                 == 'off' %}
  65.                   mdi:dishwasher-alert
  66.                 {% else %}
  67.                   mdi:dishwasher-off
  68.                 {% endif %}
  69.               icon_color: >-
  70.                 {% if
  71.                 states('binary_sensor.011040386004019199_dishcare_dishwasher_option_silenceondemand')
  72.                 == 'off' %}
  73.                   orange
  74.                 {% else %}
  75.                   green
  76.                 {% endif %}
  77.               content: >-
  78.                 {% if
  79.                 states('binary_sensor.011040386004019199_dishcare_dishwasher_option_silenceondemand')
  80.                 == 'off' %}
  81.                   Spülmaschine ist laut
  82.                 {% else %}
  83.                   Spülmaschine ist leise
  84.                 {% endif %}
  85.               entity: >-
  86.                 switch.011040386004019199_dishcare_dishwasher_option_silenceondemand
  87.               tap_action:
  88.                 action: toggle
  89.           - type: conditional
  90.             conditions:
  91.               - entity: input_boolean.gedachtnis_geschirrspulmaschine
  92.                 state: 'on'
  93.             chip:
  94.               type: template
  95.               icon: mdi:dishwasher
  96.               icon_color: blue
  97.               content: >-
  98.                 Spülmaschine um {% set t =
  99.                 state_attr('input_datetime.uhrzeit_spulmaschine', 'timestamp') -
  100.                 3600  %} {{ t | timestamp_custom("%H:%M") }} Uhr
  101.           - type: conditional
  102.             conditions:
  103.               - condition: state
  104.                 entity: sensor.bertha_status
  105.                 state: cleaning
  106.             chip:
  107.               type: entity
  108.               entity: sensor.bertha_status
  109.               state_color: true
  110.               name: Bertha reinigt
  111.               use_entity_picture: true
  112.               content_info: name
  113.               icon_color: light-green
  114.               tap_action:
  115.                 action: more-info
  116.               icon: mdi:robot-vacuum
  117.           - type: conditional
  118.             conditions:
  119.               - entity: input_boolean.gedachtnis_alarmanlage_nach_bertha
  120.                 state: 'on'
  121.             chip:
  122.               type: entity
  123.               entity: input_boolean.gedachtnis_alarmanlage_nach_bertha
  124.               state_color: true
  125.               name: Alarm aus weil Bertha
  126.               use_entity_picture: true
  127.               content_info: name
  128.               icon_color: red
  129.           - type: conditional
  130.             conditions:
  131.               - entity: input_boolean.einbruch
  132.                 state: 'on'
  133.             chip:
  134.               type: entity
  135.               entity: input_boolean.einbruch
  136.               state_color: true
  137.               name: Einbruch
  138.               icon: mdi:shield-home-outline
  139.               use_entity_picture: true
  140.               content_info: name
  141.               icon_color: red
  142.           - type: conditional
  143.             conditions:
  144.               - entity: input_boolean.gedachtnis_alarmanlage
  145.                 state: 'on'
  146.             chip:
  147.               type: entity
  148.               entity: input_boolean.gedachtnis_alarmanlage
  149.               state_color: true
  150.               name: Alarmanlage
  151.               use_entity_picture: true
  152.               content_info: name
  153.               icon_color: red
  154.           - type: conditional
  155.             conditions:
  156.               - entity: input_boolean.gedachtnis_besuch
  157.                 state: 'on'
  158.             chip:
  159.               type: template
  160.               icon: mdi:account-group
  161.               icon_color: orange
  162.               content: Besuch ist da
  163.           - type: conditional
  164.             conditions:
  165.               - entity: input_boolean.gedachtnis_automatisches_luften
  166.                 state: 'on'
  167.             chip:
  168.               type: template
  169.               icon: mdi:wind-power
  170.               icon_color: blue
  171.               content: >-
  172.                 {% if states('input_boolean.gedachtnis_automatisches_luften') ==
  173.                 'on' %} {% set time = as_timestamp(now()) -
  174.                 as_timestamp(state_attr('script.luften', 'last_triggered')) %}
  175.                   Noch {{ (30 - time / 60) | int }} min{% endif %}
  176.                 Stoßlüften
  177.           - type: conditional
  178.             conditions:
  179.               - entity: input_boolean.kuhlung
  180.                 state: 'on'
  181.               - entity: sensor.kwl_season_val
  182.                 state: '1'
  183.             chip:
  184.               type: template
  185.               icon: mdi:snowflake
  186.               icon_color: blue
  187.               content: Kühlung aktiv
  188.               tap_action:
  189.                 action: navigate
  190.                 navigation_path: /lovelace-huckingen/heat
  191.           - type: conditional
  192.             conditions:
  193.               - entity: light.wifi_led_strahler_wf_2050_p
  194.                 state: 'on'
  195.             chip:
  196.               type: template
  197.               icon: mdi:light-flood-down
  198.               icon_color: yellow
  199.               content: 'Licht: Einfahrt'
  200.               entity: light.wifi_led_strahler_wf_2050_p
  201.               tap_action:
  202.                 action: navigate
  203.                 navigation_path: /lovelace-huckingen/lights
  204.           - type: conditional
  205.             conditions:
  206.               - entity: switch.shelly1_terrassenlampe
  207.                 state: 'on'
  208.             chip:
  209.               type: template
  210.               icon: mdi:coach-lamp
  211.               icon_color: yellow
  212.               content: 'Licht: Terrasse'
  213.               entity: switch.shelly1_terrassenlampe
  214.           - type: conditional
  215.             conditions:
  216.               - entity: switch.shelly1_htr
  217.                 state: 'on'
  218.             chip:
  219.               type: template
  220.               icon: mdi:heat-pump-outline
  221.               icon_color: yellow
  222.               content: 'Licht: HTR'
  223.               entity: switch.shelly1_htr
  224.           - type: conditional
  225.             conditions:
  226.               - entity: switch.aussenleuchte
  227.                 state: 'on'
  228.             chip:
  229.               type: template
  230.               icon: mdi:outdoor-lamp
  231.               icon_color: yellow
  232.               content: 'Licht: Eingang'
  233.               entity: switch.aussenleuchte
  234.           - type: conditional
  235.             conditions:
  236.               - entity: input_boolean.waschmaschine_lauft
  237.                 state: 'on'
  238.             chip:
  239.               type: template
  240.               icon: mdi:washing-machine
  241.               icon_color: blue
  242.               content: |-
  243.                 Waschmaschine läuft
  244.                   {%- set time = (as_timestamp(now()) - as_timestamp(states.input_boolean.waschmaschine_lauft.last_changed)) | int %}
  245.                   {%- set minutes = ((time % 3600) // 60) %}
  246.                   {%- set minutes = '{}min'.format(minutes) if minutes > 0 else '' %}
  247.                   {%- set hours = ((time % 86400) // 3600) %}
  248.                   {%- set hours = 'seit {}h '.format(hours) if hours > 0 else '' %}
  249.                   {%- set days = (time // 86400) %}
  250.                   {%- set days = '{}days '.format(days) if days > 0 else '' %}
  251.                   {{ 'Offen: < 1min' if time < 60 else days + hours + minutes }}
  252.               tap_action:
  253.                 action: navigate
  254.                 navigation_path: /lovelace-huckingen/lights
  255.           - type: conditional
  256.             conditions:
  257.               - entity: input_boolean.trockner_lauft
  258.                 state: 'on'
  259.             chip:
  260.               type: template
  261.               icon: mdi:tumble-dryer
  262.               icon_color: blue
  263.               content: |-
  264.                 Trockner läuft
  265.                   {%- set time = (as_timestamp(now()) - as_timestamp(states.input_boolean.waschmaschine_lauft.last_changed)) | int %}
  266.                   {%- set minutes = ((time % 3600) // 60) %}
  267.                   {%- set minutes = '{}min'.format(minutes) if minutes > 0 else '' %}
  268.                   {%- set hours = ((time % 86400) // 3600) %}
  269.                   {%- set hours = 'seit {}h '.format(hours) if hours > 0 else '' %}
  270.                   {%- set days = (time // 86400) %}
  271.                   {%- set days = '{}days '.format(days) if days > 0 else '' %}
  272.                   {{ 'Offen: < 1min' if time < 60 else days + hours + minutes }}
  273.               tap_action:
  274.                 action: navigate
  275.                 navigation_path: /lovelace-huckingen/lights
  276.           - type: conditional
  277.             conditions:
  278.               - condition: numeric_state
  279.                 entity: sensor.kwl_restlaufzeit_filter_zu
  280.                 below: 1
  281.             chip:
  282.               type: template
  283.               tap_action:
  284.                 action: navigate
  285.                 navigation_path: /lovelace-huckingen/temperature
  286.               content: 'Maico: Filterwechsel'
  287.               icon_color: cyan
  288.               icon: mdi:filter-cog
  289.           - type: conditional
  290.             conditions:
  291.               - entity: input_boolean.badetag
  292.                 state: 'on'
  293.             chip:
  294.               type: template
  295.               icon: mdi:shower
  296.               icon_color: red
  297.               content: Badetag
  298.               entity: input_boolean.badetag
  299.               tap_action:
  300.                 action: navigate
  301.                 navigation_path: /lovelace-huckingen/heat
  302.           - type: conditional
  303.             conditions:
  304.               - condition: state
  305.                 entity: switch.reolink_push
  306.                 state: 'on'
  307.             chip:
  308.               type: template
  309.               icon: mdi:cctv
  310.               icon_color: green
  311.               content: Kameras an
  312.               entity: switch.reolink_push
  313.               tap_action:
  314.                 action: navigate
  315.                 navigation_path: /lovelace-huckingen/security
  316.         alignment: center
  317.       - type: vertical-stack
  318.         cards:
  319.           - type: custom:mushroom-chips-card
  320.             chips:
  321.               - type: conditional
  322.                 conditions:
  323.                   - entity: binary_sensor.contact_sensor_garage_offnet_3
  324.                     state: unavailable
  325.                 chip:
  326.                   type: entity
  327.                   entity: binary_sensor.contact_sensor_garage_offnet_3
  328.                   name: Garagentür nicht erreichbar
  329.                   icon: mdi:chat-question-outline
  330.                   content_info: name
  331.                   use_entity_picture: false
  332.               - type: conditional
  333.                 conditions:
  334.                   - entity: binary_sensor.contact_sensor_buro_offnet_10
  335.                     state: unavailable
  336.                 chip:
  337.                   type: entity
  338.                   entity: binary_sensor.contact_sensor_buro_offnet_10
  339.                   name: Büro Sensor nicht erreichbar
  340.                   icon: mdi:chat-question-outline
  341.                   content_info: name
  342.                   use_entity_picture: false
  343.               - type: conditional
  344.                 conditions:
  345.                   - entity: binary_sensor.contact_sensor_g_wc_offnet_11
  346.                     state: unavailable
  347.                 chip:
  348.                   type: entity
  349.                   entity: binary_sensor.contact_sensor_g_wc_offnet_11
  350.                   name: G-WC Sensor nicht erreichbar
  351.                   icon: mdi:chat-question-outline
  352.                   content_info: name
  353.                   use_entity_picture: false
  354.               - type: conditional
  355.                 conditions:
  356.                   - entity: binary_sensor.contact_sensor_esszimmer_offnet_7
  357.                     state: unavailable
  358.                 chip:
  359.                   type: entity
  360.                   entity: binary_sensor.contact_sensor_esszimmer_offnet_7
  361.                   name: Esszimmer Sensor nicht erreichbar
  362.                   icon: mdi:chat-question-outline
  363.                   content_info: name
  364.                   use_entity_picture: false
  365.               - type: conditional
  366.                 conditions:
  367.                   - entity: binary_sensor.contact_sensor_emil_links_offnet_5
  368.                     state: unavailable
  369.                 chip:
  370.                   type: entity
  371.                   entity: binary_sensor.contact_sensor_emil_links_offnet_5
  372.                   name: Emil L Sensor nicht erreichbar
  373.                   icon: mdi:chat-question-outline
  374.                   content_info: name
  375.                   use_entity_picture: false
  376.               - type: conditional
  377.                 conditions:
  378.                   - entity: binary_sensor.contact_sensor_schrankraum_offnet_6
  379.                     state: unavailable
  380.                 chip:
  381.                   type: entity
  382.                   entity: binary_sensor.contact_sensor_schrankraum_offnet_6
  383.                   name: Schrankraum Sensor nicht erreichbar
  384.                   icon: mdi:chat-question-outline
  385.                   content_info: name
  386.                   use_entity_picture: false
  387.               - type: conditional
  388.                 conditions:
  389.                   - entity: binary_sensor.contact_sensor_haustur_offnet_8
  390.                     state: unavailable
  391.                 chip:
  392.                   type: entity
  393.                   entity: binary_sensor.contact_sensor_haustur_offnet_8
  394.                   name: Haustür Sensor nicht erreichbar
  395.                   icon: mdi:chat-question-outline
  396.                   content_info: name
  397.                   use_entity_picture: false
  398.               - type: conditional
  399.                 conditions:
  400.                   - entity: binary_sensor.contact_sensor_htr_offnet_12
  401.                     state: unavailable
  402.                 chip:
  403.                   type: entity
  404.                   entity: binary_sensor.contact_sensor_htr_offnet_12
  405.                   name: HTR Sensor nicht erreichbar
  406.                   icon: mdi:chat-question-outline
  407.                   content_info: name
  408.                   use_entity_picture: false
  409.               - type: conditional
  410.                 conditions:
  411.                   - entity: binary_sensor.contact_sensor_kuche_offnet_9
  412.                     state: unavailable
  413.                 chip:
  414.                   type: entity
  415.                   entity: binary_sensor.contact_sensor_kuche_offnet_9
  416.                   name: Küche Sensor nicht erreichbar
  417.                   icon: mdi:chat-question-outline
  418.                   content_info: name
  419.                   use_entity_picture: false
  420.               - type: conditional
  421.                 conditions:
  422.                   - entity: binary_sensor.contact_sensor_post_offnet
  423.                     state: unavailable
  424.                 chip:
  425.                   type: entity
  426.                   entitiy: binary_sensor.contact_sensor_post_offnet
  427.                   name: Post Sensor nicht erreichbar
  428.                   icon: mdi:chat-question-outline
  429.                   content_info: name
  430.                   use_entity_picture: false
  431.               - type: conditional
  432.                 conditions:
  433.                   - entity: binary_sensor.contact_sensor_terrasse_mitte_offnet_4
  434.                     state: unavailable
  435.                 chip:
  436.                   type: entity
  437.                   entity: binary_sensor.contact_sensor_terrasse_mitte_offnet_4
  438.                   name: Terrasentür Sensor mitte nicht erreichbar
  439.                   icon: mdi:chat-question-outline
  440.                   content_info: name
  441.                   use_entity_picture: false
  442.               - type: conditional
  443.                 conditions:
  444.                   - entity: binary_sensor.contact_sensor_terrasse_rechts_offnet_2
  445.                     state: unavailable
  446.                 chip:
  447.                   type: entity
  448.                   entity: binary_sensor.contact_sensor_terrasse_rechts_offnet_2
  449.                   name: Terrasentür Sensor rechts nicht erreichbar
  450.                   icon: mdi:chat-question-outline
  451.                   content_info: name
  452.                   use_entity_picture: false
  453.               - type: conditional
  454.                 conditions:
  455.                   - entity: binary_sensor.wasser_htr_feuchtigkeit
  456.                     state: unavailable
  457.                 chip:
  458.                   type: entity
  459.                   entity: binary_sensor.wasser_htr_feuchtigkeit
  460.                   name: Wassersensor HTR nicht erreichbar
  461.                   icon: mdi:chat-question-outline
  462.                   content_info: name
  463.                   use_entity_picture: false
  464.               - type: conditional
  465.                 conditions:
  466.                   - entity: binary_sensor.wasser_kuche_feuchtigkeit
  467.                     state: unavailable
  468.                 chip:
  469.                   type: entity
  470.                   entity: binary_sensor.wasser_kuche_feuchtigkeit
  471.                   name: Wassersensor Küchen Sensor nicht erreichbar
  472.                   icon: mdi:chat-question-outline
  473.                   content_info: name
  474.                   use_entity_picture: false
  475.               - type: conditional
  476.                 conditions:
  477.                   - entity: sensor.temperatur_htr_batterie_3
  478.                     state: unavailable
  479.                 chip:
  480.                   type: entity
  481.                   entity: sensor.temperatur_htr_batterie_3
  482.                   name: Raumsensor HTR nicht erreichbar
  483.                   icon: mdi:chat-question-outline
  484.                   content_info: name
  485.                   use_entity_picture: false
  486.               - type: conditional
  487.                 conditions:
  488.                   - entity: sensor.temperatur_abstellraum_batterie_2
  489.                     state: unavailable
  490.                 chip:
  491.                   type: entity
  492.                   entity: sensor.temperatur_abstellraum_batterie_2
  493.                   name: Raumsensor Abstell nicht erreichbar
  494.                   icon: mdi:chat-question-outline
  495.                   content_info: name
  496.                   use_entity_picture: false
  497.               - type: conditional
  498.                 conditions:
  499.                   - entity: light.diele_1_licht
  500.                     state: unavailable
  501.                 chip:
  502.                   type: entity
  503.                   entity: light.diele_1_licht
  504.                   name: Diele ist nicht verfügbar
  505.                   icon: mdi:chat-question-outline
  506.                   content_info: name
  507.               - type: conditional
  508.                 conditions:
  509.                   - entity: sensor.bewegung_diele_batterie
  510.                     state: unavailable
  511.                 chip:
  512.                   type: entity
  513.                   entity: sensor.bewegung_diele_batterie
  514.                   name: Bewegungssesor Diele ist nicht verfügbar
  515.                   icon: mdi:chat-question-outline
  516.                   content_info: name
  517.               - type: conditional
  518.                 conditions:
  519.                   - entity: sensor.bewegung_g_wc_batterie
  520.                     state: unavailable
  521.                 chip:
  522.                   type: entity
  523.                   entity: sensor.bewegung_g_wc_batterie
  524.                   name: Bewegungssensor G-WC ist nicht verfügbar
  525.                   icon: mdi:chat-question-outline
  526.                   content_info: name
  527.               - type: conditional
  528.                 conditions:
  529.                   - entity: sensor.bewegung_htr_batterie
  530.                     state: unavailable
  531.                 chip:
  532.                   type: entity
  533.                   entity: sensor.bewegung_htr_batterie
  534.                   name: Bewegungssensor HTR ist nicht verfügbar
  535.                   icon: mdi:chat-question-outline
  536.                   content_info: name
  537.               - type: conditional
  538.                 conditions:
  539.                   - condition: or
  540.                     conditions:
  541.                       - condition: state
  542.                         entity: switch.tl_wa854re_internet_access
  543.                         state: unavailable
  544.                       - condition: state
  545.                         entity: switch.tl_wa854re_internet_access
  546.                         state: unknown
  547.                 chip:
  548.                   type: entity
  549.                   entity: switch.tl_wa854re_internet_access
  550.                   name: AP Büro nicht erreichbar
  551.                   icon: mdi:chat-question-outline
  552.                   content_info: name
  553.               - type: conditional
  554.                 conditions:
  555.                   - entity: binary_sensor.contact_sensor_bad
  556.                     state: unavailable
  557.                 chip:
  558.                   type: entity
  559.                   entity: binary_sensor.contact_sensor_bad
  560.                   name: Bad Sensor ist nicht verfügbar
  561.                   icon: mdi:chat-question-outline
  562.                   content_info: name
  563.               - type: conditional
  564.                 conditions:
  565.                   - entity: binary_sensor.contact_sensor_ankleide_offnet
  566.                     state: unavailable
  567.                 chip:
  568.                   type: entity
  569.                   entity: binary_sensor.contact_sensor_ankleide_offnet
  570.                   name: Ankleide Sensor ist nicht verfügbar
  571.                   icon: mdi:chat-question-outline
  572.                   content_info: name
  573.               - type: conditional
  574.                 conditions:
  575.                   - condition: state
  576.                     entity: binary_sensor.contact_sensor_sport_links_offnet_5
  577.                     state: unavailable
  578.                 chip:
  579.                   type: entity
  580.                   entity: binary_sensor.contact_sensor_sport_links_offnet_5
  581.                   name: Sport L ist nicht verfügbar
  582.                   icon: mdi:chat-question-outline
  583.                   content_info: name
  584.               - type: conditional
  585.                 conditions:
  586.                   - entity: binary_sensor.contact_sensor_sport_rechts_offnet
  587.                     state: unavailable
  588.                 chip:
  589.                   type: entity
  590.                   entity: binary_sensor.contact_sensor_sport_rechts_offnet
  591.                   name: Sport R ist nicht verfügbar
  592.                   icon: mdi:chat-question-outline
  593.                   content_info: name
  594.       - type: vertical-stack
  595.         cards:
  596.           - type: conditional
  597.             conditions:
  598.               - condition: state
  599.                 entity: switch.geschirrspuler_power
  600.                 state_not: 'off'
  601.             card:
  602.               type: custom:bar-card
  603.               entities:
  604.                 - entity: sensor.geschirrspuler_program_progress
  605.                   name: Fortschritt
  606.               icon: mdi:dishwasher
  607.               severity:
  608.                 - color: Indianred
  609.                   from: 0
  610.                   to: 25
  611.                 - color: Coral
  612.                   from: 25
  613.                   to: 50
  614.                 - color: Sandybrown
  615.                   from: 50
  616.                   to: 75
  617.                 - color: Darkkhaki
  618.                   from: 76
  619.                   to: 80
  620.                 - color: Yellowgreen
  621.                   from: 81
  622.                   to: 90
  623.                 - color: Limegreen
  624.                   from: 91
  625.                   to: 100
  626.               state_color: false
  627.               show_header_toggle: false
  628.           - type: conditional
  629.             conditions:
  630.               - condition: state
  631.                 entity: binary_sensor.water_sensor_kitchen_bin
  632.                 state: 'on'
  633.             card:
  634.               type: custom:mushroom-template-card
  635.               primary: Wasser in der Küche!
  636.               secondary: ''
  637.               icon: mdi:water-alert
  638.               icon_color: red
  639.               entity: binary_sensor.water_sensor_kitchen_bin
  640.           - type: conditional
  641.             conditions:
  642.               - condition: state
  643.                 entity: binary_sensor.wassersensor_htr_feuchtigkeit
  644.                 state: 'on'
  645.             card:
  646.               type: custom:mushroom-template-card
  647.               primary: Wasser im HTR!
  648.               secondary: ''
  649.               icon: mdi:water-alert
  650.               icon_color: red
  651.               entity: binary_sensor.wassersensor_htr_feuchtigkeit
  652.           - square: false
  653.             type: grid
  654.             cards:
  655.               - type: conditional
  656.                 conditions:
  657.                   - entity: binary_sensor.contact_sensor_haustur_offnet_8
  658.                     state: 'on'
  659.                 card:
  660.                   type: custom:bubble-card
  661.                   card_type: button
  662.                   entity: binary_sensor.contact_sensor_haustur_offnet_8
  663.                   name: Haustür
  664.                   icon: mdi:door-open
  665.                   tap_action:
  666.                     action: more-info
  667.               - type: conditional
  668.                 conditions:
  669.                   - entity: cover.smart_garage_door_garage
  670.                     state: 'on'
  671.                 card:
  672.                   type: custom:bubble-card
  673.                   card_type: button
  674.                   entity: cover.smart_garage_door_garage
  675.                   name: Garagentor
  676.                   icon: mdi:garage-open
  677.                   tap_action:
  678.                     action: more-info
  679.               - type: conditional
  680.                 conditions:
  681.                   - entity: binary_sensor.contact_sensor_garage_offnet_3
  682.                     state: 'on'
  683.                 card:
  684.                   type: custom:bubble-card
  685.                   card_type: button
  686.                   entity: binary_sensor.contact_sensor_garage_offnet_3
  687.                   name: Garagentür
  688.                   icon: mdi:door-open
  689.                   tap_action:
  690.                     action: more-info
  691.               - type: conditional
  692.                 conditions:
  693.                   - entity: binary_sensor.contact_sensor_buro_offnet_10
  694.                     state: 'on'
  695.                 card:
  696.                   type: custom:bubble-card
  697.                   card_type: button
  698.                   entity: binary_sensor.contact_sensor_buro_offnet_10
  699.                   name: Büro
  700.                   icon: mdi:window-open-variant
  701.                   tap_action:
  702.                     action: more-info
  703.               - type: conditional
  704.                 conditions:
  705.                   - entity: binary_sensor.contact_sensor_g_wc_offnet_11
  706.                     state: 'on'
  707.                 card:
  708.                   type: custom:bubble-card
  709.                   card_type: button
  710.                   entity: binary_sensor.contact_sensor_g_wc_offnet_11
  711.                   name: G-WC
  712.                   icon: mdi:window-open-variant
  713.                   tap_action:
  714.                     action: more-info
  715.               - type: conditional
  716.                 conditions:
  717.                   - entity: binary_sensor.contact_sensor_htr_offnet_12
  718.                     state: 'on'
  719.                 card:
  720.                   type: custom:bubble-card
  721.                   card_type: button
  722.                   entity: binary_sensor.contact_sensor_htr_offnet_12
  723.                   name: HTR
  724.                   icon: mdi:window-open-variant
  725.                   tap_action:
  726.                     action: more-info
  727.               - type: conditional
  728.                 conditions:
  729.                   - entity: binary_sensor.contact_sensor_terrasse_mitte_offnet_4
  730.                     state: 'on'
  731.                 card:
  732.                   type: custom:bubble-card
  733.                   card_type: button
  734.                   entity: binary_sensor.contact_sensor_terrasse_mitte_offnet_4
  735.                   name: Terrasse M
  736.                   icon: mdi:door-sliding-open
  737.                   tap_action:
  738.                     action: more-info
  739.               - type: conditional
  740.                 conditions:
  741.                   - entity: binary_sensor.contact_sensor_terrasse_rechts_offnet_2
  742.                     state: 'on'
  743.                 card:
  744.                   type: custom:bubble-card
  745.                   card_type: button
  746.                   entity: binary_sensor.contact_sensor_terrasse_rechts_offnet_2
  747.                   name: Terrasse R
  748.                   icon: mdi:door-open
  749.                   tap_action:
  750.                     action: more-info
  751.               - type: conditional
  752.                 conditions:
  753.                   - entity: binary_sensor.contact_sensor_kuche_offnet_9
  754.                     state: 'on'
  755.                 card:
  756.                   type: custom:bubble-card
  757.                   card_type: button
  758.                   entity: binary_sensor.contact_sensor_kuche_offnet_9
  759.                   name: Küche
  760.                   icon: mdi:window-open
  761.                   tap_action:
  762.                     action: more-info
  763.               - type: conditional
  764.                 conditions:
  765.                   - entity: binary_sensor.contact_sensor_esszimmer_offnet_7
  766.                     state: 'on'
  767.                 card:
  768.                   type: custom:bubble-card
  769.                   card_type: button
  770.                   entity: binary_sensor.contact_sensor_esszimmer_offnet_7
  771.                   name: Esszimmer
  772.                   icon: mdi:silverware
  773.                   tap_action:
  774.                     action: more-info
  775.               - type: conditional
  776.                 conditions:
  777.                   - entity: binary_sensor.contact_sensor_emil_links_offnet_5
  778.                     state: 'on'
  779.                 card:
  780.                   type: custom:bubble-card
  781.                   card_type: button
  782.                   entity: binary_sensor.contact_sensor_emil_links_offnet_5
  783.                   name: Emil L
  784.                   icon: mdi:baby
  785.                   tap_action:
  786.                     action: more-info
  787.               - type: conditional
  788.                 conditions:
  789.                   - entity: binary_sensor.contact_sensor_schrankraum_offnet_6
  790.                     state: 'on'
  791.                 card:
  792.                   type: custom:bubble-card
  793.                   card_type: button
  794.                   entity: binary_sensor.contact_sensor_schrankraum_offnet_6
  795.                   name: Schrankraum
  796.                   icon: mdi:bag-suitcase
  797.                   tap_action:
  798.                     action: more-info
  799.               - type: conditional
  800.                 conditions:
  801.                   - entity: binary_sensor.contact_sensor_ankleide_offnet
  802.                     state: 'on'
  803.                 card:
  804.                   type: custom:bubble-card
  805.                   card_type: button
  806.                   entity: binary_sensor.contact_sensor_ankleide_offnet
  807.                   name: Ankleide
  808.                   icon: mdi:hanger
  809.                   tap_action:
  810.                     action: more-info
  811.               - type: conditional
  812.                 conditions:
  813.                   - entity: binary_sensor.contact_sensor_sport_links_offnet_5
  814.                     state: 'on'
  815.                 card:
  816.                   type: custom:bubble-card
  817.                   card_type: button
  818.                   entity: binary_sensor.contact_sensor_sport_links_offnet_5
  819.                   name: Sport links
  820.                   icon: mdi:dumbbell
  821.                   tap_action:
  822.                     action: more-info
  823.               - type: conditional
  824.                 conditions:
  825.                   - entity: binary_sensor.contact_sensor_sport_rechts_offnet
  826.                     state: 'on'
  827.                 card:
  828.                   type: custom:bubble-card
  829.                   card_type: button
  830.                   entity: binary_sensor.contact_sensor_sport_rechts_offnet
  831.                   name: Sport rechts
  832.                   icon: mdi:dumbbell
  833.                   tap_action:
  834.                     action: more-info
  835.               - type: conditional
  836.                 conditions:
  837.                   - entity: binary_sensor.contact_sensor_post_offnet
  838.                     state: 'on'
  839.                 card:
  840.                   type: custom:bubble-card
  841.                   card_type: button
  842.                   entity: binary_sensor.contact_sensor_post_offnet
  843.                   name: Briefkasten
  844.                   icon: mdi:postage-stamp
  845.                   tap_action:
  846.                     action: more-info
  847.             columns: 2
  848.           - type: horizontal-stack
  849.             cards:
  850.               - type: conditional
  851.                 conditions:
  852.                   - condition: state
  853.                     entity: input_boolean.erreichbarkeit_kamera_eingang
  854.                     state: 'off'
  855.                 card:
  856.                   type: custom:mushroom-template-card
  857.                   primary: Kamera am Eingang nicht mehr erreichbar
  858.                   secondary: >-
  859.                     Seit  {% set s= ((as_timestamp(now()) -
  860.                     as_timestamp(states.input_boolean.erreichbarkeit_kamera_eingang.last_changed))
  861.                     / 60) | round(0) %} {% if s>50 %}{{(s/60)|round(0)}}h
  862.                     {{s%60}}{% else %}{{s}}{% endif %}min
  863.                   icon: mdi:cctv-off
  864.                   icon_color: red
  865.               - type: conditional
  866.                 conditions:
  867.                   - condition: state
  868.                     entity: input_boolean.erreichbarkeit_kamera_garage
  869.                     state: 'off'
  870.                 card:
  871.                   type: custom:mushroom-template-card
  872.                   primary: Kamera an der Garage nicht mehr erreichbar
  873.                   secondary: >-
  874.                     Seit  {% set s= ((as_timestamp(now()) -
  875.                     as_timestamp(states.input_boolean.erreichbarkeit_kamera_garage.last_changed))
  876.                     / 60) | round(0) %} {% if s>50 %}{{(s/60)|round(0)}}h
  877.                     {{s%60}}{% else %}{{s}}{% endif %}min
  878.                   icon: mdi:cctv-off
  879.                   icon_color: red
  880.               - type: conditional
  881.                 conditions:
  882.                   - condition: state
  883.                     entity: input_boolean.erreichbarkeit_kamera_seite
  884.                     state: 'off'
  885.                 card:
  886.                   type: custom:mushroom-template-card
  887.                   primary: Kamera an der Seite nicht mehr erreichbar
  888.                   secondary: >-
  889.                     Seit  {% set s= ((as_timestamp(now()) -
  890.                     as_timestamp(states.input_boolean.erreichbarkeit_kamera_seite.last_changed))
  891.                     / 60) | round(0) %} {% if s>50 %}{{(s/60)|round(0)}}h
  892.                     {{s%60}}{% else %}{{s}}{% endif %}min
  893.                   icon: mdi:cctv-off
  894.                   icon_color: red
  895.               - type: conditional
  896.                 conditions:
  897.                   - condition: state
  898.                     entity: input_boolean.erreichbarkeit_kamera_garten
  899.                     state: 'off'
  900.                 card:
  901.                   type: custom:mushroom-template-card
  902.                   primary: Kamera im Garten nicht mehr erreichbar
  903.                   secondary: >-
  904.                     Seit  {% set s= ((as_timestamp(now()) -
  905.                     as_timestamp(states.input_boolean.erreichbarkeit_kamera_garten.last_changed))
  906.                     / 60) | round(0) %} {% if s>50 %}{{(s/60)|round(0)}}h
  907.                     {{s%60}}{% else %}{{s}}{% endif %}min
  908.                   icon: mdi:cctv-off
  909.                   icon_color: red
  910.           - type: conditional
  911.             conditions:
  912.               - condition: screen
  913.                 media_query: '(min-width: 1024px)'
  914.             card:
  915.               type: custom:clock-weather-card
  916.               entity: weather.openweathermap
  917.               sun_entity: sun.sun
  918.               weather_icon_type: line
  919.               animated_icon: true
  920.               forecast_rows: 7
  921.               locale: de
  922.               time_format: 24
  923.               hide_today_section: false
  924.               hide_forecast_section: false
  925.           - type: conditional
  926.             conditions:
  927.               - condition: screen
  928.                 media_query: '(min-width: 0px) and (max-width: 1023px)'
  929.             card:
  930.               show_current: true
  931.               show_forecast: false
  932.               type: weather-forecast
  933.               entity: weather.openweathermap
  934.               forecast_type: daily
  935.               name: Duisburg
  936.           - type: custom:mushroom-title-card
  937.             title: Shortcut
  938.           - type: horizontal-stack
  939.             cards:
  940.               - type: custom:mushroom-template-card
  941.                 primary: Alles aus
  942.                 icon: mdi:power
  943.                 icon_color: red
  944.                 entity: sensor.solaredge_power_consumption
  945.                 tap_action:
  946.                   action: call-service
  947.                   service: script.neues_skript
  948.                   data: {}
  949.                   target: {}
  950.                 layout: vertical
  951.                 secondary: ''
  952.               - type: custom:mushroom-template-card
  953.                 primary: Kamera
  954.                 secondary: ''
  955.                 icon: mdi:webcam
  956.                 icon_color: >-
  957.                   {% if states('switch.baby_kamera')=='on' %}yellow{% else
  958.                   %}grey{% endif %}
  959.                 entity: switch.baby_kamera
  960.                 tap_action:
  961.                   action: toggle
  962.                 layout: vertical
  963.               - type: custom:mushroom-template-card
  964.                 primary: Garage
  965.                 secondary: >+
  966.                   {% if states('cover.smart_garage_door_garage')=='open'%}
  967.                     {%- set time = (as_timestamp(now()) - as_timestamp(states.cover.smart_garage_door_garage.last_changed)) | int %}
  968.                     {%- set minutes = ((time % 3600) // 60) %}
  969.                     {%- set minutes = '{}min'.format(minutes) if minutes > 0 else '' %}
  970.                     {%- set hours = ((time % 86400) // 3600) %}
  971.                     {%- set hours = 'Seit {}h '.format(hours) if hours > 0 else '' %}
  972.                     {%- set days = (time // 86400) %}
  973.                     {%- set days = '{}days '.format(days) if days > 0 else '' %}
  974.                     {{ 'Auf: < 1min' if time < 60 else days + hours + minutes }}
  975.                   {% elif states('cover.smart_garage_door_garage')=='opening'%}
  976.                   öffnet
  977.  
  978.                   {% elif states('cover.smart_garage_door_garage')=='closing'%}
  979.                   schließt {% endif %}
  980.  
  981.                 icon: >-
  982.                   {% if states('cover.smart_garage_door_garage')=='open'
  983.                   %}mdi:garage-open{% else %}mdi:garage{% endif %}
  984.                 icon_color: >+
  985.                   {% if states('cover.smart_garage_door_garage')=='open'%}orange
  986.  
  987.                   {% elif states('cover.smart_garage_door_garage')=='opening'%}
  988.                   red
  989.  
  990.                   {% elif states('cover.smart_garage_door_garage')=='closing'%}
  991.                   green
  992.  
  993.                   {% else%} grey {% endif %}
  994.  
  995.                 entity: cover.smart_garage_door_garage
  996.                 tap_action:
  997.                   action: toggle
  998.                 layout: vertical
  999.               - type: conditional
  1000.                 conditions:
  1001.                   - condition: screen
  1002.                     media_query: '(min-width: 1024px) and (max-width: 1279px)'
  1003.                 card:
  1004.                   type: custom:mushroom-template-card
  1005.                   primary: 3min auf
  1006.                   icon: >-
  1007.                     {% if states('cover.smart_garage_door_garage')=='open'
  1008.                     %}mdi:garage-alert{% else %}mdi:garage-lock{% endif %}
  1009.                   secondary: >
  1010.                     {% if states('cover.smart_garage_door_garage')=='open'%}
  1011.                       {%- set time = (as_timestamp(now()) - as_timestamp(states.cover.smart_garage_door_garage.last_changed)) | int %}
  1012.                       {%- set minutes = ((time % 3600) // 60) %}
  1013.                       {%- set minutes = '{}min'.format(minutes) if minutes > 0 else '' %}
  1014.                       {%- set hours = ((time % 86400) // 3600) %}
  1015.                       {%- set hours = 'Seit {}h '.format(hours) if hours > 0 else '' %}
  1016.                       {%- set days = (time // 86400) %}
  1017.                       {%- set days = '{}days '.format(days) if days > 0 else '' %}: < 1min' if time < 60 else days + hours + minutes }}
  1018.                    {% elif
  1019.                    states('cover.smart_garage_door_garage')=='opening'%} öffnet
  1020.  
  1021.                    {% elif
  1022.                    states('cover.smart_garage_door_garage')=='closing'%}
  1023.                    schließt
  1024.  
  1025.                    {% endif %}
  1026.                  icon_color: >-
  1027.                    {% if
  1028.                    states('input_boolean.gedachtnis_garage_schliessen')=='on'
  1029.                    %}green{% else %}grey{% endif %}
  1030.                  entity: input_boolean.gedachtnis_garage_schliessen
  1031.                  tap_action:
  1032.                    action: call-service
  1033.                    service: script.garage_auf_3min
  1034.                    target: {}
  1035.                  layout: vertical
  1036.      - type: vertical-stack
  1037.        cards:
  1038.          - type: custom:mushroom-title-card
  1039.            title: Rollos
  1040.            title_tap_action:
  1041.              action: navigate
  1042.              navigation_path: /lovelace-huckingen/rollos
  1043.          - type: horizontal-stack
  1044.            cards:
  1045.              - type: custom:mushroom-template-card
  1046.                icon: mdi:white-balance-sunny
  1047.                primary: EG auf
  1048.                layout: vertical
  1049.                tap_action:
  1050.                  action: call-service
  1051.                  service: script.guten_morgen_eg
  1052.                  target: {}
  1053.                icon_color: >-
  1054.                  {% if (state_attr('cover.esszimmer', 'current_position')|int >
  1055.                  50)
  1056.                    or (state_attr('cover.terrasse_links', 'current_position')|int > 50)
  1057.                    or (state_attr('cover.buro_klein', 'current_position')|int > 50) %}
  1058.                    yellow
  1059.                  {% endif %}
  1060.                secondary: >-
  1061.                  {% set open=0 %}
  1062.  
  1063.                  {% if (state_attr('cover.terrasse_links', 'current_position')
  1064.                  |int > 50) %} {% set open = open+1 %}  {% endif %}
  1065.  
  1066.                  {% if (state_attr('cover.terrasse_mitte', 'current_position')
  1067.                  |int > 50) %} {% set open = open+1 %}  {% endif %}
  1068.  
  1069.                  {% if (state_attr('cover.terrasse_rechts', 'current_position')
  1070.                  |int > 50) %} {% set open = open+1 %}  {% endif %}
  1071.  
  1072.                  {% if (state_attr('cover.esszimmer', 'current_position') |int
  1073.                  > 50) %} {% set open = open+1 %}  {% endif %}
  1074.  
  1075.                  {% if (state_attr('cover.kuche', 'current_position') |int >
  1076.                  50) %} {% set open = open+1 %}  {% endif %}
  1077.  
  1078.                  {% if (state_attr('cover.gaste_wc', 'current_position') |int >
  1079.                  50) %} {% set open = open+1 %}  {% endif %}
  1080.  
  1081.                  {% if (state_attr('cover.htr', 'current_position') |int > 50)
  1082.                  %} {% set open = open+1 %}  {% endif %}
  1083.  
  1084.                  {% if (state_attr('cover.buro_strasse', 'current_position')
  1085.                  |int > 50) %} {% set open = open+1 %}  {% endif %}
  1086.  
  1087.                  {% if (state_attr('cover.treppe', 'current_position') |int >
  1088.                  50) %} {% set open = open+1 %}  {% endif %}
  1089.  
  1090.                  {% if (state_attr('cover.buro_klein', 'current_position') |int
  1091.                  > 50) %} {% set open = open+1 %}  {% endif %}
  1092.  
  1093.                  {{ open }} auf
  1094.                badge_icon: mdi:home-floor-0
  1095.              - type: custom:mushroom-template-card
  1096.                icon: mdi:moon-waning-crescent
  1097.                primary: EG zu
  1098.                icon_color: >-
  1099.                  {% if (state_attr('cover.esszimmer', 'current_position')|int <
  1100.                  50)
  1101.                    and (state_attr('cover.terrasse_links', 'current_position')|int < 50)
  1102.                    and (state_attr('cover.buro_klein', 'current_position')|int < 50) %}
  1103.                    blue
  1104.                  {% endif %}
  1105.                tap_action:
  1106.                  action: call-service
  1107.                  service: script.1664345375122
  1108.                  target: {}
  1109.                secondary: >-
  1110.                  {% set open=0 %}
  1111.  
  1112.                  {% if (state_attr('cover.terrasse_links', 'current_position')
  1113.                  |int > 50) %} {% set open = open+1 %}  {% endif %}
  1114.  
  1115.                  {% if (state_attr('cover.terrasse_mitte', 'current_position')
  1116.                  |int > 50) %} {% set open = open+1 %}  {% endif %}
  1117.  
  1118.                  {% if (state_attr('cover.terrasse_rechts', 'current_position')
  1119.                  |int > 50) %} {% set open = open+1 %}  {% endif %}
  1120.  
  1121.                  {% if (state_attr('cover.esszimmer', 'current_position') |int
  1122.                  > 50) %} {% set open = open+1 %}  {% endif %}
  1123.  
  1124.                  {% if (state_attr('cover.kuche', 'current_position') |int >
  1125.                  50) %} {% set open = open+1 %}  {% endif %}
  1126.  
  1127.                  {% if (state_attr('cover.gaste_wc', 'current_position') |int >
  1128.                  50) %} {% set open = open+1 %}  {% endif %}
  1129.  
  1130.                  {% if (state_attr('cover.htr', 'current_position') |int > 50)
  1131.                  %} {% set open = open+1 %}  {% endif %}
  1132.  
  1133.                  {% if (state_attr('cover.buro_strasse', 'current_position')
  1134.                  |int > 50) %} {% set open = open+1 %}  {% endif %}
  1135.  
  1136.                  {% if (state_attr('cover.treppe', 'current_position') |int >
  1137.                  50) %} {% set open = open+1 %}  {% endif %}
  1138.  
  1139.                  {% if (state_attr('cover.buro_klein', 'current_position') |int
  1140.                  > 50) %} {% set open = open+1 %}  {% endif %}
  1141.  
  1142.                  {{ 10-open }} zu
  1143.                layout: vertical
  1144.                badge_icon: mdi:home-floor-0
  1145.              - type: custom:mushroom-template-card
  1146.                icon: mdi:white-balance-sunny
  1147.                primary: OG auf
  1148.                icon_color: >-
  1149.                  {% if (state_attr('cover.ankleide', 'current_position')|int >
  1150.                  50)
  1151.                    and (state_attr('cover.sport_links', 'current_position')|int > 50)
  1152.                    and (state_attr('cover.emil_rechts', 'current_position')|int > 50) %}
  1153.                    yellow
  1154.                  {% endif %}
  1155.                tap_action:
  1156.                  action: call-service
  1157.                  service: script.guten_morgen_og
  1158.                  target: {}
  1159.                secondary: >-
  1160.                  {% set open=0 %}
  1161.  
  1162.                  {% if (state_attr('cover.emil_rechts', 'current_position')
  1163.                  |int > 50) %} {% set open = open+1 %}  {% endif %}
  1164.  
  1165.                  {% if (state_attr('cover.sport_links', 'current_position')
  1166.                  |int > 50) %} {% set open = open+1 %}  {% endif %}
  1167.  
  1168.                  {% if (state_attr('cover.schrankraum', 'current_position')
  1169.                  |int > 50) %} {% set open = open+1 %}  {% endif %}
  1170.  
  1171.                  {% if (state_attr('cover.sport_rechts', 'current_position')
  1172.                  |int > 50) %} {% set open = open+1 %}  {% endif %}
  1173.  
  1174.                  {% if (state_attr('cover.ankleide', 'current_position') |int >
  1175.                  50) %} {% set open = open+1 %}  {% endif %}
  1176.  
  1177.                  {% if (state_attr('cover.bad', 'current_position') |int > 60)
  1178.                  %} {% set open = open+1 %}  {% endif %}
  1179.  
  1180.                  {% if (state_attr('cover.eltern_rechts', 'current_position')
  1181.                  |int > 50) %} {% set open = open+1 %}  {% endif %}
  1182.  
  1183.                  {% if (state_attr('cover.eltern_klein', 'current_position')
  1184.                  |int > 50) %} {% set open = open+1 %}  {% endif %}
  1185.  
  1186.                  {% if (state_attr('cover.emil_links', 'current_position') |int
  1187.                  > 50) %} {% set open = open+1 %}  {% endif %}
  1188.  
  1189.                  {{ open }} auf
  1190.                layout: vertical
  1191.                badge_icon: mdi:home-floor-1
  1192.              - type: custom:mushroom-template-card
  1193.                icon: mdi:moon-waning-crescent
  1194.                primary: OG zu
  1195.                icon_color: >-
  1196.                  {% if (state_attr('cover.ankleide', 'current_position')|int <
  1197.                  50)
  1198.                    and (state_attr('cover.sport_links', 'current_position')|int < 50)
  1199.                    and (state_attr('cover.emil_rechts', 'current_position')|int < 50) %}
  1200.                    blue
  1201.                  {% endif %}
  1202.                tap_action:
  1203.                  action: call-service
  1204.                  service: script.1664344364754
  1205.                  target: {}
  1206.                secondary: >-
  1207.                  {% set open=0 %}
  1208.  
  1209.                  {% if (state_attr('cover.emil_rechts', 'current_position')
  1210.                  |int > 50) %} {% set open = open+1 %}  {% endif %}
  1211.  
  1212.                  {% if (state_attr('cover.sport_links', 'current_position')
  1213.                  |int > 50) %} {% set open = open+1 %}  {% endif %}
  1214.  
  1215.                  {% if (state_attr('cover.schrankraum', 'current_position')
  1216.                  |int > 50) %} {% set open = open+1 %}  {% endif %}
  1217.  
  1218.                  {% if (state_attr('cover.sport_rechts', 'current_position')
  1219.                  |int > 50) %} {% set open = open+1 %}  {% endif %}
  1220.  
  1221.                  {% if (state_attr('cover.ankleide', 'current_position') |int >
  1222.                  50) %} {% set open = open+1 %}  {% endif %}
  1223.  
  1224.                  {% if (state_attr('cover.bad', 'current_position') |int > 60)
  1225.                  %} {% set open = open+1 %}  {% endif %}
  1226.  
  1227.                  {% if (state_attr('cover.eltern_rechts', 'current_position')
  1228.                  |int > 50) %} {% set open = open+1 %}  {% endif %}
  1229.  
  1230.                  {% if (state_attr('cover.eltern_klein', 'current_position')
  1231.                  |int > 50) %} {% set open = open+1 %}  {% endif %}
  1232.  
  1233.                  {% if (state_attr('cover.emil_links', 'current_position') |int
  1234.                  > 50) %} {% set open = open+1 %}  {% endif %}
  1235.  
  1236.                  {{ 9 - open }} zu
  1237.                layout: vertical
  1238.                badge_icon: mdi:home-floor-1
  1239.          - type: custom:mushroom-title-card
  1240.            title: Stecker
  1241.            title_tap_action:
  1242.              action: navigate
  1243.              navigation_path: /lovelace-huckingen/lights
  1244.          - type: horizontal-stack
  1245.            cards:
  1246.              - type: custom:mushroom-template-card
  1247.                primary: Büro 1
  1248.                secondary: Verbrauch {{states('sensor.steckdose_buro_leistung_4')}} W
  1249.                icon: mdi:microsoft-office
  1250.                icon_color: >-
  1251.                  {% if states('switch.steckdose_buro_schalter_4')=='on'
  1252.                  %}green{% else %}grey{%endif%}
  1253.                entity: switch.steckdose_buro_schalter_4
  1254.              - type: custom:mushroom-template-card
  1255.                primary: Büro 2
  1256.                secondary: Verbrauch {{states('sensor.steckdose_gym_leistung_2')}} W
  1257.                icon: mdi:chair-rolling
  1258.                icon_color: >-
  1259.                  {% if states('switch.steckdose_gym_schalter_2')=='on'
  1260.                  %}green{% else %}grey{%endif%}
  1261.                entity: switch.steckdose_gym_schalter_2
  1262.          - type: custom:mushroom-title-card
  1263.            title: Energie
  1264.            title_tap_action:
  1265.              action: navigate
  1266.              navigation_path: /lovelace-huckingen/solar
  1267.            subtitle: >-
  1268.              {% if states('sensor.varta_State') == '2' %} 🔋 Noch ca. {{((5.86
  1269.              - 5.86 * states('sensor.varta_soc') | int / 100) * 1000 /
  1270.              states('sensor.varta_charge') | int)| round(1)}}h {% elif
  1271.              states('sensor.varta_State') == '3' %} 🪫 Hält noch ca.
  1272.              {{(states('sensor.varta_soc_kwatt') | float /
  1273.              states('sensor.solaredge_power_consumption') | float ) |
  1274.              round(1)}}h{% elif states('sensor.solar_exported_watt') | int > 0
  1275.              %} 🤑 Strom wird exportiert ({{
  1276.              (states('sensor.pv_exported_energey') | float * 6.3) | round(1) }}
  1277.              Cent) {% elif states('sensor.varta_activepower') | int > 0 %} ⚡
  1278.              PV-Strom wird direkt verbraucht {% else %} 😒
  1279.              {{states('sensor.pv_imported_energey')}}kW für {{'%.2f' |
  1280.              format(states('sensor.pv_imported_energey')|float * 0.213)}}€
  1281.              eingekauft {% if states('sensor.pv_exported_energey') | int > 0 %}
  1282.              & {{ (states('sensor.pv_exported_energey') | float ) | round(1) }}
  1283.              kW verkauft ({{ (states('sensor.pv_exported_energey') | float *
  1284.              6.3) | round(1) }} Cent) {% endif %}
  1285.  
  1286.              {% endif %}
  1287.          - type: horizontal-stack
  1288.            cards:
  1289.              - type: custom:mushroom-template-card
  1290.                primary: '{{states(''sensor.varta_soc'')}}%'
  1291.                secondary: Kapazität
  1292.                icon: >-
  1293.                  {% set soc = states('sensor.varta_soc')|int %} {% if
  1294.                  states('sensor.varta_charge') %}
  1295.                    {% if soc > 90 %} mdi:battery-charging
  1296.                    {% elif soc > 80 %} mdi:battery-charging-80
  1297.                    {% elif soc > 70 %} mdi:battery-charging-70
  1298.                    {% elif soc > 60 %} mdi:battery-charging-60
  1299.                    {% elif soc > 50 %} mdi:battery-charging-50
  1300.                    {% elif soc > 40 %} mdi:battery-charging-40
  1301.                    {% elif soc > 30 %} mdi:battery-charging-30
  1302.                    {% elif soc > 20 %} mdi:battery-charging-20
  1303.                    {% elif soc > 10 %} mdi:battery-charging-10
  1304.                    {% else %} mdi:battery-off-outline
  1305.                    {% endif %}
  1306.                  {% else %}
  1307.                    {% if soc > 90 %} mdi:battery
  1308.                    {% elif soc > 80 %} mdi:battery-80
  1309.                    {% elif soc > 70 %} mdi:battery-70
  1310.                    {% elif soc > 60 %} mdi:battery-60
  1311.                    {% elif soc > 50 %} mdi:battery-50
  1312.                    {% elif soc > 40 %} mdi:battery-40
  1313.                    {% elif soc > 30 %} mdi:battery-30
  1314.                    {% elif soc > 20 %} mdi:battery-20
  1315.                    {% elif soc > 10 %} mdi:battery-10
  1316.                    {% else %} mdi:battery-off-outline
  1317.                    {% endif %}
  1318.                  {% endif %}
  1319.                icon_color: |-
  1320.                  {% if states('sensor.varta_soc')|int > 75 %} green
  1321.                  {% elif states('sensor.varta_soc')|int > 50 %} yellow
  1322.                  {% elif states('sensor.varta_soc')|int > 25 %} orange
  1323.                  {% else %} grey
  1324.                  {% endif %}
  1325.                entity: sensor.varta_soc
  1326.                tap_action:
  1327.                  action: more-info
  1328.                layout: vertical
  1329.              - type: custom:mushroom-template-card
  1330.                primary: >-
  1331.                  {{ ( states('sensor.solaredge_power_consumption') | float *
  1332.                  1000 ) | int}} W
  1333.                secondary: Verbrauch
  1334.                icon: mdi:lightning-bolt
  1335.                icon_color: >-
  1336.                  {% set cur = states('sensor.solaredge_current_power') |int %}
  1337.  
  1338.                  {% set con = ( states('sensor.solaredge_power_consumption') |
  1339.                  float * 1000 ) | int %}
  1340.  
  1341.                  {% if (con - cur) < 100 %} green
  1342.  
  1343.                  {% else %} red {% endif %}
  1344.                entity: sensor.solaredge_power_consumption
  1345.                tap_action:
  1346.                  action: more-info
  1347.                layout: vertical
  1348.              - type: custom:mushroom-template-card
  1349.                primary: '{{states(''sensor.solaredge_current_power'') | int}} W'
  1350.                secondary: PV-Energie
  1351.                icon: >-
  1352.                  {% if states('sensor.solaredge_current_power')|int > 0 %}
  1353.                  mdi:sun-wireless-outline
  1354.  
  1355.                  {% else %} mdi:emoticon-sad
  1356.  
  1357.                  {% endif %}
  1358.                icon_color: >-
  1359.                  {% if states('sensor.solaredge_current_power')|int > 0 %}
  1360.                  yellow
  1361.  
  1362.                  {% else %} grey
  1363.  
  1364.                  {% endif %}
  1365.                tap_action:
  1366.                  action: more-info
  1367.                layout: vertical
  1368.                entity: sensor.solaredge_current_power
  1369.                badge_color: ''
  1370.              - type: custom:mushroom-template-card
  1371.                primary: >-
  1372.                  {% if states('sensor.pv_exported_energey') | float > 0.05 %}
  1373.                  {{(states('sensor.pv_exported_energey')|float * 1000) |
  1374.                  round()}} {% else %} 0 {% endif %} W
  1375.                secondary: Export
  1376.                icon: >-
  1377.                  {% if states('sensor.pv_exported_energey')|float > 0 %}
  1378.                  mdi:emoticon-cool
  1379.  
  1380.                  {% else %} mdi:emoticon-sad
  1381.  
  1382.                  {% endif %}
  1383.                icon_color: |-
  1384.                  {% if states('sensor.pv_exported_energey')|float > 1 %} cyan
  1385.                  {% else %} grey
  1386.                  {% endif %}
  1387.                tap_action:
  1388.                  action: more-info
  1389.                layout: vertical
  1390.                entity: sensor.pv_exported_energey
  1391.              - type: custom:mushroom-template-card
  1392.                primary: >-
  1393.                  {% if states('sensor.pv_production_energey') | float > 0.05 %}
  1394.                  {{(states('sensor.pv_production_energey')|float*1000) |
  1395.                  round(0)}} {% else %} 0 {% endif %} W
  1396.                secondary: Produktion
  1397.                icon: >-
  1398.                  {% if states('sensor.pv_production_energey')|float > 0 %}
  1399.                  mdi:weather-sunny
  1400.  
  1401.                  {% else %} mdi:weather-sunny-off
  1402.  
  1403.                  {% endif %}
  1404.                icon_color: >-
  1405.                  {% if states('sensor.pv_production_energey')|float*1000 > 100
  1406.                  %} green
  1407.  
  1408.                  {% else %} grey
  1409.  
  1410.                  {% endif %}
  1411.                tap_action:
  1412.                  action: more-info
  1413.                layout: vertical
  1414.                entity: sensor.pv_production_energey
  1415.      - type: vertical-stack
  1416.        cards:
  1417.          - type: custom:mushroom-title-card
  1418.            title: Temperatur
  1419.            title_tap_action:
  1420.              action: navigate
  1421.              navigation_path: /lovelace-huckingen/temperature
  1422.            subtitle: >-
  1423.              {% set a=states('sensor.temperatur_schlafen_luftfeuchtigkeit')|int
  1424.              %} {% set b=states('sensor.temperatur_htr_luftfeuchtigkeit_3')|int
  1425.              %} {% set
  1426.              c=states('sensor.temperatur_abstellraum_luftfeuchtigkeit_2')|int
  1427.              %} {{min(a,b,c)}}% - {{max(a,b,c)}}% Luftfeuchtigkeit
  1428.          - type: conditional
  1429.            conditions:
  1430.              - entity: sensor.season
  1431.                state: summer
  1432.            card:
  1433.              type: horizontal-stack
  1434.              cards:
  1435.                - type: custom:mushroom-template-card
  1436.                  primary: >-
  1437.                    {% set uv = states('sensor.home_uv_index')|int %} Jetzt: {{
  1438.                    uv }} {% if uv < 3 %} (niedrig) {% elif uv < 6 %} (mittel)
  1439.                    {% elif uv < 8 %} (hoch) {% elif uv < 11 %} (sehr hoch) {%
  1440.                    else %} (extrem) {% endif %}
  1441.                  secondary: UV Index
  1442.                  icon: mdi:sun-compass
  1443.                  entity: sensor.home_uv_index
  1444.                  icon_color: |-
  1445.                    {% set uv = states('sensor.home_uv_index')|int %}
  1446.                    {% if uv < 3 %} green
  1447.                    {% elif uv < 6 %} yellow
  1448.                    {% elif uv < 8 %} orange
  1449.                    {% elif uv < 11 %} red
  1450.                    {% else %} lila
  1451.                    {% endif %}
  1452.                  tap_action:
  1453.                    action: more-info
  1454.                - type: custom:mushroom-template-card
  1455.                  primary: >-
  1456.  
  1457.                    {% if today_at("18:00") > now() %} {% set uv =
  1458.                    states('sensor.home_uv_index_0d') | int %} {% else %} {% set
  1459.                    uv = states('sensor.home_uv_index_1d') | int%} {% endif %}
  1460.                    {% if today_at("18:00") > now() %} Heute: {% else %} Morgen:
  1461.                    {% endif %} {{uv}} {% if uv < 3 %} (niedrig) {% elif uv < 6
  1462.                    %} (mittel) {% elif uv < 8 %} (hoch) {% elif uv < 11 %}
  1463.                    (sehr hoch) {% else %} (extrem) {% endif %}
  1464.                  secondary: UV Index
  1465.                  icon: mdi:sun-compass
  1466.                  entity: sensor.home_uv_index_0d
  1467.                  icon_color: >-
  1468.                    {% if today_at("18:00") > now() %}
  1469.  
  1470.                    {% set uv = states('sensor.home_uv_index_0d') | int %} {%
  1471.                    else %}
  1472.  
  1473.                    {% set uv = states('sensor.home_uv_index_1d') | int%} {%
  1474.                    endif %}
  1475.  
  1476.                    {% if uv < 3 %} green
  1477.  
  1478.                    {% elif uv < 6 %} yellow
  1479.  
  1480.                    {% elif uv < 8 %} orange
  1481.  
  1482.                    {% elif uv < 11 %} red
  1483.  
  1484.                    {% else %} lila
  1485.  
  1486.                    {% endif %}
  1487.                  tap_action:
  1488.                    action: more-info
  1489.          - square: false
  1490.            type: grid
  1491.            columns: 4
  1492.            cards:
  1493.              - type: custom:mushroom-template-card
  1494.                primary: >-
  1495.                  {{states('sensor.room_average_temp_clim_system_1_bt50_30117')
  1496.                  | round(1)}} °C
  1497.                secondary: Wohnen
  1498.                icon: hue:room-living
  1499.                layout: vertical
  1500.                tap_action:
  1501.                  action: more-info
  1502.                entity: sensor.room_average_temp_clim_system_1_bt50_30117
  1503.                icon_color: light-blue
  1504.              - type: custom:mushroom-template-card
  1505.                primary: '{{states(''sensor.temperatur_htr_temperatur_3'') | round(1)}} °C'
  1506.                secondary: HTR
  1507.                icon: mdi:washing-machine
  1508.                layout: vertical
  1509.                tap_action:
  1510.                  action: more-info
  1511.                entity: sensor.temperatur_htr_temperatur_3
  1512.                icon_color: cyan
  1513.              - type: custom:mushroom-template-card
  1514.                primary: >-
  1515.                  {{states('sensor.temperatur_abstellraum_temperatur_2') |
  1516.                  round(1)}} °C
  1517.                secondary: Abstell
  1518.                icon: mdi:bottle-wine-outline
  1519.                layout: vertical
  1520.                tap_action:
  1521.                  action: more-info
  1522.                entity: sensor.temperatur_abstellraum_temperatur_2
  1523.                icon_color: brown
  1524.              - type: custom:mushroom-template-card
  1525.                primary: >-
  1526.                  {{states('sensor.temperatur_schlafen_temperatur') | round(1)}}
  1527.                  °C
  1528.                secondary: Schlafen
  1529.                icon: hue:room-bedroom
  1530.                layout: vertical
  1531.                tap_action:
  1532.                  action: more-info
  1533.                entity: sensor.temperatur_schlafen_temperatur
  1534.                icon_color: pink
  1535.              - type: custom:mushroom-template-card
  1536.                primary: '{{states(''sensor.temperatur_buro_temperatur'') | round(1)}} °C'
  1537.                secondary: Büro
  1538.                icon: mdi:office-building
  1539.                layout: vertical
  1540.                tap_action:
  1541.                  action: more-info
  1542.                entity: sensor.temperatur_buro_temperatur
  1543.                icon_color: yellow
  1544.              - type: custom:mushroom-template-card
  1545.                primary: '{{states(''sensor.temperatur_bad_temperatur'') | round(1)}} °C'
  1546.                secondary: Bad
  1547.                icon: mdi:bathtub
  1548.                layout: vertical
  1549.                tap_action:
  1550.                  action: more-info
  1551.                entity: sensor.temperatur_bad_temperatur
  1552.                icon_color: green
  1553.              - type: custom:mushroom-template-card
  1554.                primary: '{{states(''sensor.temperatur_emil_temperatur'') | round(1)}} °C'
  1555.                secondary: Emil
  1556.                icon: mdi:baby
  1557.                layout: vertical
  1558.                tap_action:
  1559.                  action: more-info
  1560.                entity: sensor.temperatur_emil_temperatur
  1561.                icon_color: teal
  1562.              - type: custom:mushroom-template-card
  1563.                primary: '{{states(''sensor.temperatur_sport_temperatur'') | round(1)}} °C'
  1564.                secondary: Sport
  1565.                icon: mdi:dumbbell
  1566.                layout: vertical
  1567.                tap_action:
  1568.                  action: more-info
  1569.                entity: sensor.temperatur_sport_temperatur
  1570.                icon_color: grey
  1571.          - type: horizontal-stack
  1572.            cards:
  1573.              - type: custom:mushroom-template-card
  1574.                primary: >-
  1575.                  {{states('sensor.current_outdoor_temperature_bt1_30002') |
  1576.                  round(1)}} °C
  1577.                secondary: Draußen
  1578.                icon: hue:outdoor-motion-sensor-temperature
  1579.                layout: horizontal
  1580.                tap_action:
  1581.                  action: more-info
  1582.                entity: sensor.current_outdoor_temperature_bt1_30002
  1583.                icon_color: white
  1584.              - type: custom:mushroom-template-card
  1585.                primary: '{{states(''sensor.home_realfeel_temperature'') | round(1)}} °C'
  1586.                secondary: Gefühlt
  1587.                icon: hue:room-outdoors
  1588.                icon_color: light-green
  1589.                layout: horizontal
  1590.                tap_action:
  1591.                  action: more-info
  1592.                entity: sensor.home_realfeel_temperature
  1593.      - type: vertical-stack
  1594.        cards:
  1595.          - type: custom:mushroom-title-card
  1596.            title: Lüftung
  1597.            title_tap_action:
  1598.              action: navigate
  1599.              navigation_path: /lovelace-huckingen/temperature
  1600.          - type: horizontal-stack
  1601.            cards:
  1602.              - type: custom:mushroom-template-card
  1603.                primary: Stoßlüften
  1604.                icon: mdi:wind-power
  1605.                icon_color: >-
  1606.                  {%if states('input_boolean.gedachtnis_automatisches_luften')
  1607.                  == 'on' %} blue {% else %} grey {% endif %}
  1608.                layout: vertical
  1609.                tap_action:
  1610.                  action: call-service
  1611.                  service: script.luften
  1612.                  target: {}
  1613.                entity: input_boolean.gedachtnis_automatisches_luften
  1614.              - type: custom:mushroom-template-card
  1615.                icon: mdi:air-conditioner
  1616.                primary: Automatik
  1617.                layout: vertical
  1618.                entity: input_boolean.gedachtnis_luftung
  1619.                tap_action:
  1620.                  action: toggle
  1621.                icon_color: |-
  1622.                  {% if states('input_boolean.gedachtnis_luftung') == 'on'
  1623.                  %} blue {% else %} grey {% endif %}
  1624.              - type: custom:mushroom-template-card
  1625.                icon: >
  1626.                  {% set state = states.sensor.kwl_lueftungsstufe.state %} {% if
  1627.                  state == '0' %} mdi:numeric-0-circle {% elif state == '1' %}
  1628.                  mdi:numeric-1-circle {% elif state == '2' %}
  1629.                  mdi:numeric-2-circle {% elif state == '3' %}
  1630.                  mdi:numeric-3-circle {% elif state == '4' %}
  1631.                  mdi:numeric-4-circle {% else %} mdi:numeric-off {% endif %}
  1632.                fill_container: false
  1633.                layout: vertical
  1634.                primary: >-
  1635.                  {% set mapper =  {  '0' : 'Aus',  '1' : 'Feuchteschutz',  '2'
  1636.                  : 'Reduziert',  '3' : 'Nenn',  '4' : 'Intensiv'}  %} {% set
  1637.                  state = states.sensor.kwl_lueftungsstufe.state %} {{
  1638.                  mapper[state] if state in mapper else 'Unknown' }}
  1639.                icon_color: >
  1640.                  {% set state = states.sensor.kwl_lueftungsstufe.state %} {% if
  1641.                  state == '0' %} magenta {% elif state == '1' %} cyan {% elif
  1642.                  state == '2' %} green {% elif state == '3' %} yellow {% elif
  1643.                  state == '4' %} red {% else %} white {% endif %}
  1644.                entity: sensor.kwl_lueftungsstufe
  1645.                tap_action:
  1646.                  action: more-info
  1647.          - type: custom:mushroom-title-card
  1648.            title: Heizung
  1649.            title_tap_action:
  1650.              action: navigate
  1651.              navigation_path: /lovelace-huckingen/heat
  1652.          - type: horizontal-stack
  1653.            cards:
  1654.              - type: conditional
  1655.                conditions:
  1656.                  - condition: state
  1657.                    entity: select.hot_water_demand_mode_40057
  1658.                    state: SMALL
  1659.                card:
  1660.                  type: custom:mushroom-template-card
  1661.                  primary: >-
  1662.                    {{states('sensor.hot_water_charging_bt6_30010')|int|round(0)}}°C
  1663.                  secondary: Charging
  1664.                  icon: mdi:water-thermometer
  1665.                  layout: horizontal
  1666.                  icon_color: >-
  1667.                    {% if (states('sensor.hot_water_charging_bt6_30010')|int <
  1668.                    42) %}
  1669.                      cyan
  1670.                    {% elif (states('sensor.hot_water_charging_bt6_30010')|int <
  1671.                    45) %}
  1672.                      yellow
  1673.                    {% elif (states('sensor.hot_water_charging_bt6_30010')|int
  1674.                    >= 45) %}
  1675.                      red
  1676.                    {% endif %}
  1677.                  entity: sensor.hot_water_charging_bt6_30010
  1678.                  tap_action:
  1679.                    action: more-info
  1680.              - type: conditional
  1681.                conditions:
  1682.                  - condition: state
  1683.                    entity: select.hot_water_demand_mode_40057
  1684.                    state: SMALL
  1685.                card:
  1686.                  type: custom:mushroom-template-card
  1687.                  primary: '{{states(''sensor.hot_water_top_bt7_30009'')|int|round(0)}}°C'
  1688.                  secondary: Top
  1689.                  layout: horizontal
  1690.                  icon: mdi:water-thermometer
  1691.                  icon_color: >-
  1692.                    {% if (states('sensor.hot_water_top_bt7_30009')|int < 42) %}
  1693.                      cyan
  1694.                    {% elif (states('sensor.hot_water_top_bt7_30009')|int < 45)
  1695.                    %}
  1696.                      yellow
  1697.                    {% elif (states('sensor.hot_water_top_bt7_30009')|int >= 45)
  1698.                    %}
  1699.                      red
  1700.                    {% endif %}
  1701.                  entity: sensor.hot_water_top_bt7_30009
  1702.                  tap_action:
  1703.                    action: more-info
  1704.              - type: conditional
  1705.                conditions:
  1706.                  - condition: state
  1707.                    entity: select.hot_water_demand_mode_40057
  1708.                    state: MEDIUM
  1709.                card:
  1710.                  type: custom:mushroom-template-card
  1711.                  secondary: Charging
  1712.                  primary: >-
  1713.                    {{states('sensor.hot_water_charging_bt6_30010')|int|round(0)}}°C
  1714.                  icon: mdi:water-thermometer
  1715.                  layout: horizontal
  1716.                  icon_color: >-
  1717.                    {% if (states('sensor.hot_water_charging_bt6_30010')|int <
  1718.                    43) %}
  1719.                      green
  1720.                    {% elif (states('sensor.hot_water_charging_bt6_30010')|int <
  1721.                    47) %}
  1722.                      yellow
  1723.                    {% elif (states('sensor.hot_water_charging_bt6_30010')|int
  1724.                    >= 47) %}
  1725.                      red
  1726.                    {% endif %}
  1727.                  entity: sensor.hot_water_charging_bt6_30010
  1728.                  tap_action:
  1729.                    action: more-info
  1730.              - type: conditional
  1731.                conditions:
  1732.                  - condition: state
  1733.                    entity: select.hot_water_demand_mode_40057
  1734.                    state: MEDIUM
  1735.                card:
  1736.                  type: custom:mushroom-template-card
  1737.                  secondary: Top
  1738.                  primary: '{{states(''sensor.hot_water_top_bt7_30009'')|int|round(0)}}°C'
  1739.                  icon: mdi:water-thermometer
  1740.                  layout: horizontal
  1741.                  icon_color: >-
  1742.                    {% if (states('sensor.hot_water_top_bt7_30009')|float <
  1743.                    49.6) %}
  1744.                      green
  1745.                    {% elif (states('sensor.hot_water_top_bt7_30009')|float >
  1746.                    49.6) %}
  1747.                      yellow
  1748.                    {% elif (states('sensor.hot_water_top_bt7_30009')|float >=
  1749.                    51.7) %}
  1750.                      red
  1751.                    {% endif %}
  1752.                  entity: sensor.hot_water_top_bt7_30009
  1753.                  tap_action:
  1754.                    action: more-info
  1755.              - type: conditional
  1756.                conditions:
  1757.                  - condition: state
  1758.                    entity: select.hot_water_demand_mode_40057
  1759.                    state: SMART CONTROL
  1760.                card:
  1761.                  type: custom:mushroom-template-card
  1762.                  secondary: Charging
  1763.                  primary: >-
  1764.                    {{states('sensor.hot_water_charging_bt6_30010')|int|round(0)}}°C
  1765.                  icon: mdi:water-thermometer
  1766.                  layout: horizontal
  1767.                  icon_color: >-
  1768.                    {% if (states('sensor.hot_water_charging_bt6_30010')|int <
  1769.                    43) %}
  1770.                      green
  1771.                    {% elif (states('sensor.hot_water_charging_bt6_30010')|int <
  1772.                    47) %}
  1773.                      yellow
  1774.                    {% elif (states('sensor.hot_water_charging_bt6_30010')|int
  1775.                    >= 47) %}
  1776.                      red
  1777.                    {% endif %}
  1778.                  entity: sensor.hot_water_charging_bt6_30010
  1779.                  tap_action:
  1780.                    action: more-info
  1781.              - type: conditional
  1782.                conditions:
  1783.                  - condition: state
  1784.                    entity: select.hot_water_demand_mode_40057
  1785.                    state: SMART CONTROL
  1786.                card:
  1787.                  type: custom:mushroom-template-card
  1788.                  secondary: Top
  1789.                  primary: '{{states(''sensor.hot_water_top_bt7_30009'')|int|round(0)}}°C'
  1790.                  icon: mdi:water-thermometer
  1791.                  layout: horizontal
  1792.                  icon_color: >-
  1793.                    {% if (states('sensor.hot_water_top_bt7_30009')|float <
  1794.                    49.6) %}
  1795.                      green
  1796.                    {% elif (states('sensor.hot_water_top_bt7_30009')|float >
  1797.                    49.6) %}
  1798.                      yellow
  1799.                    {% elif (states('sensor.hot_water_top_bt7_30009')|float >=
  1800.                    51.7) %}
  1801.                      red
  1802.                    {% endif %}
  1803.                  entity: sensor.hot_water_top_bt7_30009
  1804.                  tap_action:
  1805.                    action: more-info
  1806.              - type: custom:mushroom-template-card
  1807.                primary: >-
  1808.                  {% set state=states('select.hot_water_demand_mode_40057') %}
  1809.                  {% if state=='SMALL' %} niedrig {% elif state=='MEDIUM' %}
  1810.                  mittel {% elif state=='LARGE' %} hoch {% elif state=='3.0' %}
  1811.                  comfort? {% elif state=='SMART CONTROL' %} Smart Control {%
  1812.                  else %} {{state}} - Keine Ahnung {% endif %}
  1813.                icon: mdi:water-boiler-alert
  1814.                secondary: Wasser
  1815.                tap_action:
  1816.                  action: more-info
  1817.                entity: select.hot_water_demand_mode_40057
  1818.                layout: horizontal
  1819.                badge_icon: ''
  1820.                badge_color: ''
  1821.                icon_color: >-
  1822.                  {% set state=states('select.hot_water_demand_mode_40057') %}
  1823.                  {% if state=='SMALL' %} blue {% elif state=='MEDIUM' %} orange
  1824.                  {% elif state=='2.0' %} red {% elif state=='LARGE' %} red {%
  1825.                  elif state=='SMART CONTROL' %} cyan {% else %} black {% endif
  1826.                  %}
  1827.                fill_container: true
  1828.          - type: custom:mushroom-title-card
  1829.            title: Kameras
  1830.            subtitle: |-
  1831.              {% set
  1832.               a=max(states('input_datetime.bewegung_eingang'),
  1833.                 states('input_datetime.bewegung_eingang_fahrzeug'),
  1834.                 states('input_datetime.bewegung_eingang_haustier'),
  1835.                 states('input_datetime.bewegung_eingang_person'))
  1836.               %} {% set b=max(states('input_datetime.bewegung_gararage'),
  1837.                 states('input_datetime.bewegung_gararage_fahrzeug'),
  1838.                 states('input_datetime.bewegung_gararage_haustier'),
  1839.                 states('input_datetime.bewegung_gararage_person'))
  1840.               %} {% set c=max(states('input_datetime.bewegung_seite'),
  1841.                 states('input_datetime.bewegung_seite_fahrzeug'),
  1842.                 states('input_datetime.bewegung_seite_haustier'),
  1843.                 states('input_datetime.bewegung_seite_person')) %}
  1844.               {% set d=max(states('input_datetime.bewegung_garten'),
  1845.               states('input_datetime.bewegung_garten_fahrzeug'),
  1846.               states('input_datetime.bewegung_garten_haustier'),
  1847.               states('input_datetime.bewegung_garten_person')) %} {% if a > max(b,c,d)
  1848.               %}
  1849.               {% set w = 'am Eingang' %}{% endif %}
  1850.               {% if b > max(a,c,d) %}{% set w = 'an der Garage' %}{% endif %}
  1851.               {% if c > max(a,b,d) %}{% set w = 'an der Seite' %}{% endif %}
  1852.               {% if d > max(a,b,c) %}{% set w = 'im Garten' %}{% endif %}
  1853.               Letzte Bewegung vor {{ relative_time(max(a,b,c,d) | as_datetime)
  1854.                     | replace("days", "Tagen") | replace("day", "Tag")
  1855.                     | replace("hours", "Stunden") | replace("hour", "Stunde")
  1856.                     | replace("minutes", "Minuten") | replace("minute", "Minute")
  1857.                     | replace("seconds", "Sekunden") }} {{w}}
  1858.            title_tap_action:
  1859.              action: navigate
  1860.              navigation_path: /lovelace-huckingen/security
  1861.            subtitle_tap_action:
  1862.              action: navigate
  1863.              navigation_path: /lovelace-huckingen/security
  1864.          - show_state: false
  1865.            show_name: true
  1866.            camera_view: live
  1867.            type: picture-entity
  1868.            entity: camera.doorbird_live
  1869.            camera_image: camera.doorbird_live
  1870.            name: Haustür
  1871.          - type: horizontal-stack
  1872.            cards:
  1873.              - show_state: false
  1874.                show_name: true
  1875.                camera_view: live
  1876.                type: picture-entity
  1877.                entity: camera.rlc_810a_eingang_main
  1878.                aspect_ratio: '4:3'
  1879.                name: Eingang
  1880.              - show_state: false
  1881.                show_name: true
  1882.                camera_view: live
  1883.                type: picture-entity
  1884.                entity: camera.rlc_810a_garage_main
  1885.                aspect_ratio: '4:3'
  1886.                name: Garage
  1887.          - type: horizontal-stack
  1888.            cards:
  1889.              - show_state: false
  1890.                show_name: true
  1891.                camera_view: live
  1892.                type: picture-entity
  1893.                entity: camera.rlc_810a_seite_main
  1894.                aspect_ratio: '4:3'
  1895.                name: Seite
  1896.              - show_state: false
  1897.                show_name: true
  1898.                camera_view: live
  1899.                type: picture-entity
  1900.                entity: camera.rlc_810a_garten_main
  1901.                aspect_ratio: '4:3'
  1902.                name: Garten
  1903.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement