I am trying to position an image in the middle of a picture-element, but all my tries failed and the image is always displayed on the bottom left corner with only a quarter of the image shown. I have tried different values for “top”, “left” and “translate”. This is my code:
type: picture-elements
image: local/Empty.JPG
title: Avfuktaren
elements:
- type: image
entity: switch.avfuktare_garage
conditions: null
state_image:
'on': /local/GreenLight.JPG
'off': /local/RedLight.JPG
style: null
top: 0%
left: 30%
transform: translate(0,0)
Any idea how to solve this?