IR Transmiter with Pronto codes with Climate card

I built a new ESP8266 device with IR send/receive LEDs and the AC receives pronto codes. My other ACs use coolix which is great because there’s no need to send raw codes for each action and the Thermostat card is easy to set up.

This is the current approach to sending pronto codes from the IR transmitter:

remote_transmitter:
  pin: 3
  carrier_duty_percent: 50%

switch:
  - platform: template
    name: "AC On"
    turn_on_action:
      - remote_transmitter.transmit_pronto:
          data: "[0x0000, 0x006D, 0x0000, 0x0022, 0x0155, 0x00AA, ...]"

  - platform: template
    name: "AC Off"
    turn_on_action:
      - remote_transmitter.transmit_pronto:
          data: "[0x0000, 0x006D, 0x0000, 0x0022, 0x0155, 0x00BB, ...]"

My questions:

1. Shouldn’t actions be a button instead of a switch?
2. Is there a way to integrate these actions into a Thermostat card? Or similar at least?

TIA

I’m pretty sure someone dealt with this before :pray:

Thermostat card requires a climate entity. If you change your config so that a single switch entity controls both on and off, you can use the Generic Thermostat integration to create a climate entity by combining the switch and a temperature sensor.

Thanks for your reply.

So, if I’m not wrong, I’ll be missing the extra features like HVAC modes, fan modes, etc.

Correct, the Generic Thermostat is pretty basic when it comes to those types of features.

There is a custom integration Template Climate… I haven’t used it, but it does include options for setting the different modes.

1 Like