title: Andreas
path: andreas
icon: mdi:face-man
type: sections

sections:
  - type: grid
    cards:
      - type: heading
        heading: Musik

      - type: media-control
        entity: media_player.andreas
        name: Sonos Andreas

      - type: grid
        columns: 2
        square: false
        cards:
          - type: custom:button-card
            name: DR P3
            icon: mdi:radio
            tap_action:
              action: perform-action
              perform_action: media_player.select_source
              target:
                entity_id: media_player.andreas
              data:
                source: "0 DR P3"
            styles:
              card:
                - height: 52px
                - padding: 6px 8px
              icon:
                - width: 18px
              name:
                - font-size: 11px

          - type: custom:button-card
            name: Family Mix
            icon: mdi:account-music
            tap_action:
              action: perform-action
              perform_action: media_player.select_source
              target:
                entity_id: media_player.andreas
              data:
                source: "1 Family Mix"
            styles:
              card:
                - height: 52px
                - padding: 6px 8px
              icon:
                - width: 18px
              name:
                - font-size: 11px

          - type: custom:button-card
            name: Spil dansk
            icon: mdi:music-note
            tap_action:
              action: perform-action
              perform_action: media_player.select_source
              target:
                entity_id: media_player.andreas
              data:
                source: "3 Spil dansk dag - Danske tracks"
            styles:
              card:
                - height: 52px
                - padding: 6px 8px
              icon:
                - width: 18px
              name:
                - font-size: 11px

          - type: custom:button-card
            name: Andreas Mix 1
            icon: mdi:playlist-music
            tap_action:
              action: perform-action
              perform_action: media_player.select_source
              target:
                entity_id: media_player.andreas
              data:
                source: "Andreas Daily Mix 1"
            styles:
              card:
                - height: 52px
                - padding: 6px 8px
              icon:
                - width: 18px
              name:
                - font-size: 11px

          - type: custom:button-card
            name: Andreas Mix 2
            icon: mdi:playlist-music
            tap_action:
              action: perform-action
              perform_action: media_player.select_source
              target:
                entity_id: media_player.andreas
              data:
                source: "Andreas Daily Mix 2"
            styles:
              card:
                - height: 52px
                - padding: 6px 8px
              icon:
                - width: 18px
              name:
                - font-size: 11px

          - type: custom:button-card
            name: Andreas Mix 3
            icon: mdi:playlist-music
            tap_action:
              action: perform-action
              perform_action: media_player.select_source
              target:
                entity_id: media_player.andreas
              data:
                source: "Andreas Daily Mix 3"
            styles:
              card:
                - height: 52px
                - padding: 6px 8px
              icon:
                - width: 18px
              name:
                - font-size: 11px

          - type: custom:button-card
            name: Andreas Mix 4
            icon: mdi:playlist-music
            tap_action:
              action: perform-action
              perform_action: media_player.select_source
              target:
                entity_id: media_player.andreas
              data:
                source: "Andreas Daily Mix 4"
            styles:
              card:
                - height: 52px
                - padding: 6px 8px
              icon:
                - width: 18px
              name:
                - font-size: 11px

          - type: custom:button-card
            name: Andreas Mix 5
            icon: mdi:playlist-music
            tap_action:
              action: perform-action
              perform_action: media_player.select_source
              target:
                entity_id: media_player.andreas
              data:
                source: "Andreas Daily Mix 5"
            styles:
              card:
                - height: 52px
                - padding: 6px 8px
              icon:
                - width: 18px
              name:
                - font-size: 11px

          - type: custom:button-card
            name: Andreas Mix 6
            icon: mdi:playlist-music
            tap_action:
              action: perform-action
              perform_action: media_player.select_source
              target:
                entity_id: media_player.andreas
              data:
                source: "Andreas Daily Mix 6"
            styles:
              card:
                - height: 52px
                - padding: 6px 8px
              icon:
                - width: 18px
              name:
                - font-size: 11px

  - type: grid
    cards:
      - type: heading
        heading: Lys

      - type: horizontal-stack
        cards:
          - type: custom:button-card
            entity: light.andreas_vaerelse
            name: Værelse
            show_state: false
            tap_action:
              action: toggle
            hold_action:
              action: more-info
            styles:
              card:
                - padding: 8px 6px
                - height: 72px
              icon:
                - width: 22px
              name:
                - font-size: 11px
                - white-space: normal
                - word-break: break-word
                - line-height: 1.15

          - type: custom:button-card
            entity: light.andreas_lysstrip
            name: Lysstrip
            show_state: false
            tap_action:
              action: toggle
            hold_action:
              action: more-info
            styles:
              card:
                - padding: 8px 6px
                - height: 72px
              icon:
                - width: 22px
              name:
                - font-size: 11px
                - white-space: normal
                - word-break: break-word
                - line-height: 1.15

          - type: custom:button-card
            entity: light.andreas_stol
            name: Stol
            show_state: false
            tap_action:
              action: toggle
            hold_action:
              action: more-info
            styles:
              card:
                - padding: 8px 6px
                - height: 72px
              icon:
                - width: 22px
              name:
                - font-size: 11px
                - white-space: normal
                - word-break: break-word
                - line-height: 1.15

  - type: grid
    cards:
      - type: heading
        heading: Klima

      - type: tile
        entity: sensor.sovevaerelse_stue_temperatur
        name: Temperatur

      - type: tile
        entity: sensor.sovevaerelse_stue_luftfugtighed
        name: Luftfugtighed

      - type: tile
        entity: sensor.sovevaerelse_stue_carbon_dioxide
        name: CO₂

  - type: grid
    cards:
      - type: heading
        heading: Vindue

      - type: tile
        entity: binary_sensor.andreas_vindue
        name: Vindue

  - type: grid
    cards:
      - type: heading
        heading: Alarmer

      - type: tile
        entity: switch.sonos_alarm_445
        name: Hverdage 6.30

  - type: grid
    cards:
      - type: heading
        heading: Automatik

      - type: tile
        entity: switch.andreas_colorloop_toggle
        name: Colorloop

      - type: tile
        entity: switch.andreas_motionlys_toggle
        name: Motionlys
