MQTT HVAC power_command_topic (Tasmota thermostat)

Hi, I am planning to integrate a Tasmota thermostat in HA using the HVAC MQTT integration. The thing is that I am using the heat and cooling functionality, so I need to send 2 MQTT commands to Tasmota:

  • ThermostatModeSet (0=off, 1=auto)
  • ClimateModeSet (0=heat, 1=cool)

To achieve that I am planning to use mode_command_topic (for ClimateModeSet) and power_command_topic (for ThermostatModeSet) in my YAML configuration. The thing is that I am missing the variable power_command_template (equivalent to mode_command_template ) in order to be able to provide the proper value ([0,1] instead of [OFF,ON]) to the Tasmota device through MQTT.

I assume that I could use some custom automation to achieve that, but I feel that the right place to do it should be through YAML.

I think I found the solution, using payload_on and payload_off variables. Could this variables affect other topics besides power_command_topic?