Card Mod - Unable to change entity text based upon state

Trying for 2 days and read a large number of posts, but I am still unable to change the displayed text on my entity card based upon the switch state. The icon and icon color changes work. Here is what I currently have, any ideas welcome!

type: entity
entity: switch.dome_water_main_shut_off
name: Whole House Water Shutoff Valve
card_mod:
  style: |
    :host {
      {% if states('switch.dome_water_main_shut_off')=='on' %}
        --card-mod-icon-color: green;
        --card-mod-icon: mdi:valve-open;
        --mdc-icon-size: 80px;
      {% else %}
        --card-mod-icon-color: red;
        --card-mod-icon: mdi:valve-closed;
        --mdc-icon-size: 80px;
      {% endif %};
    }
  name_template: |-
    {% if states('switch.dome_water_main_shut_off')=='off' %}
      Valve is Closed
    {% else %}
      Valve is open
    {% endif %}        
grid_options:
  columns: 12
  rows: 2

Card-mod is not related to changing a name.
Next, you are trying to use a name_template option which is not supported by standard Frontend.
Probably you found this code in internet, but the name_template option seems to be supported by a custom card named smrh like “card-templater”, try to find out its exact name and then find docs of this card.
Probably the Entity card must be placed inside that “card-templater” card to allow using that “name_template” option.