Mushroom chip state different entity

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 %}