Indentation :(

When I change the status OFF to ON the image is out of indentation, can you help me? follow the code.

image

type: vertical-stack
cards:

  • type: horizontal-stack
    cards:
    • type: picture
      image: local/imgs/homeofficecard/status.png
      tap_action:
      action: none
      hold_action:
      action: none
  • type: horizontal-stack
    cards:
    • type: vertical-stack
      cards:
      • type: horizontal-stack
        cards:
        • type: horizontal-stack
          cards:
          • show_name: true
            show_icon: false
            type: button
            tap_action:
            action: toggle
            entity: binary_sensor.alline
            show_state: false
        • type: horizontal-stack
          cards:
          • type: conditional
            conditions:
            • entity: binary_sensor.alline
              state: ‘off’
              card:
              type: picture
              image: local/imgs/homeofficecard/allinehomeoffice.png
              tap_action:
              action: none
              hold_action:
              action: none
          • type: conditional
            conditions:
            • entity: binary_sensor.alline
              state: ‘on’
              card:
              type: picture
              image: local/imgs/homeofficecard/allinepresencial.png
              tap_action:
              action: none
              hold_action:
              action: none
      • type: horizontal-stack
        cards:
        • type: horizontal-stack
          cards:
          • show_name: true
            show_icon: false
            type: button
            tap_action:
            action: toggle
            entity: binary_sensor.erick
            show_state: false
        • type: horizontal-stack
          cards:
          • type: conditional
            conditions:
            • entity: binary_sensor.erick
              state: ‘off’
              card:
              type: picture
              image: local/imgs/homeofficecard/erickhomeoffice.png
              tap_action:
              action: none
              hold_action:
              action: none
          • type: conditional
            conditions:
            • entity: binary_sensor.erick
              state: ‘on’
              card:
              type: picture
              image: local/imgs/homeofficecard/erickpresencial.png
              tap_action:
              action: none
              hold_action:
              action: none
              tap_action:
              action: none
              hold_action:
              action: none
  • type: horizontal-stack
    cards:
    • type: vertical-stack
      cards:
      • type: horizontal-stack
        cards:
        • type: horizontal-stack
          cards:
          • show_name: true
            show_icon: false
            type: button
            tap_action:
            action: toggle
            entity: binary_sensor.miguel
            show_state: false
        • type: horizontal-stack
          cards:
          • type: conditional
            conditions:
            • entity: binary_sensor.miguel
              state: ‘off’
              card:
              type: picture
              image: local/imgs/homeofficecard/miguelhomeoffice.png
              tap_action:
              action: none
              hold_action:
              action: none
          • type: conditional
            conditions:
            • entity: binary_sensor.miguel
              state: ‘on’
              card:
              type: picture
              image: local/imgs/homeofficecard/migualpresencial.png
              tap_action:
              action: none
              hold_action:
              action: none

Please format your code as explained in that sticky post.

type: vertical-stack
cards:
  - type: horizontal-stack
    cards:
      - type: picture
        image: local/imgs/homeofficecard/status.png
        tap_action:
          action: none
        hold_action:
          action: none
  - type: horizontal-stack
    cards:
      - type: vertical-stack
        cards:
          - type: horizontal-stack
            cards:
              - type: horizontal-stack
                cards:
                  - show_name: true
                    show_icon: false
                    type: button
                    tap_action:
                      action: toggle
                    entity: binary_sensor.alline
                    show_state: false
              - type: horizontal-stack
                cards:
                  - type: conditional
                    conditions:
                      - entity: binary_sensor.alline
                        state: 'off'
                    card:
                      type: picture
                      image: local/imgs/homeofficecard/allinehomeoffice.png
                      tap_action:
                        action: none
                      hold_action:
                        action: none
                  - type: conditional
                    conditions:
                      - entity: binary_sensor.alline
                        state: 'on'
                    card:
                      type: picture
                      image: local/imgs/homeofficecard/allinepresencial.png
                      tap_action:
                        action: none
                      hold_action:
                        action: none
          - type: horizontal-stack
            cards:
              - type: horizontal-stack
                cards:
                  - show_name: true
                    show_icon: false
                    type: button
                    tap_action:
                      action: toggle
                    entity: binary_sensor.erick
                    show_state: false
              - type: horizontal-stack
                cards:
                  - type: conditional
                    conditions:
                      - entity: binary_sensor.erick
                        state: 'off'
                    card:
                      type: picture
                      image: local/imgs/homeofficecard/erickhomeoffice.png
                      tap_action:
                        action: none
                      hold_action:
                        action: none
                  - type: conditional
                    conditions:
                      - entity: binary_sensor.erick
                        state: 'on'
                    card:
                      type: picture
                      image: local/imgs/homeofficecard/erickpresencial.png
                      tap_action:
                        action: none
                      hold_action:
                        action: none
            tap_action:
              action: none
            hold_action:
              action: none
  - type: horizontal-stack
    cards:
      - type: vertical-stack
        cards:
          - type: horizontal-stack
            cards:
              - type: horizontal-stack
                cards:
                  - show_name: true
                    show_icon: false
                    type: button
                    tap_action:
                      action: toggle
                    entity: binary_sensor.miguel
                    show_state: false
              - type: horizontal-stack
                cards:
                  - type: conditional
                    conditions:
                      - entity: binary_sensor.miguel
                        state: 'off'
                    card:
                      type: picture
                      image: local/imgs/homeofficecard/miguelhomeoffice.png
                      tap_action:
                        action: none
                      hold_action:
                        action: none
                  - type: conditional
                    conditions:
                      - entity: binary_sensor.miguel
                        state: 'on'
                    card:
                      type: picture
                      image: local/imgs/homeofficecard/migualpresencial.png
                      tap_action:
                        action: none
                      hold_action:
                        action: none

1 Like