Template Climate thermostat from a input_number entity

I have a Broadlink controlling a Window AC unit. Unfortunately I cannot use SmartIR as the remote just acts as a few buttons and no data is stored in the remote. That being said, I programmed a few commands and I have a automation when whichever temperature you set it to using Home Assistant, it presses the up/down button a number of times using the Broadlink RM4 Pro. If you are interested in this, please let me know and I can upload the file.

But here is the problem: I want to use this with the Thermostat card, and use voice control support with services like Amazon Alexa, Google Assistant, and Apple HomeKit integrations. The Generic Thermostat turns a space heater into an automatic thermostat using a temperature sensor, but that’s not what I’m looking for. I’m looking for a Template Climate, so I can control temperature, fan speed, and mode (off, fan_only, cool) in which I all have programmed in my Broadlink as input_number entities. Is there any way I can use a Template Climate (HA doesn’t offer one at this time)

Thanks in advance,
Jack D. Knight

what do u mean?

Okay, I have a solution but it is extremely messy and unreliable. I’m just posting it to help others here.

I used SmartIR to make a dummy climate entity but I removed all of the IR codes. More on that here: Smart IR Climate

From there, my automations.yaml file is littered with automations like “If temperature is at 68 do this”. But to do that, being I had trouble with attributes, I had to make a template sensor that used the set temperature of that dummy thermostat and the automations checked that. It was very complicated.

If you have a different solution, please post here.