Multiple Light Floorplan

multiple light avec interrupteur sur floorplan

type: picture-elements
image: >-
  http://192.168.0.160:8123/api/hassio_ingress/jAzqtLD1SwOEQQUvcD92QWcLG5fug3iRElQCEpCFTDM/api/file?filename=/config/www/Floorplan/Plan%20Maison%20nuit.png
elements:
  - type: state-icon
    icon_color: yellow
    icon: mdi:lightbulb
    entity: light.barrette_d_eclairage_a_led
    style:
      left: 40%
      top: 50%
    tap_action:
      action: toggle
  - type: image
    entity: light.barrette_d_eclairage_a_led
    style:
      top: 50%
      left: 50%
      width: 100%
    state_image:
      'on': >-
        http://192.168.0.160:8123/api/hassio_ingress/jAzqtLD1SwOEQQUvcD92QWcLG5fug3iRElQCEpCFTDM/api/file?filename=/config/www/Floorplan/Balise%20led%20ipn%20on.png
      'off': >-
        http://192.168.0.160:8123/api/hassio_ingress/jAzqtLD1SwOEQQUvcD92QWcLG5fug3iRElQCEpCFTDM/api/file?filename=/config/www/images/3d_floorplan/ipn.png
  - type: state-icon
    icon_color: yellow
    icon: mdi:lightbulb
    entity: light.balise_led_salon
    style:
      left: 44%
      top: 53%
    tap_action:
      action: toggle
  - type: image
    entity: light.balise_led_salon
    style:
      top: 50%
      left: 50%
      width: 100%
    state_image:
      'on': >-
        http://192.168.0.160:8123/api/hassio_ingress/jAzqtLD1SwOEQQUvcD92QWcLG5fug3iRElQCEpCFTDM/api/file?filename=/config/www/images/3d_floorplan/salon.png
      'off': >-
        http://192.168.0.160:8123/api/hassio_ingress/jAzqtLD1SwOEQQUvcD92QWcLG5fug3iRElQCEpCFTDM/api/file?filename=/config/www/Floorplan/Plan%20Maison%20nuit.png