[MQTT HVAC ]Template command_topic

I believe you maybe referring to the custom_component I made for MQTT HVAC that included (among other things) support for several command templates. The official MQTT HVAC integration does not, and never has, supported command templates for mode, fan_mode, hold, etc.

The technique I currently use is documented in this post:

Here’s an example of a single automation that handles the conversion of mode, fan_mode, and hold.

Click to show automation
- alias: 'Convert Climate'
  mode: parallel
  trigger:
  - platform: mqtt
    topic: temp/climate/hvac_mode
  - platform: mqtt
    topic: temp/climate/fan_mode
  - platform: mqtt
    topic: temp/climate/hold_mode
  action:
    choose:
    - conditions: "{{ trigger.topic == 'temp/climate/hvac_mode' }}"
      sequence:
        service: mqtt.publish
        data:
          topic: thermostat/temperaturemode
          payload: >
            {% set values = { 'auto':'0', 'heat':'1',  'cool':'2',  'off':'4'} %}
            {{ values[trigger.payload] if trigger.payload in values.keys() else '4' }}

    - conditions: "{{ trigger.topic == 'temp/climate/fan_mode' }}"
      sequence:
        service: mqtt.publish
        data:
          topic: thermostat/fancontrol
          payload: >
            {% set values = { 'auto':'0', 'on':'1'} %}
            {{ values[trigger.payload] if trigger.payload in values.keys() else '0' }}

    - conditions: "{{ trigger.topic == 'temp/climate/hold_mode' }}"
      sequence:
        service: mqtt.publish
        data:
          topic: thermostat/mode
          payload: "{{ '2' if trigger.payload == 'Hold' else '0' }}"

Alternately, you can wait for the following PR to be incorporated into a future release of Home Assistant. It adds several command templates to MQTT HVAC.