Disposition des blocs dans une carte

Bonjour,

Je souhaite incorporer dans une map où les blocs sont vertical, une ligne horizontale

Actuellement

Ce que je voudrais faire

Ma configuration

version core-2024.11.3
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.4
os_name Linux
os_version 6.6.54-haos
arch x86_64
timezone Europe/Paris
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 4921
Installed Version 1.34.0
Stage running
Available Repositories 1457
Downloaded Repositories 13
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 13.2
update_channel stable
supervisor_version supervisor-2024.11.4
agent_version 1.6.0
docker_version 27.2.0
disk_total 30.8 GB
disk_used 6.7 GB
healthy true
supported true
host_connectivity true
supervisor_connectivity true
ntp_synchronized true
virtualization oracle
board ova
supervisor_api ok
version_api ok
installed_addons Terminal & SSH (9.15.0), Studio Code Server (5.17.3), Duck DNS (1.18.0), NGINX Home Assistant SSL proxy (3.11.1), File editor (5.8.0), Samba share (12.3.2), Let’s Encrypt (5.2.3)
Dashboards
dashboards 3
resources 9
views 20
mode storage
Recorder
oldest_recorder_run 22 novembre 2024 à 16:42
current_recorder_run 25 novembre 2024 à 10:37
estimated_db_size 73.11 MiB
database_engine sqlite
database_version 3.45.3

Voici les réglages de ma map

Ainsi qu’un exemple de mes trois blocs de télécommande

type: horizontal-stack
cards:
  - type: vertical-stack
    cards:
      - type: vertical-stack
        title: LG
        cards:
          - type: horizontal-stack
            cards:
              - type: custom:button-card
                name: "1"
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_lg
                    command: "1"
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: grey
              - type: custom:button-card
                name: "2"
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_lg
                    command: "2"
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: grey
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                name: "3"
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_lg
                    command: "3"
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: grey
                  icon:
                    - width: 20px
                    - height: 20px
          - type: horizontal-stack
            cards:
              - type: custom:button-card
                name: "4"
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_lg
                    command: "4"
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: grey
                  icon:
                    - width: 20px
                    - height: 20px
                    - background: grey
              - type: custom:button-card
                name: "5"
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_lg
                    command: "5"
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: grey
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                name: "6"
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_lg
                    command: "6"
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: grey
                  icon:
                    - width: 20px
                    - height: 20px
          - type: horizontal-stack
            cards:
              - type: custom:button-card
                name: "7"
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_lg
                    command: "7"
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: grey
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                name: "8"
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_lg
                    command: "8"
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: grey
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                name: "9"
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_lg
                    command: "9"
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: grey
                  icon:
                    - width: 20px
                    - height: 20px
          - type: horizontal-stack
            cards:
              - type: custom:button-card
                icon: mdi:cog
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: grey
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                name: "0"
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_lg
                    command: "0"
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: grey
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                icon: mdi:power
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_lg
                    command: power
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: grey
                  icon:
                    - width: 20px
                    - height: 20px
          - type: horizontal-stack
            cards:
              - type: custom:button-card
                icon: mdi:arrow-down-bold
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_lg
                    command: chaine-
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: grey
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                icon: mdi:menu-up
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_lg
                    command: monter
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: grey
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                icon: mdi:arrow-up-bold
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_lg
                    command: chaine+
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: grey
                  icon:
                    - width: 20px
                    - height: 20px
          - type: horizontal-stack
            cards:
              - type: custom:button-card
                icon: mdi:menu-left
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_lg
                    command: gauche
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: grey
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_lg
                    command: ok
                name: OK
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: grey
              - type: custom:button-card
                icon: mdi:menu-right
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_lg
                    command: droite
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: grey
                  icon:
                    - width: 20px
                    - height: 20px
          - type: horizontal-stack
            cards:
              - type: custom:button-card
                icon: mdi:cog
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: grey
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                icon: mdi:menu-down
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: grey
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                icon: mdi:hdmi-port
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_lg
                    command: hdmi
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: grey
                  icon:
                    - width: 20px
                    - height: 20px
          - type: horizontal-stack
            cards:
              - type: custom:button-card
                icon: mdi:volume-minus
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_lg
                    command: volume-
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: grey
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                icon: mdi:volume-mute
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_lg
                    command: mute
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: grey
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                icon: mdi:volume-plus
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_lg
                    command: volume+
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: grey
                  icon:
                    - width: 20px
                    - height: 20px
          - type: custom:button-card
            tap_action:
              action: call-service
              service: remote.send_command
              target:
                entity_id: remote.broadlink
              data:
                device: tv_lg
                command:
                  - 1
                  - 6
            entity: remote.broadlink
            name: Cnews
            styles:
              card:
                - width: 170px
                - height: 35px
                - background: grey
              icon:
                - width: 20px
                - height: 20px

