ESPresence on picture element

Hello,

I’m using ESPresence for the room identifiers. I can’t seem to get this to relay onto the frontend floorplan.

type: picture-elements
image: local\lovelace/Downstairs210321.png
elements:
  - type: state-icon
    entity: person.george
    style:
      top: >-
        {% if is_state("sensor.george_s_iphone", "livingroom") -%} 10% {%- elif
        is_state("sensor.george_s_iphone", "diningroom") -%} 20% {%- elif
        is_state("sensor.george_s_iphone", "kitchen") -%} 50% {%- else -%} 10%
        {%- endif %}
      left: >-
        {% if is_state("sensor.george_s_iphone", "livingroom") -%} 10% {%- elif
        is_state("sensor.george_s_iphone", "diningroom") -%} 20% {%- elif
        is_state("sensor.george_s_iphone", "kitchen") -%} 50% {%- else -%} 10%
        {%- endif %}