HomeAssistant-GreeClimateComponent
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.
📖 Documentation
Complete documentation, in the docs/ folder of this repository:
- 👤 User documentation: installation, configuration, entities, actions, troubleshooting
- 🔧 Developer documentation: architecture, protocol, config entry, development
✨ 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.
- Click Download.
- Restart Home Assistant.
Step 2: add the integration
Or by hand: Settings > Devices & Services > Add Integration > search for Gree Climate.
- Pick Local network, Gree Cloud account, or both.
- Pick the devices from the list.
- 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:
- greeclimate-js - TypeScript library for controlling Gree-based mini-split air conditioning systems
- greeclimate - A fully async Python3 based package for controlling Gree based ACs and heat pumps
- gree-remote - Gree air conditioner remote control protocol
- greeclimate - Python package for controlling Gree based minisplit systems
- gree-api-client - Python client for the Gree API
- Home Assistant Developer Documentation - Official development guidelines and best practices