i’m not adept enough to know how to do this w/o a for loop. feels like there’s got to be a way. hopefully someone smarter than me will jump in. however until then, this should do what you want.
{% set matching_keys = namespace(match=[]) %}
{% for key, value in states.plant.mint.attributes.items() %}
{% if value == 'Low' %}
{% set matching_keys.match = matching_keys.match + [key] %}
{% endif %}
{% endfor %}
{{ matching_keys.match}}
now someone please school us on how to do it w/ a filter…