Hey guys… I have a code question.
Under icons, row 1, then Appearance, and Dynamic Color Template, I added some code via ChatGPT to turn the lock green when locked, and red when unlocked. The colors now alert me when I leave the car unlocked. Unfortunately, I now changed it that the icon always shows the “lock icon”. How do I change the code below to show an open lock?
{% if is_state(‘lock.ix_m60_lock’, ‘locked’) %}
green
{% else %}
red
{% endif %}