Merci

Salut

Tu dois faire des combinaisons de carte

Dans chaque bloc vert, tu mets tes telecommandes
Dans le bloc bleu, test boutons AIWA

Voilà ce que réussi à faire

type: vertical-stack
cards:
  - type: horizontal-stack
    cards:
      - type: vertical-stack
        cards:
          - type: vertical-stack
            title: LG
            cards:
              - type: horizontal-stack
                cards:
                  - type: custom:button-card
                    icon: mdi:power
                  - type: custom:button-card
                    icon: mdi:volume-plus
                  - type: custom:button-card
                    icon: mdi:power
                  - type: custom:button-card
                    icon: mdi:volume-plus
  - type: horizontal-stack
    cards:
      - type: horizontal-stack
        cards:
          - type: vertical-stack
            title: LG
            cards:
              - type: horizontal-stack
                cards:
                  - type: custom:button-card
                    name: "1"
                    tap_action:
                      action: call-service
                      service: remote.send_command
                      service_data:
                        entity_id: remote.broadlink
                        device: tv_lg
                        command: "1"
                    styles:
                      card:
                        - width: 50px
                        - height: 25px
                        - background: grey
                  - type: custom:button-card
                    name: "2"
                    tap_action:
                      action: call-service
                      service: remote.send_command
                      service_data:
                        entity_id: remote.broadlink
                        device: tv_lg
                        command: "2"
                    styles:
                      card:
                        - width: 50px
                        - height: 25px
                        - background: grey
                      icon:
                        - width: 20px
                        - height: 20px
                  - type: custom:button-card
                    name: "3"
                    tap_action:
                      action: call-service
                      service: remote.send_command
                      service_data:
                        entity_id: remote.broadlink
                        device: tv_lg
                        command: "3"
                    styles:
                      card:
                        - width: 50px
                        - height: 25px
                        - background: grey
                      icon:
                        - width: 20px
                        - height: 20px
              - type: horizontal-stack
                cards:
                  - type: custom:button-card
                    name: "4"
                    tap_action:
                      action: call-service
                      service: remote.send_command
                      service_data:
                        entity_id: remote.broadlink
                        device: tv_lg
                        command: "4"
                    styles:
                      card:
                        - width: 50px
                        - height: 25px
                        - background: grey
                      icon:
                        - width: 20px
                        - height: 20px
                        - background: grey
                  - type: custom:button-card
                    name: "5"
                    tap_action:
                      action: call-service
                      service: remote.send_command
                      service_data:
                        entity_id: remote.broadlink
                        device: tv_lg
                        command: "5"
                    styles:
                      card:
                        - width: 50px
                        - height: 25px
                        - background: grey
                      icon:
                        - width: 20px
                        - height: 20px
                  - type: custom:button-card
                    name: "6"
                    tap_action:
                      action: call-service
                      service: remote.send_command
                      service_data:
                        entity_id: remote.broadlink
                        device: tv_lg
                        command: "6"
                    styles:
                      card:
                        - width: 50px
                        - height: 25px
                        - background: grey
                      icon:
                        - width: 20px
                        - height: 20px
              - type: horizontal-stack
                cards:
                  - type: custom:button-card
                    name: "7"
                    tap_action:
                      action: call-service
                      service: remote.send_command
                      service_data:
                        entity_id: remote.broadlink
                        device: tv_lg
                        command: "7"
                    styles:
                      card:
                        - width: 50px
                        - height: 25px
                        - background: grey
                      icon:
                        - width: 20px
                        - height: 20px
                  - type: custom:button-card
                    name: "8"
                    tap_action:
                      action: call-service
                      service: remote.send_command
                      service_data:
                        entity_id: remote.broadlink
                        device: tv_lg
                        command: "8"
                    styles:
                      card:
                        - width: 50px
                        - height: 25px
                        - background: grey
                      icon:
                        - width: 20px
                        - height: 20px
                  - type: custom:button-card
                    name: "9"
                    tap_action:
                      action: call-service
                      service: remote.send_command
                      service_data:
                        entity_id: remote.broadlink
                        device: tv_lg
                        command: "9"
                    styles:
                      card:
                        - width: 50px
                        - height: 25px
                        - background: grey
                      icon:
                        - width: 20px
                        - height: 20px
              - type: horizontal-stack
                cards:
                  - type: custom:button-card
                    icon: mdi:cog
                    styles:
                      card:
                        - width: 50px
                        - height: 25px
                        - background: grey
                      icon:
                        - width: 20px
                        - height: 20px
                  - type: custom:button-card
                    name: "0"
                    tap_action:
                      action: call-service
                      service: remote.send_command
                      service_data:
                        entity_id: remote.broadlink
                        device: tv_lg
                        command: "0"
                    styles:
                      card:
                        - width: 50px
                        - height: 25px
                        - background: grey
                      icon:
                        - width: 20px
                        - height: 20px
                  - type: custom:button-card
                    icon: mdi:power
                    tap_action:
                      action: call-service
                      service: remote.send_command
                      service_data:
                        entity_id: remote.broadlink
                        device: tv_lg
                        command: power
                    styles:
                      card:
                        - width: 50px
                        - height: 25px
                        - background: grey
                      icon:
                        - width: 20px
                        - height: 20px
              - type: horizontal-stack
                cards:
                  - type: custom:button-card
                    icon: mdi:arrow-down-bold
                    tap_action:
                      action: call-service
                      service: remote.send_command
                      service_data:
                        entity_id: remote.broadlink
                        device: tv_lg
                        command: chaine-
                    styles:
                      card:
                        - width: 50px
                        - height: 25px
                        - background: grey
                      icon:
                        - width: 20px
                        - height: 20px
                  - type: custom:button-card
                    icon: mdi:menu-up
                    tap_action:
                      action: call-service
                      service: remote.send_command
                      service_data:
                        entity_id: remote.broadlink
                        device: tv_lg
                        command: monter
                    styles:
                      card:
                        - width: 50px
                        - height: 25px
                        - background: grey
                      icon:
                        - width: 20px
                        - height: 20px
                  - type: custom:button-card
                    icon: mdi:arrow-up-bold
                    tap_action:
                      action: call-service
                      service: remote.send_command
                      service_data:
                        entity_id: remote.broadlink
                        device: tv_lg
                        command: chaine+
                    styles:
                      card:
                        - width: 50px
                        - height: 25px
                        - background: grey
                      icon:
                        - width: 20px
                        - height: 20px
              - type: horizontal-stack
                cards:
                  - type: custom:button-card
                    icon: mdi:menu-left
                    tap_action:
                      action: call-service
                      service: remote.send_command
                      service_data:
                        entity_id: remote.broadlink
                        device: tv_lg
                        command: gauche
                    styles:
                      card:
                        - width: 50px
                        - height: 25px
                        - background: grey
                      icon:
                        - width: 20px
                        - height: 20px
                  - type: custom:button-card
                    tap_action:
                      action: call-service
                      service: remote.send_command
                      service_data:
                        entity_id: remote.broadlink
                        device: tv_lg
                        command: ok
                    name: OK
                    styles:
                      card:
                        - width: 50px
                        - height: 25px
                        - background: grey
                  - type: custom:button-card
                    icon: mdi:menu-right
                    tap_action:
                      action: call-service
                      service: remote.send_command
                      service_data:
                        entity_id: remote.broadlink
                        device: tv_lg
                        command: droite
                    styles:
                      card:
                        - width: 50px
                        - height: 25px
                        - background: grey
                      icon:
                        - width: 20px
                        - height: 20px
              - type: horizontal-stack
                cards:
                  - type: custom:button-card
                    icon: mdi:cog
                    styles:
                      card:
                        - width: 50px
                        - height: 25px
                        - background: grey
                      icon:
                        - width: 20px
                        - height: 20px
                  - type: custom:button-card
                    icon: mdi:menu-down
                    styles:
                      card:
                        - width: 50px
                        - height: 25px
                        - background: grey
                      icon:
                        - width: 20px
                        - height: 20px
                  - type: custom:button-card
                    icon: mdi:hdmi-port
                    tap_action:
                      action: call-service
                      service: remote.send_command
                      service_data:
                        entity_id: remote.broadlink
                        device: tv_lg
                        command: hdmi
                    styles:
                      card:
                        - width: 50px
                        - height: 25px
                        - background: grey
                      icon:
                        - width: 20px
                        - height: 20px
              - type: horizontal-stack
                cards:
                  - type: custom:button-card
                    icon: mdi:volume-minus
                    tap_action:
                      action: call-service
                      service: remote.send_command
                      service_data:
                        entity_id: remote.broadlink
                        device: tv_lg
                        command: volume-
                    styles:
                      card:
                        - width: 50px
                        - height: 25px
                        - background: grey
                      icon:
                        - width: 20px
                        - height: 20px
                  - type: custom:button-card
                    icon: mdi:volume-mute
                    tap_action:
                      action: call-service
                      service: remote.send_command
                      service_data:
                        entity_id: remote.broadlink
                        device: tv_lg
                        command: mute
                    styles:
                      card:
                        - width: 50px
                        - height: 25px
                        - background: grey
                      icon:
                        - width: 20px
                        - height: 20px
                  - type: custom:button-card
                    icon: mdi:volume-plus
                    tap_action:
                      action: call-service
                      service: remote.send_command
                      service_data:
                        entity_id: remote.broadlink
                        device: tv_lg
                        command: volume+
                    styles:
                      card:
                        - width: 50px
                        - height: 25px
                        - background: grey
                      icon:
                        - width: 20px
                        - height: 20px
              - type: custom:button-card
                tap_action:
                  action: call-service
                  service: remote.send_command
                  target:
                    entity_id: remote.broadlink
                  data:
                    device: tv_lg
                    command:
                      - 1
                      - 6
                entity: remote.broadlink
                name: Cnews
                styles:
                  card:
                    - width: 170px
                    - height: 35px
                    - background: grey
                  icon:
                    - width: 20px
                    - height: 20px
      - type: vertical-stack
        title: Samsung
        cards:
          - type: horizontal-stack
            cards:
              - type: custom:button-card
                name: "1"
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.r4minisamsung
                    device: tv_samsung
                    command: "1"
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: green
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                name: "2"
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.r4minisamsung
                    device: tv_samsung
                    command: "2"
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: green
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                name: "3"
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.r4minisamsung
                    device: tv_samsung
                    command: "3"
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: green
                  icon:
                    - width: 20px
                    - height: 20px
          - type: horizontal-stack
            cards:
              - type: custom:button-card
                name: "4"
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.r4minisamsung
                    device: tv_samsung
                    command: "4"
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: green
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                name: "5"
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.r4minisamsung
                    device: tv_samsung
                    command: "5"
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: green
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                name: "6"
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.r4minisamsung
                    device: tv_samsung
                    command: "6"
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: green
                  icon:
                    - width: 20px
                    - height: 20px
          - type: horizontal-stack
            cards:
              - type: custom:button-card
                name: "7"
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.r4minisamsung
                    device: tv_samsung
                    command: "7"
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: green
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                name: "8"
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.r4minisamsung
                    device: tv_samsung
                    command: "8"
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: green
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                name: "9"
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.r4minisamsung
                    device: tv_samsung
                    command: "9"
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: green
                  icon:
                    - width: 20px
                    - height: 20px
          - type: horizontal-stack
            cards:
              - type: custom:button-card
                icon: mdi:cog
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: green
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                name: "0"
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.r4minisamsung
                    device: tv_samsung
                    command: "0"
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: green
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                icon: mdi:power
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.r4minisamsung
                    device: tv_samsung
                    command: power
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: green
                  icon:
                    - width: 20px
                    - height: 20px
          - type: horizontal-stack
            cards:
              - type: custom:button-card
                icon: mdi:arrow-down-bold
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.r4minisamsung
                    device: tv_samsung
                    command: Chaine-
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: green
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                icon: mdi:menu-up
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.r4minisamsung
                    device: tv_samsung
                    command: Monter
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: green
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                icon: mdi:arrow-up-bold
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.r4minisamsung
                    device: tv_samsung
                    command: Chaine+
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: green
                  icon:
                    - width: 20px
                    - height: 20px
          - type: horizontal-stack
            cards:
              - type: custom:button-card
                icon: mdi:menu-left
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.r4minisamsung
                    device: tv_samsung
                    command: gauche
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: green
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                name: OK
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.r4minisamsung
                    device: tv_samsung
                    command: Ok
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: green
              - type: custom:button-card
                icon: mdi:menu-right
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.r4minisamsung
                    device: tv_samsung
                    command: droite
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: green
                  icon:
                    - width: 20px
                    - height: 20px
          - type: horizontal-stack
            cards:
              - type: custom:button-card
                icon: mdi:wifi
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.r4minisamsung
                    device: tv_samsung
                    command: smart
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: green
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                icon: mdi:menu-down
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.r4minisamsung
                    device: tv_samsung
                    command: Descendre
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: green
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                icon: mdi:hdmi-port
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.r4minisamsung
                    device: tv_samsung
                    command: source
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: green
                  icon:
                    - width: 20px
                    - height: 20px
          - type: horizontal-stack
            cards:
              - type: custom:button-card
                icon: mdi:volume-minus
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.r4minisamsung
                    device: tv_samsung
                    command: Volume-
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: green
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                icon: mdi:volume-mute
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.r4minisamsung
                    device: tv_samsung
                    command: Mute
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: green
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                icon: mdi:volume-plus
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.r4minisamsung
                    device: tv_samsung
                    command: Volume+
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                    - background: green
                  icon:
                    - width: 20px
                    - height: 20px
          - type: custom:button-card
            tap_action:
              action: call-service
              service: remote.send_command
              target:
                entity_id: remote.r4minisamsung
              data:
                device: tv_samsung
                command:
                  - 1
                  - 6
            name: Cnews
            styles:
              card:
                - width: 170px
                - height: 35px
                - background: green
              icon:
                - width: 20px
                - height: 20px
      - type: vertical-stack
        title: Philips
        cards:
          - type: horizontal-stack
            cards:
              - type: custom:button-card
                name: "1"
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_philips
                    command: "1"
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                name: "2"
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_philips
                    command: "2"
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                name: "3"
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_philips
                    command: "3"
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                  icon:
                    - width: 20px
                    - height: 20px
          - type: horizontal-stack
            cards:
              - type: custom:button-card
                name: "4"
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_philips
                    command: "4"
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                name: "5"
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_philips
                    command: "5"
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                name: "6"
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_philips
                    command: "6"
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                  icon:
                    - width: 20px
                    - height: 20px
          - type: horizontal-stack
            cards:
              - type: custom:button-card
                name: "7"
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_philips
                    command: "7"
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                name: "8"
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_philips
                    command: "8"
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                name: "9"
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_philips
                    command: "9"
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                  icon:
                    - width: 20px
                    - height: 20px
          - type: horizontal-stack
            cards:
              - type: custom:button-card
                icon: mdi:cog
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_philips
                    command: Source
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                name: "0"
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_philips
                    command: "0"
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                icon: mdi:power
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_philips
                    command: power
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                  icon:
                    - width: 20px
                    - height: 20px
          - type: horizontal-stack
            cards:
              - type: custom:button-card
                icon: mdi:arrow-down-bold
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_philips
                    command: Chaine-
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                icon: mdi:menu-up
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_philips
                    command: Monter
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                icon: mdi:arrow-up-bold
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_philips
                    command: Chaine+
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                  icon:
                    - width: 20px
                    - height: 20px
          - type: horizontal-stack
            cards:
              - type: custom:button-card
                icon: mdi:menu-left
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_philips
                    command: gauche
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_philips
                    command: Ok
                name: Ok
                styles:
                  card:
                    - width: 50px
                    - height: 25px
              - type: custom:button-card
                icon: mdi:menu-right
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_philips
                    command: droite
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                  icon:
                    - width: 20px
                    - height: 20px
          - type: horizontal-stack
            cards:
              - type: custom:button-card
                icon: mdi:cog
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_philips
                    command: Menu
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                icon: mdi:menu-down
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_philips
                    command: Descendre
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                icon: mdi:hdmi-port
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_philips
                    command: Source
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                  icon:
                    - width: 20px
                    - height: 20px
          - type: horizontal-stack
            cards:
              - type: custom:button-card
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_philips
                    command: Volume-
                icon: mdi:volume-minus
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_philips
                    command: Mute
                icon: mdi:volume-mute
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_philips
                    command: Volume+
                icon: mdi:volume-plus
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                  icon:
                    - width: 20px
                    - height: 20px
          - type: horizontal-stack
            cards:
              - type: custom:button-card
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: HP
                    command: volume-
                icon: mdi:volume-minus
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: tv_philips
                    command: Mute
                name: HP
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                  icon:
                    - width: 20px
                    - height: 20px
              - type: custom:button-card
                tap_action:
                  action: call-service
                  service: remote.send_command
                  service_data:
                    entity_id: remote.broadlink
                    device: HP
                    command: volume+
                icon: mdi:volume-plus
                styles:
                  card:
                    - width: 50px
                    - height: 25px
                  icon:
                    - width: 20px
                    - height: 20px
          - type: custom:button-card
            tap_action:
              action: call-service
              service: remote.send_command
              target:
                entity_id: remote.broadlink
              data:
                device: tv_philips
                command:
                  - 1
                  - 6
            entity: remote.broadlink
            name: Cnews
            styles:
              card:
                - width: 170px
                - height: 35px
              icon:
                - width: 20px
                - height: 20px

