- type: custom:mod-card
  style:
    layout-card:
      .: |
        * {
          --primary-color: #0040A0
        }

      $:
        horizontal-layout:
          $:
            .: |
              #columns {
                margin: 0 20px;
                grid-gap: 20px;
              }
  card:
    type: custom:layout-card
    layout_type: custom:horizontal-layout
    layout:
      max_cols: 3
    cards:
      - type: vertical-stack
        cards:
          - type: custom:decluttering-card
            template: v3_title
            variables:
              - title: Living room
          - type: horizontal-stack
            cards:
              - type: custom:button-card
                template: v3_badge_temp
                entity: sensor.multisensor_6_temperature
              - type: custom:button-card
                template: v3_badge_humidity
                entity: sensor.multisensor_6_relative_humidity
              - type: custom:button-card
                template: v3_badge_icon
                entity: binary_sensor.living_room_right_window

          - type: custom:decluttering-card
            template: v3_section_title
            variables:
              - title: Scenes
          - type: vertical-stack
            cards:
              - type: custom:button-card
                template: v3_scene
                entity: scene.living_room_ambient_neon
                name: Neon
                variables:
                  scene_color_1: rgba(255, 0, 190, 0.7)
                  scene_color_2: rgba(0, 255, 190, 0.7)
              - type: custom:button-card
                template: v3_scene
                entity: scene.living_room_ambient_default
                name: Warm
                variables:
                  scene_color_1: rgba(240, 240, 190, 0.7)
                  scene_color_2: rgba(255, 210, 170, 0.7)
          - type: custom:decluttering-card
            template: v3_section_title
            variables:
              - title: Lights
          - type: horizontal-stack
            cards:
              - type: custom:button-card
                template: v3_button_light
                entity: light.living_room
                name: All
              - type: custom:button-card
                template: v3_button_light
                entity: light.living_room_main
                name: Main
              - type: custom:button-card
                template: v3_button_light
                entity: light.pc
                name: PC
          - type: horizontal-stack
            cards:
              - type: custom:button-card
                template: v3_button_light
                entity: light.living_room_ambient
                name: Ambient
              - type: custom:button-card
                template: v3_button_light
                entity: light.living_room_ambient_main
                name: Ambient Main
              - type: custom:button-card
                template: v3_button
                entity: light.light_avatar_small_1
                name: Ambient 2nd

      - type: vertical-stack
        cards:
          - type: custom:decluttering-card
            template: v3_section_title
            variables:
              - title: "Devices"
          - type: horizontal-stack
            cards:
              - type: custom:button-card
                template: v3_button
                entity: media_player.living_room
                name: Sonos
              - type: custom:button-card
                template: v3_button_tv
                entity: media_player.living_room_tv
                name: TV
              - type: custom:button-card
                template: v3_button_cover
                entity: cover.living_room
                name: Blinds
                tap_action:
                  action: call-service
                  service: script.toggle_living_room_cover

          - type: horizontal-stack
            cards:
              - type: custom:button-card
                template: v3_button_radiator
                entity: climate.living_room_radiator_mode
                name: Radiator
              - type: custom:button-card
                template: v3_button_ac
                entity: climate.toshiba_ac
                name: AC
                tap_action:
                  action: call-service
                  service: script.toshiba_ac_toggle

              - type: custom:button-card
                template: v3_button_power
                entity: switch.desk_outlet
                name: Desk Outlet
                variables:
                  power_sensor: sensor.desk_outlet_power

          - type: vertical-stack
            cards:
              - type: custom:decluttering-card
                template: v3_section_title
                variables:
                  - title: Camera
              - type: picture-glance
                camera_image: camera.mercury_amcrest_1
                entities: []
