Profile
Back to NewsBack
GitHub Trending 5 min
Reader Mode
hass-gree/gree-climate: Custom Gree climate component written in Python3 for Home Assistant. Controls AC's supporting the Gree protocol.

hass-gree/gree-climate: Custom Gree climate component written in Python3 for Home Assistant. Controls AC's supporting the Gree protocol.

HomeAssistant-GreeClimateComponent

GitHub Release</a> License</a> HACS</a> Home Assistant</a>

Validate</a> Lint</a>

Gree integration for Home Assistant. It controls Gree air conditioners, and the many brands that use the Gree protocol, over your local network or through the Gree cloud.

Join our Discord</a>

📖 Documentation

Complete documentation, in the docs/ folder of this repository:

Quick links: Installation · Configuration · Entities · Automation examples · Troubleshooting · Supported devices · Releases

✨ Why this integration?

Home Assistant ships a gree integration that works on the local network only. This one goes further.

  • Local first, cloud when you need it. Devices are controlled over UDP on your own network. The Gree cloud is there for devices you cannot reach, and to fetch device names and encryption keys during setup. See connection methods.
  • The features on the remote. X-Fan, Health, UV Lamp, Sleep, 8°C Smart Heat, Power Save, Anti Direct Blow, Fresh Air, Humidity Control, display light and brightness, beeper, Turbo and Quiet. Each one is a switch, select or fan mode. See entities.
  • Swing positions. Twelve vertical and seven horizontal modes: fixed positions and partial swing ranges, not just on and off.
  • Sensors. Indoor and outdoor temperature, humidity and fault detection, when the unit has them. An external sensor can replace the unit's own reading in the climate entity. That changes only what Home Assistant shows; the unit keeps using its own sensor.
  • Works across VLANs. Add networks or hosts to the discovery, and they are probed with unicast. See local discovery.
  • VRF systems. A controller with several indoor units is discovered and set up as separate devices.
  • Built for real firmware. Both encryption versions, detected by itself. The request limit of each firmware is measured at bind time, so units that choke on large requests still work. A changed IP is picked up from DHCP or by rediscovery.
  • Set up your way. A UI flow with reconfigure, or a gree_custom: block in YAML. See configuration.
  • Diagnostics. A diagnostics download, repair issues, and two actions that read raw device properties. See actions.

🚀 Quick start

Step 1: install from the Marketplace

Since Home Assistant 2026.11, HACS is built in as the Marketplace. Click the button, or search for Gree in the Marketplace.

Coming from 4.x? Do not click Update on the 4.x download. See Coming from a 4.x release first: you can keep your entity IDs.

Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.</a>

  1. Click Download.
  2. Restart Home Assistant.

Step 2: add the integration

Open your Home Assistant instance and start setting up a new integration.</a>

Or by hand: Settings > Devices & Services > Add Integration > search for Gree Climate.

  1. Pick Local network, Gree Cloud account, or both.
  2. Pick the devices from the list.
  3. Check the connection options and the features of each device. The defaults work for most units.

Step 3: done

Your devices are under Settings > Devices & Services > Gree Climate. Each one has a climate entity, sensors and switches. See entities for what they do, and automation examples for ideas.

📖 Full installation guide · Full configuration guide

⚠️ Known limitations

  • HVAC action on multi-split units: when one outdoor unit serves several indoor units, the unit only reports that the compressor runs, not for which indoor unit. So every indoor unit in Heat or Cool shows heating or cooling while only one of them works. See entities.
  • HVAC action in Auto: the unit does not report whether it heats or cools, so the action is unknown while the compressor runs. The room temperature cannot tell either, because a unit keeps working a few degrees past its target.

❓ Help and support

  • 💬 Discord: questions and chat with other users and the maintainers. Report bugs as a GitHub issue, not on Discord.
  • 🔧 Troubleshooting: debug logging, repair issues, common errors, and how to report a bug
  • 🔑 Encryption key: when the integration cannot get the device key by itself
  • 📋 Supported devices: units that are known to work, and how to add yours
  • 🐛 Report an issue: read Troubleshooting first, it says what to include

🤝 Contributing

Contributions are welcome. Start with the contributing guidelines and the developer documentation.

  • Development: the devcontainer, lint, the test suite, debug logs, releases
  • Architecture: where the code lives and how a device comes to life
  • Protocol notes: what real units do on the wire
  • AGENTS.md: the entry point for coding agents

🤖 Development note

Most of this integration was written by hand. Recent work uses AI coding tools more and more, with every change reviewed by the maintainers. Portions of the code, the debugging and the documentation were produced that way. AI helps us move faster, but it can miss an edge case, so if you hit one, open an issue.

Quality is guarded by Ruff, Pylint and Mypy, a pytest suite for the protocol layer, and tests against real units.

📄 License

This project is licensed under the GNU General Public License v3.0. See LICENSE.

🙏 Credits

This project is based on the work of several contributors and projects:

Chat with me