Why I can add light inside picture-elements?

Here is configuration:

type: picture-elements
image: /local/images/gauge/transparent.png
elements:
  - type: light
    entity: light.ir2mqtt_bathroom_light
    name: luč
    style:
      top: 40%
      left: 40%
  - type: state-label
    style:
      top: 90%
      left: 50%
      box-shadow: none
      background-color: transparent
    entity: sensor.bathroom_water_heater_water_temperature
    prefix: ''
    attribute: ''
    title: null

11.08.2021_11.21.23_REC

Simply because it’s not a type of element you can add, see the documentation. That’s not to say you can’t add a light-entity to a picture element, but you probably want to add it as a state-icon-element.

1 Like