views:
  - type: sections
    sections:
      - type: grid
        cards:
          - type: custom:auto-entities
            card:
              show_header_toggle: false
              type: entities
              state_color: true
            filter:
              include:
                - options:
                    secondary_info: last-changed
                  sort:
                    method: name
                  label: fenster_turen
                  state: Offen
                - options:
                    secondary_info: last-changed
                  label: fenster_turen
                  state: Gekippt
                - options:
                    secondary_info: last-changed
                  label: fenster_turen
                  state: "on"
              exclude:
                - entity_id: binary_sensor.fenster_state
            sort:
              method: friendly_name
              reverse: false
              numeric: false
              ignore_case: false
              ip: false
            show_empty: false
            unique: true
            visibility:
              - condition: state
                entity: binary_sensor.fenster_state
                state: "on"
              - condition: location
                locations:
                  - home
      - type: grid
        cards:
          - type: heading
            icon: mdi:home-lightbulb-outline
            heading_style: title
            heading: Beleuchtung
          - type: conditional
            conditions: []
            card:
              type: vertical-stack
              cards:
                - type: custom:mushroom-light-card
                  icon: ""
                  entity: light.martha
                  name: Deckenlampe
                - type: custom:mushroom-light-card
                  icon: ""
                  entity: light.led_lampe_martha
                  name: LED Lampe
                  use_light_color: true
                  show_brightness_control: true
                  show_color_control: true
                  collapsible_controls: false
                  show_color_temp_control: false
                  layout: horizontal
                - type: custom:mushroom-light-card
                  icon: mdi:led-strip-variant
                  entity: light.yh_rgb2
                  name: LED Bett
                  use_light_color: true
                  show_brightness_control: true
                  show_color_control: true
                  collapsible_controls: false
                  show_color_temp_control: false
                  layout: horizontal
      - type: grid
        cards:
          - type: heading
            heading_style: title
            heading: "Beschattung "
            icon: mdi:shield-sun-outline
            badges:
              - type: entity
                entity: input_boolean.beschattung_sperre_martha
                icon: mdi:hand-back-right
                show_name: false
                show_state: false
                color: red
                tap_action:
                  action: call-service
                  service: timer.cancel
                  service_data:
                    entity_id: timer.beschattung_sperre_martha
              - type: entity
                entity: binary_sensor.martha_fenster_links_window
                icon: mdi:window-open
                show_name: false
                show_state: false
                color: blue
              - type: entity
                entity: binary_sensor.martha_fenster_rechts_window
                icon: mdi:window-open
                show_name: false
                show_state: false
                color: blue
              - type: entity
                entity: binary_sensor.sonne_auf_gartenseite
                icon: mdi:weather-sunny
                show_name: false
                show_state: false
                color: amber
              - type: entity
                entity: binary_sensor.sonnenschutz_gartenseite_noetig
                icon: mdi:shield-sun
                show_name: false
                show_state: false
                color: amber
              - type: entity
                entity: binary_sensor.beschattung_hitzeschutz_noetig
                icon: mdi:fire
                show_name: false
                show_state: false
                color: deep-orange
          - type: conditional
            conditions: []
            card:
              type: vertical-stack
              cards:
                - type: horizontal-stack
                  cards:
                    - type: custom:mushroom-cover-card
                      show_position_control: true
                      entity: cover.martha
                      primary_info: none
                      hold_action:
                        action: more-info
                      double_tap_action:
                        action: none
                      show_buttons_control: false
                      show_tilt_position_control: false
                - type: horizontal-stack
                  cards:
                    - type: custom:mushroom-chips-card
                      chips:
                        - type: action
                          tap_action:
                            action: call-service
                            service: cover.stop_cover
                            target:
                              device_id: 0365024adcaecac5e2064aa783d0ab64
                            data: {}
                          icon: mdi:stop
                        - type: entity
                          tap_action:
                            action: toggle
                          hold_action:
                            action: none
                          double_tap_action:
                            action: none
                          content_info: name
                          name: 0%
                          entity: scene.martha_rolladen_auf_0
                        - type: entity
                          tap_action:
                            action: toggle
                          hold_action:
                            action: none
                          double_tap_action:
                            action: none
                          name: 60%
                          content_info: name
                          entity: scene.martha_rolladen_auf_60
                        - type: entity
                          tap_action:
                            action: toggle
                          hold_action:
                            action: none
                          double_tap_action:
                            action: none
                          content_info: name
                          name: 100%
                          entity: scene.martha_rolladen_auf_100
                      alignment: center
      - type: grid
        cards:
          - type: heading
            heading_style: title
            heading: Multimedia
            icon: mdi:multimedia
          - type: custom:mushroom-media-player-card
            entity: media_player.martha_lautsprecher
            fill_container: true
            use_media_info: true
            show_volume_level: true
            volume_controls:
              - volume_set
              - volume_buttons
            media_controls:
              - on_off
              - previous
              - play_pause_stop
              - next
            collapsible_controls: false
            grid_options:
              columns: full
        visibility:
          - condition: or
            conditions:
              - condition: and
                conditions:
                  - condition: state
                    entity: media_player.martha_lautsprecher
                    state_not: "off"
                  - condition: state
                    entity: media_player.martha_lautsprecher
                    state_not: unavailable
              - condition: location
                locations:
                  - home
      - type: grid
        cards:
          - initial_view: listWeek
            type: calendar
            entities:
              - calendar.martha_emilia
    badges:
      - type: entity
        show_name: false
        show_state: true
        show_icon: true
        entity: weather.forecast_home
        state_content:
          - temperature
          - state
          - wind_speed
      - type: entity
        show_name: false
        show_state: true
        show_icon: true
        entity: sensor.martha_wandthermostat_temperatur
        icon: mdi:home-thermometer
      - type: entity
        show_name: true
        show_state: true
        show_icon: true
        entity: sensor.martha_fenster_links
        state_content: state
        visibility:
          - condition: state
            entity: sensor.martha_fenster_links
            state_not: Geschlossen
      - type: entity
        show_name: true
        show_state: true
        show_icon: true
        entity: sensor.martha_fenster_rechts
        state_content: state
        visibility:
          - condition: state
            entity: sensor.martha_fenster_rechts
            state_not: Geschlossen
    max_columns: 1
    icon: mdi:teddy-bear
    cards: []
    footer: {}
    visible:
      - user: c5f685dc82c147ae8ba800ce4b019fc0
      - user: 8f6b5918911e4b18b23f6b417ce2dea3
  - type: sections
    sections:
      - type: grid
        cards:
          - type: custom:auto-entities
            card:
              show_header_toggle: false
              type: entities
              state_color: true
            filter:
              include:
                - options:
                    secondary_info: last-changed
                  sort:
                    method: name
                  label: fenster_turen
                  state: Offen
                - options:
                    secondary_info: last-changed
                  label: fenster_turen
                  state: Gekippt
                - options:
                    secondary_info: last-changed
                  label: fenster_turen
                  state: "on"
              exclude:
                - entity_id: binary_sensor.fenster_state
            sort:
              method: friendly_name
              reverse: false
              numeric: false
              ignore_case: false
              ip: false
            show_empty: false
            unique: true
            visibility:
              - condition: state
                entity: binary_sensor.fenster_state
                state: "on"
              - condition: location
                locations:
                  - home
      - type: grid
        cards:
          - type: heading
            icon: mdi:home-lightbulb-outline
            heading_style: title
            heading: Beleuchtung
          - type: conditional
            conditions: []
            card:
              type: vertical-stack
              cards:
                - type: custom:mushroom-light-card
                  icon: ""
                  entity: light.karell
                  name: Deckenlampe
                - type: custom:mushroom-light-card
                  icon: ""
                  entity: light.led_lampe_karell
                  name: LED Lampe
                  use_light_color: true
                  show_brightness_control: true
                  show_color_control: true
                  collapsible_controls: false
                  show_color_temp_control: false
                  layout: horizontal
      - type: grid
        cards:
          - type: heading
            heading_style: title
            heading: "Beschattung "
            icon: mdi:shield-sun-outline
          - type: conditional
            conditions: []
            card:
              type: vertical-stack
              cards:
                - type: horizontal-stack
                  cards:
                    - type: custom:mushroom-cover-card
                      show_position_control: true
                      entity: cover.martha
                      primary_info: none
                      hold_action:
                        action: none
                      double_tap_action:
                        action: none
                - type: horizontal-stack
                  cards:
                    - type: custom:mushroom-chips-card
                      chips:
                        - type: action
                          tap_action:
                            action: call-service
                            service: cover.stop_cover
                            target:
                              device_id: 0365024adcaecac5e2064aa783d0ab64
                            data: {}
                          icon: mdi:stop
                        - type: entity
                          tap_action:
                            action: toggle
                          hold_action:
                            action: none
                          double_tap_action:
                            action: none
                          content_info: name
                          name: 0%
                          entity: scene.martha_rolladen_auf_0
                        - type: entity
                          tap_action:
                            action: toggle
                          hold_action:
                            action: none
                          double_tap_action:
                            action: none
                          name: 60%
                          content_info: name
                          entity: scene.martha_rolladen_auf_60
                        - type: entity
                          tap_action:
                            action: toggle
                          hold_action:
                            action: none
                          double_tap_action:
                            action: none
                          content_info: name
                          name: 100%
                          entity: scene.martha_rolladen_auf_100
                      alignment: center
        visibility:
          - condition: user
            users: []
      - type: grid
        cards:
          - type: heading
            heading_style: title
            heading: Multimedia
            icon: mdi:multimedia
          - type: custom:mushroom-media-player-card
            entity: media_player.karell_lautsprecher
            fill_container: true
            use_media_info: true
            show_volume_level: true
            volume_controls:
              - volume_set
              - volume_buttons
            media_controls:
              - on_off
              - previous
              - play_pause_stop
              - next
            collapsible_controls: false
            grid_options:
              columns: full
        visibility:
          - condition: or
            conditions:
              - condition: and
                conditions:
                  - condition: state
                    entity: media_player.karell_lautsprecher
                    state_not: "off"
                  - condition: state
                    entity: media_player.karell_lautsprecher
                    state_not: unavailable
              - condition: location
                locations:
                  - home
      - type: grid
        column_span: 1
        cards:
          - initial_view: listWeek
            type: calendar
            entities:
              - calendar.karell
              - calendar.brock_jana_yahoo_de
              - calendar.brock_jana_yahoo_de_hausaufgaben
              - calendar.brock_jana_yahoo_de_prufungen
    badges:
      - type: entity
        show_name: false
        show_state: true
        show_icon: true
        entity: weather.forecast_home
        state_content:
          - temperature
          - state
          - wind_speed
      - type: entity
        show_name: false
        show_state: true
        show_icon: true
        entity: sensor.karell_wandthermostat_temperatur
        icon: mdi:home-thermometer
      - type: entity
        show_name: true
        show_state: true
        show_icon: true
        state_content: state
        visibility:
          - condition: state
            entity: sensor.karell_fenster
            state_not: Geschlossen
        entity: sensor.karell_fenster
    max_columns: 1
    icon: mdi:toy-brick-outline
    cards: []
    footer: {}
    visible:
      - user: c5f685dc82c147ae8ba800ce4b019fc0
      - user: ae8d806456e746cbb5651a273b9ebf58
  - type: sections
    max_columns: 1
    icon: mdi:cctv
    path: ""
    sections:
      - type: grid
        cards:
          - type: heading
            heading_style: title
            heading: Kamera
            icon: mdi:video
          - type: custom:advanced-camera-card
            cameras:
              - camera_entity: camera.eingangsbereich_standardauflosung
                capabilities:
                  disable: []
                  disable_except:
                    - live
                reolink:
                  media_resolution: high
            menu:
              buttons:
                iris:
                  enabled: false
            live:
              controls:
                wheel: false
                builtin: false
            status_bar:
              style: none
        visibility:
          - condition: and
            conditions:
              - condition: location
                locations:
                  - home
              - condition: state
                entity: person.enrico_brock
                state_not: home
              - condition: state
                entity: person.jana
                state_not: home
      - type: grid
        cards:
          - type: heading
            heading_style: title
            heading: Kamera
            icon: mdi:video-off
          - type: markdown
            content: |-
              ### Hinweis  

              Die Kamera wird nur dann angezeigt, wenn du allein zu Hause bist.
        visibility:
          - condition: not
            conditions:
              - condition: and
                conditions:
                  - condition: location
                    locations:
                      - home
                  - condition: state
                    entity: person.enrico_brock
                    state_not: home
                  - condition: state
                    entity: person.jana
                    state_not: home
    cards: []
    visible:
      - user: c5f685dc82c147ae8ba800ce4b019fc0
      - user: ae8d806456e746cbb5651a273b9ebf58
      - user: 8f6b5918911e4b18b23f6b417ce2dea3
  - type: sections
    max_columns: 1
    icon: mdi:cog
    path: ""
    sections:
      - type: grid
        cards: []
      - type: grid
        cards:
          - type: heading
            icon: mdi:cog
            heading_style: title
            heading: Einstellungen
          - type: heading
            icon: mdi:shield-sun-outline
            heading_style: subtitle
            heading: Beschattung
          - type: entities
            show_header_toggle: false
            state_color: true
            entities:
              - entity: input_boolean.beschattung_martha_aktiv
                name: Beschattung aktiv
              - entity: input_select.beschattung_martha_profil
                name: Profil
              - entity: input_number.martha_rollo_hitzeschutz_position
                name: Position Komfort anwesend
          - type: heading
            icon: mdi:weather-sunset-up
            heading_style: subtitle
            heading: Morgens
          - type: entities
            show_header_toggle: false
            entities:
              - entity: input_boolean.martha_rollo_morgens_aktiv
                name: Morgens fahren
              - entity: input_datetime.martha_rollo_morgens_zeit
                name: Uhrzeit
                icon: mdi:clock-time-eight-outline
              - entity: input_number.martha_rollo_morgens_position
                name: Position
          - type: heading
            icon: mdi:weather-sunset-down
            heading_style: subtitle
            heading: Abends
          - type: heading
            icon: mdi:calendar-weekend
            heading_style: subtitle
            heading: Wochenende
          - type: entities
            show_header_toggle: false
            entities:
              - entity: input_boolean.martha_rollo_wochenende_aktiv
                name: Sa/So auffahren
              - entity: input_datetime.martha_rollo_wochenende_zeit
                name: Uhrzeit
          - type: entities
            show_header_toggle: false
            entities:
              - entity: input_boolean.martha_rollo_abends_aktiv
                name: Abends fahren
              - entity: input_datetime.martha_rollo_abends_zeit
                name: Uhrzeit
                icon: mdi:clock-time-ten-outline
              - entity: input_number.martha_rollo_abends_position
                name: Position
          - type: heading
            icon: mdi:message-alert-outline
            heading_style: subtitle
            heading: Benachrichtigung
          - type: entities
            entities:
              - entity: automation.benachrichtigung_martha_fenster_oder_tur_offen
                icon: mdi:cellphone-message
        visibility:
          - condition: user
            users:
              - 8f6b5918911e4b18b23f6b417ce2dea3
              - c5f685dc82c147ae8ba800ce4b019fc0
      - type: grid
        cards:
          - type: heading
            icon: mdi:cog
            heading_style: title
            heading: Einstellungen
          - type: heading
            icon: mdi:arrow-decision-auto-outline
            heading_style: subtitle
            heading: Automationen
          - type: entities
            entities:
              - type: custom:template-entity-row
                name: Aktuell keine Automation vorhanden.
                icon: mdi:information-outline
          - type: heading
            heading_style: subtitle
            heading: "Benachrichtigung "
            icon: mdi:message-alert-outline
          - type: entities
            entities:
              - type: custom:template-entity-row
                name: Aktuell keine Benachrichtigungen vorhanden.
                icon: mdi:information-outline
        visibility:
          - condition: user
            users:
              - c5f685dc82c147ae8ba800ce4b019fc0
              - ae8d806456e746cbb5651a273b9ebf58
    cards: []
    visible:
      - user: c5f685dc82c147ae8ba800ce4b019fc0
      - user: ae8d806456e746cbb5651a273b9ebf58
      - user: 8f6b5918911e4b18b23f6b417ce2dea3
