This repository contains an ESPHome external component that can simulate an IR remote to control a Gree HVAC unit. The component uses a standard climate
card and expects to use an IR LED circuit hooked to an ESP8266.
This component uses the IRremoteESP8266 library with the default Gree YAW protocol. If it doesn't work for you, try the official ESPHome components instead.
- Adopt your ESP device(s) and use the
gree-climate-with-sensor.yaml
config file as a reference. - Add the climate cards to your dashboards.
- Start automating stuff 8D
The Gree Climate
component is based on the Climate
component for its configuration schema and adds the two following configuration items :
- pin (Required, Pin) : the GPIO pin on the ESP device that controls the state of the IR LED.
- sensor (Optional, ID) : The ID of the sensor that is used to measure the current temperature. This is only for reporting the current temperature in the climate card, and does not affect the actual operation of the unit.
Please refer to gree-climate-with-sensor.yaml
for a more elaborate example.
- ESP8266 controller or ESP8266-based development board (I use the D1 mini in my config but I'm expecting it to work for other similar boards).
- An actual InfraRed LED with an IR circuit hooked to the ESP. The ESP doesn't have enough juice on its GPIO pins to drive an IR LED, so you'll need either a transistor driving circuit (this is similar to what I have) or an all-in-one IR LED board.
- Ideally some cute little enclosure like the Hammond 1593 and a power supply.