Mushroom chip state different entity

Hi, I’m generating a dashboard with mushroom in which I use among other things the chip card. There I would like to integrate an entity to close or open my gate. So far so good. But it would be great to display the state but not the state technically from this entity but from a different. Is there a way to adjust this code to fulfill my wish :slight_smile:

content_info: state

THANKS IN ADVANCE!!!

This is an example, but in the future I would post Mushroom related questions in the 2 main threads here or here

type: custom:mushroom-chips-card
chips:
  - type: template
    entity: sensor.living_room_humidity
    icon: mdi:thermometer
    content: |
      {{ states('sensor.living_room_temperature') | int(0)}} °C
    icon_color: |
      {% set state = states('sensor.living_room_temperature') | int(-1) %}
      {% if state >= 50 %} red
      {% elif state >= 30 %} orange
      {% else %}
      blue
      {% endif %}