When I change the status OFF to ON the image is out of indentation, can you help me? follow the code.
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: picture
- 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
- show_name: true
- 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
- entity: binary_sensor.alline
- 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
- entity: binary_sensor.alline
- type: conditional
- type: horizontal-stack
- 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
- show_name: true
- 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
- entity: binary_sensor.erick
- 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
- entity: binary_sensor.erick
- type: conditional
- type: horizontal-stack
- type: horizontal-stack
- type: vertical-stack
- 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
- show_name: true
- 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
- entity: binary_sensor.miguel
- 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
- entity: binary_sensor.miguel
- type: conditional
- type: horizontal-stack
- type: horizontal-stack
- type: vertical-stack