Dashboard entitity icon from sensor value

With very few exceptions core dashboard cards do not support templates. Unless specifically stated in the documentation that an option supports templates, then it does not.

You have a few options:

  1. Use a 3rd party card that does support templates
  2. Use Card-Mod
  3. Use the 100% Templateable Lovelace frontend resource.
2 Likes