Seulement je n’arrive pas à élargir les blocs, ils sont tous serrés l’un contre l’autre

Tu vas sur le petit crayon à coté du titre de la page du dashboard
et tu prends le mode « Panneau »
image

C’est un peu mieux mais pas centré

J’arrive après la bataille et je ne serai pas très disponible pour t’aider…

Mais tu peux également utiliser des sections pour faire ça :
Une section par télécommande.
Et pour la 4eme section tu définis sa largeur à 3 colonnes dans les paramètres de la section…

Ça fera ce que tu veux si la largeur est suffisante et ça se mettra différemment si la largeur est trop faible.

Personnellement c’est comme ça que je ferai pour moi

Tu as un exemple que je vois ?

Tout est dans cet article:

Normalement il y a tout pour y arriver tout seul… J’essaierai de te faire un exemple ce soir si tu ne t’en sors pas.

1 « J'aime »

Bonjour @sg72,
tu crées une page en vue section avec 3 colonnes :


et tu mets une colonne sur la largeur de 3 colonnes :

les 3 autres colonnes sur 1 colonne.

1 « J'aime »

Super ce système ! Seulement j’ai toujours mon problème de largeur


Surtout sur Tablette

Comment je peux déterminer ou personnaliser la largeur des blocs ?

dans un thème.

  • Max width of a section: ha-view-sections-column-max-width (default: 500px)
  • Min width of a section: ha-view-sections-column-min-width (default: 320px)
  • Horizontal gap between sections: ha-view-sections-column-gap (default: 32px)
  • Vertical gap between sections: ha-view-sections-row-gap (default: 8px)
  • Horizontal gap between cards within a section: ha-section-grid-column-gap (default: 8px)
  • Vertical gap between cards within a section: ha-section-grid-row-gap (default: 8px)

