🏎️ Ultra Vehicle Card - A simple and clean way to show your vehicle's information!

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

would you mind sharing the yaml code?

You just made my day. Thank you !!!

can the background of the card automatically change from white to black when my iPhone is in night mode?

Just wanted to chime in with my own card of this. The custom card was a bit difficult to understand at first but I eventually got it!