Hide templates from UI cards

Hi everyone, I’m getting a bit annoyed by the templates, effect lists, etc. showing up in my cards in lovelace. I don’t mind it gives me the icon_color result, that’s even great, but the template code is useless and irrelevant for anyone else in my house…

Is there a way to hide those as they are not needed information and it gets pretty annoying especially on a cell phone app. It’s also not good for WAF…

Thank you

1 Like

Another one, very big template:

Issue with a light card

Found a solution. You must use custom-ui.js for it to work. Simply add this into your configuration.yaml

homeassistant:
  customize_glob:
    switch.*:
      hide_attributes:
        - templates
    light.*:
      hide_attributes:
        - templates
    sensor.*:
      hide_attributes:
        - templates
    binary_sensor.*:
      hide_attributes:
        - templates
    input*.*:
      hide_attributes:
        - templates
1 Like