tu as ce sujet qui en parle et comment créer un thème:

1 « J'aime »

Excuse-moi mais je vois pas où mettre

ha-view-sections-column-min-width: 300px

Il te faut créer un thème et y mettre la ligne de code .

Tu as des explications sur ces messages :

1 « J'aime »

J’ai donc créé un thème que j’ai emporté dans themes.yaml mais après comment on le sélectionne ?

Va dans ton profil :

ok mais après ? il se cache où ^^

Il faut le sélectionner dans la liste, dans la partie thème dans profil.

Ça c’est OK mais après ?

C’est tout, si tu as appliqué des dimensions différentes pour les colonnes des sections, ça s’applique directement.

image

Utilise plutôt le max-width.

Si tu modifies le thème, pour le recharger, utilise l’action frontend.reload_themes :

Bonjour
Je reviens vers vous, car je n’arrive pas à déterminer une largeur maximum de 250 par bloc, tout en centrant les trois blocs !
Voici les thèmes que j’ai créé

bloctv:
  ha-view-sections-column-min-width: 250px
  ha-view-sections-column-max-width: 750px
  modes:
        light: {}
        dark: {}

Cependant, malgré ce réglage, par exemple, sur ma tablette, les trois blocs ne sont pas alignés horizontalement


Et sur mon ordinateur, ils ne sont pas du tout centré

Si je regarde l’inspecteur d’éléments du navigateur, je vois que ha-sortable détermine le bloc entier. Je me trompe ?

Car sauf erreur de ma part, le thème que j’ai créé, il devrait être en action et affiché dans la partie container de l’Imprim écran ci-dessous ?