Tuya with homeKit

You need to create the template in your configuration.yaml file.There’s an example in the first post of the second link you sent (How to control dumb AC (Air Conditioner) and Fans via Tuya IR / RF Remote from HA).