hello, I do not know how to solve I explain: I have my floorplan with picture_element, for example I have created the lights of various rooms, eg. I created room nr.1 then nr.2 then nr.3 etc so if I turn on room nr. 3 that is the last in chronological order I cannot interact with the number 1 or the number ne 2.
`
icon: mdi:floor-plan
panel: true
id: floorplan
cards:
- type: picture-elements
image: /local/DARK.png
elements:
################ luci cubi ##############################
- type: custom:color-lite-card
entity: switch.ingresso_cubi
# tap_action:
# action: none
image:
/local/CUBION.png
style:
top: 50%
left: 50%
width: 100%
- type: state-icon
entity: switch.ingresso_cubi
state_color: true
icon: mdi:lightbulb-outline
tap_action:
action: toggle
hold_action:
action: more-info
style:
top: 18%
left: 68%
border: 'solid 3px rgba(100,100,100,0.3)'
border-radius: 20px
color: 'white'
transform: 'translate(-50%, -50%) scale(0.8, 0.8)'
'--paper-item-icon-active-color': yellow
'--paper-item-icon-color': grey
'--grey-icon-height': 2vw
'--grey-icon-width': 2vw
################ LED GIARDINO #############################
- type: custom:color-lite-card
entity: switch.sonoff_10008dfd5d
tap_action:
action: none
image:
/local/GIARDINO.png
style:
top: 50%
left: 50%
width: 100%
- type: state-icon
entity: switch.sonoff_10008dfd5d
state_color: true
icon: phu:light-strip
tap_action:
action: toggle
hold_action:
action: more-info
style:
top: 31%
left: 10%
border: 'solid 3px rgba(100,100,100,0.3)'
border-radius: 20px
color: 'white'
transform: 'translate(-50%, -50%) scale(0.8, 0.8)'
'--paper-item-icon-active-color': yellow
'--paper-item-icon-color': grey
'--grey-icon-height': 2vw
'--grey-icon-width': 2vw
############ LUCI ESTERNE PERRIMETRO ###################
- type: custom:color-lite-card
entity: switch.sonoff_10010fa681
tap_action:
action: none
image:
/local/PERIMETRO-GIARDINO.png
style:
top: 50%
left: 50%
width: 100%
- type: state-icon
entity: switch.sonoff_10010fa681
state_color: true
icon: mdi:lightbulb-outline
tap_action:
action: toggle
hold_action:
action: more-info
style:
top: 43%
left: 28%
border: 'solid 3px rgba(100,100,100,0.3)'
border-radius: 20px
color: 'white'
transform: 'translate(-50%, -50%) scale(0.8, 0.8)'
'--paper-item-icon-active-color': yellow
'--paper-item-icon-color': grey
'--grey-icon-height': 2vw
'--grey-icon-width': 2vw
`
sorry for the phyto but I took a screenshot from my phone